Ad Blocker
|
|
Someone made a post about adding a bit of code to remove the top and side ads from the game. I've looked thru all the threads and cont seem to find it, does anyone remember or have the code handy? |
|
|
var sad = Utils.getElementsByXPath('//div[@class="UICompatibilityFrame_SidebarAds"]/div')[0];
|
|
|
where does this goe in the script? |
|
|
anywhere as long as it's not contained in another subroutine (or function), if you're not sure, put it at the very end. |
|
|
Does this not load the ad or just load it but make it invisible? |
|
|
The latter. Your browser already received all the incoming data by the time GM runs. You would need to seek another add-on for Firefox that blocks loading data from given sites or URLs, then the page would only load (HTML), which references to the pictures or flash files of the ads, but not load the actual ads themselves. I find MW load much faster in FF when I turn off loading of all images... but I can't find a built-in feature for turning off the flash files. |
|
|
Try a FF add-0n called ad-block plus then add the mob wars urls for the pages you want it to work on. Works great for speeding up the hitlist page. It gets ride of flash and anything annoying on the page.
|
|
|
I disabled some of the code that was not Ads
/* FB sidebar ad-remover */
/* FB page footer-remover */
/* FB page presence-remover */
|