donkey
小狐狸
小狐狸
  • UID12055
  • 注册日期2006-03-29
  • 最后登录2010-08-05
  • 发帖数58
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
阅读:4389回复:9

怎么用过滤那些飘来飘去的广告啊?

楼主#
更多 发布于:2006-08-10 21:29
有没有简单快速点的方法?只能分析网页原代码吗?
我希望用adplus过滤
意识到自己的奴隶地位而与之作斗争的奴隶,是革命家。不意识到自己的奴隶地位而过着默默无言,浑浑噩噩的奴隶生活的奴隶,是十足的奴隶。津津乐道地赞赏美妙的奴隶生活并对和善的好心的主人感激不尽的奴隶是奴才,是无耻之徒。 摘自《纪念葛伊甸伯爵》列宁1907年6月
smoke
千年狐狸
千年狐狸
  • UID3052
  • 注册日期2005-02-16
  • 最后登录2015-02-01
  • 发帖数2367
  • 经验12枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 社区居民
  • 忠实会员
1楼#
发布于:2006-08-10 21:29
右键添加到ad
遇到问题请善用论坛搜索功能
abc@home
千年狐狸
千年狐狸
  • UID6047
  • 注册日期2005-05-16
  • 最后登录2011-01-01
  • 发帖数1681
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度1点
2楼#
发布于:2006-08-10 21:29
这个在 ie 内核用脚本很易搅定的,可惜 W3C (FF) 不支持部分 ie 的脚本属性,不能转做 greasemonkey 脚本。



WINXP SP2 MAXTHON (UNICODE) PROXOMITRON
solarbianca
小狐狸
小狐狸
  • UID13785
  • 注册日期2006-07-15
  • 最后登录2006-12-16
  • 发帖数19
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
3楼#
发布于:2006-08-10 21:29
abc@home:这个在 ie 内核用脚本很易搅定的,可惜 W3C (FF) 不支持部分 ie 的脚本属性,不能转做 greasemonkey 脚本。回到原帖


做个清除烦恼ForFx吧
donkey
小狐狸
小狐狸
  • UID12055
  • 注册日期2006-03-29
  • 最后登录2010-08-05
  • 发帖数58
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
4楼#
发布于:2006-08-10 21:29
怎么过滤div啊?形如div  name=xxxx,写greasemonkey脚本倒很容易过滤这种,但是adplus的规则不知道怎么写
意识到自己的奴隶地位而与之作斗争的奴隶,是革命家。不意识到自己的奴隶地位而过着默默无言,浑浑噩噩的奴隶生活的奴隶,是十足的奴隶。津津乐道地赞赏美妙的奴隶生活并对和善的好心的主人感激不尽的奴隶是奴才,是无耻之徒。 摘自《纪念葛伊甸伯爵》列宁1907年6月
opentiss
千年狐狸
千年狐狸
  • UID16
  • 注册日期2004-11-21
  • 最后登录2024-02-23
  • 发帖数3371
  • 经验65枚
  • 威望1点
  • 贡献值34点
  • 好评度13点
  • 社区居民
  • 忠实会员
5楼#
发布于:2006-08-10 21:29
能不能换个思路,把那个网站给黑一下,把所有有关的网页广告全部干掉
Blogger
Give Up GitHub!

欢迎使用 Areditors

sntp -P no -r 210.72.145.44
kmc
kmc
管理员
管理员
  • UID165
  • 注册日期2004-11-25
  • 最后登录2022-09-22
  • 发帖数9186
  • 经验397枚
  • 威望1点
  • 贡献值124点
  • 好评度41点
  • 忠实会员
  • 终身成就
  • 社区居民
6楼#
发布于:2006-08-10 21:29
donkey:怎么过滤div啊?形如div  name=xxxx,写greasemonkey脚本倒很容易过滤这种,但是adplus的规则不知道怎么写回到原帖


你要用到Dom Inspector并最好配上一个Inspect Element扩展,这样写元素隐藏规则方便一些
Waterfox Current和Firefox Nightly都用,逐渐走出XUL扩展依赖
donkey
小狐狸
小狐狸
  • UID12055
  • 注册日期2006-03-29
  • 最后登录2010-08-05
  • 发帖数58
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
7楼#
发布于:2006-08-10 21:29
kmc

你要用到Dom Inspector并最好配上一个Inspect Element扩展,这样写元素隐藏规则方便一些
回到原帖

能说下怎么写吗?我找不到adplus的这种过滤的写法说明或者例子
意识到自己的奴隶地位而与之作斗争的奴隶,是革命家。不意识到自己的奴隶地位而过着默默无言,浑浑噩噩的奴隶生活的奴隶,是十足的奴隶。津津乐道地赞赏美妙的奴隶生活并对和善的好心的主人感激不尽的奴隶是奴才,是无耻之徒。 摘自《纪念葛伊甸伯爵》列宁1907年6月
lord
非常火狐
非常火狐
  • UID6208
  • 注册日期2005-05-21
  • 最后登录2024-03-27
  • 发帖数634
  • 经验81枚
  • 威望0点
  • 贡献值12点
  • 好评度3点
  • 社区居民
  • 忠实会员
8楼#
发布于:2006-08-10 21:29
ADBLOCK PLUS 0.7.11
Element hiding: basic rules

Sometimes you will find advertisements that can’t be blocked because they are embedded as text in the web page itself. If you look at the source code of the web page you might find something like this:

<div class="textad">
Cheapest tofu, only here and now!
<div>
<div id="sponsorad">
Really cheap tofu, click here!
<div>
<textad>
Only here you get the best tofu!
</textad>

You need to download the web page so you will necessarily download the advertisements. All you can do here is to hide the advertisement so you don’t need to see it. That’s what element hiding is meant for.

The first advertisement above is contained inside a div element with class attribute “textad”. The following rule will hide exactly this combination: #div(textad). You can hide elements by their id attribute in the same way, #div(sponsorad) will hide the second advertisement. You don’t need to specify the element name, the rule #*(sponsorad) will work just as well. And you can hide elements by element name only, e.g. #textad for the third advertisement.

So, how do you know what to put into your element hiding rule? You have two choices: either you dig into source code of the web page and try to locate the advertisement there, or you use DOM Inspector (Firefox users have to choose “Custom install” and check “Development Tools” when installing Firefox to install DOM Inspector as well). Basic HTML knowledge is useful in both cases.

Note: Element hiding works very differently from normal filters. This has the implication that no wildcards are supported in element hiding rules, hit count for them won’t be available and exception rules will be ignored (actually, element hiding rules will even apply to local pages).

Note: Element hiding requires at least Gecko 1.8 (meaning Firefox 1.5 and SeaMonkey 1.0) to work. In older versions element hiding rules will be shown as invalid.
心想事成,人生如梦
donkey
小狐狸
小狐狸
  • UID12055
  • 注册日期2006-03-29
  • 最后登录2010-08-05
  • 发帖数58
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
9楼#
发布于:2006-08-10 21:29
多谢,我去试试
意识到自己的奴隶地位而与之作斗争的奴隶,是革命家。不意识到自己的奴隶地位而过着默默无言,浑浑噩噩的奴隶生活的奴隶,是十足的奴隶。津津乐道地赞赏美妙的奴隶生活并对和善的好心的主人感激不尽的奴隶是奴才,是无耻之徒。 摘自《纪念葛伊甸伯爵》列宁1907年6月
游客

返回顶部