Created
December 5, 2015 23:32
-
-
Save anonymous/1f7e2293b5798c3b3f32 to your computer and use it in GitHub Desktop.
Simple way to hide injected Pinterest ads
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
window.setTimeout(function () { | |
try { | |
[].filter.call(document.querySelectorAll('span'), function (span) { | |
return span.style['z-index'] == 2000000000; | |
})[0].style.display = 'none'; | |
} catch (err) { } | |
}, 2000); | |
}()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment