Quote
Deb
Good evening.
I have a specific question: is there a way to make the Yahoo Mail Hide Ad Panel add-on for Firefox work on K-Meleon? If so, how? If not, sorry! Thank you for your attention.
Quote
Deb
Good evening.
I have a specific question: is there a way to make the Yahoo Mail Hide Ad Panel add-on for Firefox work on K-Meleon? If so, how? If not, sorry! Thank you for your attention.
Quote
siria
Ah - of course!! Good old KM-Adblock, am using it all the time, but completely forgot about it now, unbelievable...
Okay, am still curious if the macros are working, but apart from that in this specific case adblock.css would suffice completely
Just a line more to add to restrict it to yahoo domain.
var oldYahooMailAds = document.body.getElementsByClassName('with-ads'); if(oldYahooMailAds) { var NElement1, hbody; hbody = document.body; NElement1 = document.createElement('style'); NElement1.innerHTML = '.mb > .tbl{ display:none !important; width:0px !important; position: absolute !important; left: -999px !important; top: -999px !important; padding: 0px !important; z-index: -999 !important; }'; hbody.appendChild(NElement1); for(i = 0; i < oldYahooMailAds.length; i++) oldYahooMailAds.className = oldYahooMailAds.className.replace("with-ads",""); }
Quote
siria
___________
quote:
for(; i < oldYahooMailAds.length; ++i)
oldYahooMailAds.className = oldYahooMailAds.className.replace("with-ads","");
}
___________
old tricks don't seem to work anymore, none, grmpf. Okay, brute force with checkmark, but looks like quotes, colors etc. don't work anymore either
Quote
naruman
Alright I created a new yahoo mail to see how ads work .
Then i did add simple css code to "Ad-Blocking StyleSheet" , and it seems to be working will .
The ads in both sides has gone , for old & new yahoo mail.
So Deb :
1-Open "Ad-Blocking StyleSheet" [Edit\configuration\Ad-Blocking StyleSheet] .
2-Search for the line :
{
display: none !important;
}
And replace it by :
,iframe[id="tgtSKY"],
iframe[src*="/darla/"],
div[class="darla"],
div[id="fc_align"],
div[id="mb-rec-ad"],
div[id="sb_rel_rightrailad-SKY"],
div[class="left_mb"],
*[class="note adchoices"],
*[class="headline adlink"],
*[class="headline adlink mbtitle"],
img[src*="/ads/"],
img[class="mb-beacon"]
{
display: none !important;width:0px !important;
}
3-Restart Km .
4-Activating it [ Tools\privacy\Block advertisement ] .
5-open yahoo mail & it's better if you clear your cache .
Quote
guenter
Maybe also submit to Dorian @ Annoucements or mail?
Maybe have this inside "Block advertisement"CSS as default?
Quote
naruman
Quote
guenter
Maybe also submit to Dorian @ Annoucements or mail?
Maybe have this inside "Block advertisement"CSS as default?
The CSS blocking for any site is not the big thing , i had used it for some of my local sites for years .
However how much it will stay , depend on the site update rate (changing elements or paths .... ) .
So set it as default , will not stand so long (for yahoo) , but it could be used till the next update in yahoo .
Quote
/* =========== YAHOO MAIL Sep-2014 ========
example text... aosigadsopg .... write what you want between the * *
from: addons.mozilla.org/en-US/firefox/addon/yahoomailhideadpanel/
*/
@-moz-document domain(yahoo.com) {
#mbAds, #tgtTL1, #theAd, #sb_rel_tgtTL1, #masSearchAd, .sky-ad, #mbRecAds, .adchoices, .adlink, .mb-list-ad, .mb-rec-ad, #slot_TL1, #slot_mbrec, #slot_MB, #mobilizer,
.mb > .tbl {
display:none !important;
width:0px !important;
position: absolute !important;
left: -999px !important;
top: -999px !important;
padding: 0px !important;
z-index: -999 !important;
}
#shellcontent {right: 0px !important;}
#main {max-width:none !important;}
#shellnavigation {bottom: inherit !important; }
.attribution-bar {
height: 10px !important;
}
}
Quote
siria
This is not necessary in THIS case, but anyway just as example how a rule can be restricted to a domain (or to a url-prefix(xy) ), and how one can add some comments etc.:
@-moz-document domain(yahoo.com) {
}
Quote
siria
I've been looking for something with wildcards, without success, but your regexp sounds promising. The prob is that regexps have always been marsian to me, and still are, shudder.
What string would be needed to check for e.g. xxx.*.examplesite.com/forum/... ?