Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Created December 5, 2015 23:32
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/1f7e2293b5798c3b3f32 to your computer and use it in GitHub Desktop.
Save anonymous/1f7e2293b5798c3b3f32 to your computer and use it in GitHub Desktop.
Simple way to hide injected Pinterest ads
(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