Created
May 10, 2016 07:07
-
-
Save rakeshjuyal/fa93640a250e35350902b6553a8f689d to your computer and use it in GitHub Desktop.
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
/* useless plugin # 4 | |
Remove Pinetrest and Quora naggers | |
*/ | |
window.useless = window.useless || {}; | |
useless.remove = function( elements ){ | |
for ( var nagCounter = 0; nagCounter < elements.length; nagCounter++ ) { | |
elements[nagCounter] && elements[nagCounter].parentNode && elements[nagCounter].parentNode.removeChild(elements[nagCounter]); | |
} | |
}; | |
useless.remove( document.querySelectorAll('.ModalManager.Module,.Modal.Module,.NagBase,.Nags,.modal_signup_background,.modal_signup_dialog')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Minified for bookmark.
window.a=window.a||{};useless.remove=function(c){for(var b=0;b<c.length;b++)c[b]&&c[b].parentNode&&c[b].parentNode.removeChild(c[b])};useless.remove(document.querySelectorAll(".ModalManager.Module,.Modal.Module,.NagBase,.Nags,.modal_signup_background,.modal_signup_dialog"));