點我安裝 Stylish
安裝完之後,重啟過 firefox ,再把下面的 script 圈選起來,按右鍵,找"加入 Stylish"的字樣,直接加到 Stylish 裡面,在你看 yahoo 的網頁的時候,就不用擔心有煩人的廣告會跑出來煩你了。
底下是台灣雅虎網頁的擋廣告 script,及使用過後的截圖:
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("tw.news.yahoo.com") {
#adlrec img, #adsrec img {display:none;margin:0;}
#adnp1 {display:none; margin:0 0 0 5px;border-bottom:2px solid white;padding:0;}
.ynwscol {display:none;}
body > div + div > div > div + div + div > div + div {
display:none;
}
body > div + div > div > div + div + div > div > div + div + div + div + div > div > table {
display:none;
}
body > div + div > div > div + div + div > div > div + div +div + div + div + div +div +div {
display:none;
}
div[id="prigridindex0"] {
width: 100%!important;
}
div[id="prigrid0"] {
width: 100%!important;
}
div[id="sec"] {
display: none !important;
}
div[id="adst"] {
display: none !important;
}
div[id="ynwsovls"] {
display: none !important;
}
div[id="ynwsratw"] {
display: none !important;
}
div[id="ynwsgnav"] {
background-image:url(none) !important;
padding: 0px !important;
}
div[id="ysm_hybrid"] {
display: none !important;
}
div#ynwsgnav ul.sec {
display: none !important;
}
div#ynwsgnav ul.pri li {
background-image:url(none) !important;
padding: 0px 3px 0px 3px !important;
}
div[id="adrec"] {
display: none !important;
}
div[id="adlrec"] {
display: none !important;
}
div[id="ynwsppl"] {
display: none !important;
}
div[id="prigrid1"] {
display: none !important;
}
div[id="ad_inlay"] {
display: none !important;
}
div[id="bdbg"] {
width: 95% !important;
background-image:url(null) !important;
}
div[id="bd"] {
width: auto !important;
}
div[id="pri"] {
width: 100% !important;
}
div[id="ynwscatv"] {
clear: both !important;
}
}
@-moz-document domain("tw.dictionary.yahoo.com") {
div[id="ysm_hybrid"] {
display: none !important;
}
}
沒有留言:
張貼留言