Quake Live AddBlocker

By banderlog Last update Dec 24, 2009 — Installed 1,999 times.

Doesn't work

in
Subscribe to Doesn't work 4 posts, 2 voices



Lejoon Scriptwright
FirefoxWindows

Use this code instead:


// ==UserScript==
// @name QuakeLive AdBlocker
// @namespace http://www.quakelive.com/*
// @include http://*.quakelive.com/*
// ==/UserScript==

function addGlobalStyle(css) {
var head, style;
head = document.getElementsByTagName('head')[0];
if (!head) { return; }
style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = css;
head.appendChild(style);
}

addGlobalStyle('.twocol_left{float: left; left: 0; min-height: 0px; position: relative; top: 0 !important; width: 670px;} #post_spon_content{display:none !important;} #spon_vert{display:none !important;} #qlv_topFadeAds{display:none;} .spon_media{display:none;} .personal_stats{display:none !important;}');

 
banderlog Script's Author
FirefoxX11

I had used this script for a month as a only one greasemonkey script to QL wthout any problems.
And I'm using it for a 2 weeks with your Competition Browser and wn's Alt Browser. So at this time I am using only 3 greasemonkey QL-site scripts. And I am still have no problems with my script.

Thus I do not want to convert my 1 little string into your code. But I'll improve //include string X)

Try to load page with all scripts except my and then turn it on and reload again.

ЗЫ: все риальне работает

 
Lejoon Scriptwright
FirefoxWindows

That // @include http://*.quakelive.com/* line is the most important. Sine your old one didn't make it load on any other page than when you're directed to #home.

Also consider adding .twocol_left{float: left; left: 0; min-height: 0px; position: relative; top: 0 !important; width: 670px;} since it removes the white space from under the server list!

 
banderlog Script's Author
FirefoxX11

Uh, man, white space under the server list appears only if you are removing 'personal quick stats'. What my script wasn't doing until now. So, thank to you for idea X)

//Uncomment/comment it to hide/view your personal quick stats
GM_addStyle('.personal_stats{display:none;} .twocol_left{min-height: 0px;} .thirtypxhigh{display:none;}');

//Hide/show footer
GM_addStyle('#qlv_footer2{display:none;}');

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel