From 3fdac45d1c7ff737f9ad7f92b533b902b3d09040 Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Tue, 23 Jul 2019 13:36:46 -0400 Subject: [PATCH] Block popup again --- content.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content.js b/content.js index 6d5ca28..c0fabd1 100644 --- a/content.js +++ b/content.js @@ -15,10 +15,10 @@ var makeReadable = function() { // don't want to obliterate them too. // FIXME: prevent this from breaking signup/login dialogs when the popup // is removed (it works after changing pages). - var headings = document.evaluate("//h2[contains(., 'one more story in your member preview this month')]", document, null, XPathResult.ANY_TYPE, null ); + var headings = document.evaluate("//h4[contains(., 'one more story in your member preview this month')]", document, null, XPathResult.ANY_TYPE, null ); var thisHeading = headings.iterateNext(); if (thisHeading != null) { - var $overlay = thisHeading.parentNode.parentNode.parentNode.parentNode; + var $overlay = thisHeading.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode; $overlay.parentNode.removeChild($overlay); }