Skip to content

Instantly share code, notes, and snippets.

@pomeh
Created April 2, 2012 19:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pomeh/2286565 to your computer and use it in GitHub Desktop.
Save pomeh/2286565 to your computer and use it in GitHub Desktop.
my userscripts
// ==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