// ==UserScript==
// @name          PirateBay iFrame killer
// @namespace     http://www.davidkaspar.com/gm
// @description   This script hides the iframe ads found at PirateBay
// @include       http://www.thepiratebay.org/*
// @include       http://thepiratebay.org/*
// ==/UserScript==
function doIt() {    
	var findPattern = "(//iframe) | (//a[@class='ad'])";
    var resultLinks = document.evaluate( findPattern, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE , null );
    var theNode;
	for (i=0; i<resultLinks.snapshotLength;i++) {
		theNode = resultLinks.snapshotItem(i);
        theNode.parentNode.removeChild(theNode);
	}
}
doIt();