Created
April 2, 2012 19:27
-
-
Save pomeh/2286565 to your computer and use it in GitHub Desktop.
my userscripts
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
// ==UserScript== | |
// @name wtcraft.com | |
// @description Removes annoying ads on wtcraft.com, UX anyone ? | |
// @author pomeh | |
// @match http://www.wtcraft.com/ | |
// @match http://www.wtcraft.com/* | |
// @match http://wtcraft.com/ | |
// @match http://wtcraft.com/* | |
// @include http://www.wtcraft.com/ | |
// @include http://www.wtcraft.com/* | |
// @include http://wtcraft.com/ | |
// @include http://wtcraft.com/* | |
// @version 1.0 | |
// ==/UserScript== | |
var frames = document.querySelectorAll( "iframe" ), | |
i = frames.length, | |
frame; | |
while( i-- ) { | |
frame = frames[ i ]; | |
if( /plusone|facebook|twitter|afr\.php/.test(frame.src) ) { | |
frame.parentNode.removeChild( frame ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment