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); }