首页 | 最近更改 | 编辑本页 | 较早版本

可打印版 | 免责声明

Not logged in
登录 | 帮助
 

Firefox:广告屏蔽

Mozilla中文Wiki

由于这些代码由网站的网页结构而决定。如果网页代码发生改变,就会失效。

添加专用的代码,请自行设置二级标题并留下添加的时间。

目录

Google

Google文字链广告

iframe[name="google_ads_frame"] {display: none !important;}


下一段代码来自idbehold (http://aasted.org/adblock/viewtopic.php?t=1381)

/* --- google.com ----------------------------------------------------------- */

/* general: search tip */
body[onload="document.gs.reset()"] table[cellspacing="0"][cellpadding="0"][border="0"] td[valign="bottom"][height="30"] { display: none !important }

/* general: sponsored links: right */
body[onload="document.gs.reset()"] table[width="25%"][bgcolor="#ffffff"][align="right"] { display: none !important }

/* general: sponsored links: top */
body[onload="document.gs.reset()"] p.e table[width="100%"][height="40"][cellpadding="3"] { display: none !important }

/* search: product search (store linkage) */
body[onload="document.gs.reset()"] p.e table[cellspacing="0"][cellpadding="1"][border="0"] { display: none !important }

/* groups: sponsored links: top (everything but header) */
body[onload="document.gs.reset()"] td[id^="taw"].ch { display: none !important }

/* groups: sponsored links: right */
body[onload="document.gs.reset()"] table[width="100%"][cellpadding="3"] tr[valign="top"] td[valign="top"][rowspan="26"] { display: none !important }

/* groups-beta: sponsored links: right */
body[onresize=""][onload="sf()"] table[width="200"][align="right"][style="float: right;"] { display: none !important }

/* gmail: text ads */
div#ad tr[class="metatable"],
td[class="rhh"],
a[class="lc"],
div.c.xs#ad { display: none !important }

-- 08:50 2005年1月26日 (CST)

Yahoo Mail(CN)

/* cn.mail.yahoo.com */

/* 你也可以用Adblock过滤该元素 */
*[src^="http://cn.yimg.com/a/"]{ display: none !important;}

/* 邮箱首页iframe */
table[class="applicationcontainer managementview"] td[id="first"] div[id="swads"]{ display: none !important;}

/* 左下角文字广告 */
td.content table[id="stateindicator"]+table div[class="modulecontainer content jakemodules"] { display: none !important;}

--Fiag 14:30 2005年1月26日 (CST)

通用

可以去掉很多flash广告

embed[type="application/x-shockwave-flash"][src*="/ad"],
embed[type="application/x-shockwave-flash"][href*="/ad"],
embed[type="application/x-shockwave-flash"][src*=".ad"],
embed[type="application/x-shockwave-flash"][href*=".ad"],
embed[type="application/x-shockwave-flash"][src*="/click"],
embed[type="application/x-shockwave-flash"][href*="/click"]
embed[src*="/ad"][src*=".swf"],
embed[src*="/ad"][href*=".swf"]{
display: none !important;
}

根据广告图片Flash的常见大小过滤

/* big banner size 760x* */
img[width="760"],
embed[type="application/x-shockwave-flash"][width="760"]{ display: none !important; }

/* stand banner size 468x* */
img[width="468"],
embed[type="application/x-shockwave-flash"][width="468"]{ display: none !important; }

/* small floating ads size 120x* */
img[width="120"],
embed[type="application/x-shockwave-flash"][width="120"]{ display: none !important; }

/* size 100x100 */
img[width="100"][ height="100"],
embed[type="application/x-shockwave-flash"][width="100"][ height="100"]{ display: none !important; }

Others

取自"http://wiki.mozcn.org/index.php/Firefox:%E5%B9%BF%E5%91%8A%E5%B1%8F%E8%94%BD"

本页面已经被浏览3458次。 最后更改03:03 2005年1月30日. 本站内容在创作共用署名-非商业用途-保持一致条款下发布。


[首页]
首页
最近更改
随机页面
新闻动态

编辑本页
讨论本页
较早版本
链入页面
链出更改

特殊页面
错误报告