阅读:3220回复:9
Element Hiding Helper如何干掉这个破广告?
div的class是动态的,试了bbs.pcbeta.com###wp>div:nth-child(2)不行
图片:QQ截图20141212144409.png ![]() |
|
最新喜欢:![]() |
1楼#
发布于:2014-12-12 15:04
一般来说你不提供地址的话只有骨灰级页面设计师和神仙能够帮助你
|
|
|
2楼#
发布于:2014-12-12 15:38
我终于找到楼主的那截图所在的网址,然后关了ABE看看,效果是这样的:
图片:QQ截图20141212153327.png ![]() 我也不知为啥那空了两个框,因为我只有ABE拦截广告(貌似是无法访问,因为TryAgain扩展在控制台一直报错)。 拦截也是有办法的,因为位置是固定的,不过,楼主 就冲那行 “去广告虽易,做论坛不易,且行且珍惜。” 楼主你还是放过它吧。 ![]() --- 补充:就我现在的订阅规则,开了ABE也是一样的显示效果,嗯。 |
|
|
3楼#
发布于:2014-12-12 15:40
bbs.pcbeta.com###wp > div:nth-child(3) 或者 bbs.pcbeta.com###wp > div:nth-of-type(2) |
|
4楼#
发布于:2014-12-12 17:20
这个我是用用户脚本去掉。
|
|
|
5楼#
发布于:2014-12-12 22:31
/*清爽远景*/ @namespace url(http://www.w3.org/1999/xhtml); @-moz-document domain(bbs.pcbeta.com),domain(www.pcbeta.com) { #sitefocus,#weixinqr,#zantip {display: none !important;} body > div[id]:first-of-type {display: none !important;} .area + style + div[class],#wp > div[style] + style + div[class] > div {display: none !important;} .area + style + div[class],#wp > div[style] + style + div[class] {height: auto !important;} div[style$="background:#fff;border:9px solid #EDEEF0;"]{display:none !important} } // ==UserScript== // @name pcbeta ads Remover // @namespace https://code.google.com/p/adblock-chinalist/ // @author Gythialy // @version 1.0.3 // @description Remove bbs.pcbeta.com ads for ChinaList // @homepage https://code.google.com/p/adblock-chinalist/ // @updateURL https://adblock-chinalist.googlecode.com/svn/trunk/scripts/remove_ads_for_pcbeta.user.js // @include http://bbs.pcbeta.com/* // ==/UserScript== (function() { var DEBUG = 0; function log(message) { if (DEBUG && GM_log) { GM_log(message); } } function x(xpath, parent, type, result) { return document.evaluate(xpath, parent || document, null, type || XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, result); } function remove(elm) { if (elm.snapshotItem) { for ( var i = 0; i < elm.snapshotLength; i++) { remove(elm.snapshotItem(i)); } } else if (elm[0]) { while (elm[0]) { remove(elm[0]); } } else { elm.parentNode.removeChild(elm); } } var t = x('//div[@id="wp"]/div[@style]'); for ( var i = 0; i < t.snapshotLength; i++) { var node = t.snapshotItem(i); log(node.style.height); if (node.style.height === '437px') { node.style.height = 'inherit'; break; } } remove(x('//div[@style="padding:0 10px 10px;background:#d0dae4;"]/div[contains(@style,"height:90px")]')); remove(x('//div[contains(@style,"height:170px")]')); remove(x('.//div[@id="sitefocus"][@class="focus"]')); })() |
|
6楼#
发布于:2015-02-06 21:00
FirefoxMoe:bbs.pcbeta.com###wp > div:nth-child(3)多谢,生效了,很好用。 |
|
7楼#
发布于:2015-02-06 21:00
|
|
8楼#
发布于:2015-02-06 21:00
|
|
9楼#
发布于:2015-02-06 21:00
|
|