1
0
mirror of https://github.com/thebaer/MMRA synced 2024-11-13 10:11:01 +00:00

Block popup again

This commit is contained in:
Matt Baer 2019-07-23 13:36:46 -04:00
parent b1815e7687
commit 3fdac45d1c

View File

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