firefox 屏蔽 文字广告
2009-08-02 14:29
一般的flash、图片广告用adblock plus就可以轻松搞定
但是总能遇到一些文字广告,内容反正是乱七八糟的,右击也没看到“过滤帧”,偶尔出现“过滤图片”,但是不要点,那一般是网页的背景图片
后来在网上仔细搜索了很久,发现这是很简单的事情,只要再下载安装一个ABP的辅助工具Element Hiding Helper就好了,使用起来相当简单。安装好后只要右击ABP图标选择“选择要隐藏的元素”,然后把鼠标放到广告上稍微调整一下就好了。即使不小心把整个页面屏蔽了也没关系,右击ABP图标选首选项,把最下面那条删掉,点确定,再把页面刷新一下就又回来了。
上面是很久以前获得的结果,今天,到ABP的官网看了一下,有一段话如下:
Blocking requests is limited to removing advertisements that are technically not part of the web page but downloaded separately. Because of that limitation, there is also an additional mechanism called “element hiding” which allows hiding parts of web pages based on some unique properties. The disadvantage here is that even hidden elements are still downloaded and require processing time in the browser. Also, creating element hiding rules is more complicated because you have to select the right set of properties — only the elements that need to be hidden should have those, not the required page content. Element Hiding Helper extension makes this task easier, yet creating good element hiding rules still requires much experimenting.
看完了才明白原来这里就已经提到了可以用那个工具隐藏页面上的元素
但是更重要的是,它说ABP屏蔽广告是阻从服务器上下载广告,而隐藏工具是不能阻止从服务器上下载广告的,是下载好了以后另外隐藏的。所以,对于文字广告,由于本身所占字节数小得可以忽略,下载了再隐藏没什么影响,但是如果flash、图片用隐藏的那就不好了,因为就是其本身占用字节数大所以浏览网页才慢吞吞的。后来又想到可以解决一个ABP屏蔽广告后的排版问题,有的时候ABP屏蔽了广告后会把其空白用非广告内容填补(当然,不影响浏览网页),但是有的时候那么大一块空白硬是没反应,这个时候就再用一下那个辅助工具吧,因为ABP本身已经阻止其下载了,再隐藏一下空白就消失了。
类别:默认分类||添加到搜藏 |分享到i贴吧|浏览(218)|评论 (0)
Pingback引用通告: 一次次擦身而过 | Thank you, Sami!