From de4e1693ae2864b1e82bea2d52a6cfb787ae9daa Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Sun, 2 Jun 2019 22:10:42 -0400 Subject: [PATCH] remove honk from page when zonking --- views/honkpage.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/views/honkpage.html b/views/honkpage.html index c6a3445..b9d4919 100644 --- a/views/honkpage.html +++ b/views/honkpage.html @@ -61,6 +61,14 @@ function zonkit(el) { e.remove() } } + } else if (wherefore == "this honk") { + var p = el + while (p && p.tagName != "ARTICLE") { + p = p.parentElement + } + if (p) { + p.remove() + } } }