// ==UserScript== // @name Todaysppc firefox patch // @namespace http://ghacker.homelinux.net // @description Remove ads and fix alignment // @include http://www.todaysppc.com/* // @exclude // ==/UserScript== if(!String.prototype.startsWith){ String.prototype.startsWith = function (str) { return !this.indexOf(str); } } var iframe_elements; iframe_elements = document.getElementsByTagName('IFRAME'); for(var i = 0;i<iframe_elements.length; i++) { var iframe_element = iframe_elements[i]; var iframe_src = iframe_element.getAttribute('src'); if(iframe_src){ if(iframe_src.startsWith("http://adc.dreamwiz.com/event_call.htm")){ iframe_element.parentNode.removeChild(iframe_element.previousElementSibling); iframe_element.parentNode.removeChild(iframe_element); } else if(iframe_src.startsWith('http://www.todaysppc.com/mbzine/bbs/skin/nzeo_bbs1/google_each3.php')){ iframe_element.parentNode.removeChild(iframe_element); } } } var main_doc = document.getElementById('work'); if(main_doc){ main_doc.setAttribute('onload', null); main_doc.addEventListener("load", function(){main_doc.height = main_doc.contentDocument.body.offsetHeight;}, true); } var google_ads = document.getElementById("aswift_0_anchor"); if(google_ads) { google_ads = google_ads.parentNode.parentNode.parentNode; google_ads.parentNode.removeChild(google_ads); }
Mozilla add on,User script,Grease Monkey Script, greasemonkey userscripts, updater userscripts mafia wars userscripts mafia wars autoplayer userscripts mafia wars wall userscripts scripts userscripts travian greasemonkey greasemonkey download greasemonkey facebook greasemonkey tutorial greasemonkey youtube greasemonkey travian greasemonkey chrome greasemonkey mafia wars greasemonkey mafia wars autoplayer
Thursday, September 22, 2011
Todaysppc firefox patch
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment