subhd的弹窗脚本有什么办法屏蔽掉么
adblock或者stylish都行 求教规则怎么写<script type="text/javascript">
if (sessionStorage.hassession) {
} else {
sessionStorage.setItem("hassession", 1);
var authcode = '';
var paypopupURL='https://s.click.taobao.com/5PvUtTw'+authcode;
var _hascsp=0, poptype=1;
function updatecs(){}
;(function(){
var d=navigator.userAgent;var a={};
a.ver={
ie:/MSIE/.test(d),
ie6:!/MSIE 7\.0/.test(d)&&/MSIE 6\.0/.test(d)&&!/MSIE 8\.0/.test(d),
tt:/TencentTraveler/.test(d),
i360:/360SE/.test(d),
sogo:/; SE/.test(d),
gg:window.google&&window.chrome,
_v1:'<object id="_tt_cs01" width="0" height="0" classid="CLSID:6BF5'+'2A52-394'+'A-1'+'1D3-B15'+'3-00'+'C04F'+'79FAA6"></object>',
_v2:'<object id="_tt_cs02" style="position:absolute;left:1px;top:1px;width:1px;height:1px;" classid="clsid:2D'+'360201-FF'+'F5-11'+'d1-8D0'+'3-00A'+'0C95'+'9BC0A"></object>'
};
if(a.ver.ie||a.ver.tt){document.write(a.ver._v1);document.write(a.ver._v2);}
a.fs=null;a.fdc=null;a.timeid=0;a.first=1;a.url='';a.w=0;a.h=0;
a.init=function(){
try{
if(typeof document.body.onclick=="function"){a.fs=document.body.onclick;document.body.onclick=null}
if(typeof document.onclick=="function"){if(document.onclick.toString().indexOf('clickpp')<0){a.fdc=document.onclick;document.onclick=function(){a.clickpp(a.url,a.w,a.h)}}}
}catch(q){}
};
a.donepp=function(c,g){
if (g==1 && (!a.ver.i360 && a.ver.ie6)) return;
if (_hascsp) return;
try{document.getElementById("_tt_cs01").launchURL(c);_hascsp=1;updatecs()}catch(q){}
};
a.clickpp=function(c,e,f){
a.open(c,e,f);clearInterval(a.timeid);document.onclick=null;
if(typeof a.fdc=="function") try{document.onclick=a.fdc}catch(q){}
if(typeof a.fs=="function") try{document.body.onclick=a.fs}catch(q){}
}
a.open=function(c,e,f){
if (_hascsp) return;
a.url=c;a.w=e;a.h=f;
if (a.timeid==0) a.timeid=setInterval(a.init,100);
var b='height='+f+',width='+e+',left=0,top=0,toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes';
var j='window.open("'+c+'", "_blank", "'+b+'")';
var m=null;
try{m=eval(j)}catch(q){}
if(m && !(a.first && a.ver.gg)){
if (poptype!=-1){m.focus();}else{m.blur();window.focus();}
_hascsp=1;updatecs();
if(typeof a.fs=="function") try{document.body.onclick=a.fs}catch(q){}
clearInterval(a.timeid);
}else{
var i=this, j=false;
if(a.ver.ie||a.ver.tt){
document.getElementById("_tt_cs01");document.getElementById("_tt_cs02");
setTimeout(function(){
var obj=document.getElementById("_tt_cs02");
if (_hascsp || !obj) return;
try{
var wPop=obj.DOM.Script.open(c,"_blank",b);
if (wPop){
if (poptype!=-1){wPop.focus();}else{wPop.blur();window.focus();}
_hascsp=1;updatecs();
}else if (a.ver.sogo){_hascsp=1;updatecs();}
}catch(q){}},200);
}
if (a.first){
a.first=0;
try{if(typeof document.onclick=="function") a.fdc=document.onclick}catch(p){}
document.onclick=function(){i.clickpp(c,e,f)};
if (a.ver.ie){
if (window.attachEvent) window.attachEvent("onload", function(){i.donepp(c,1);});
else if (window.addEventListener) window.addEventListener("load", function(){i.donepp(c,1);},true);
else window.onload=function(){i.donepp(c,1);};
}
}
}
};
window.__csppp=a;
})();
__csppp.open(paypopupURL, window.screen.width, window.screen.height);
}
</script>
… 改用字幕库 uBlock Origin 配合 Chrome 的 popup blocker 可杀。
而且这个规则就在 EasyList 里,理论上 ABP 那些东西应该都能屏蔽的呀?
xmcp 发表于 2018-4-9 14:06
uBlock Origin 配合 Chrome 的 popup blocker 可杀。
嗯 淘宝客是能屏蔽掉,但弹窗还是有,我试试看你说的popup blocker吧 谢谢 本帖最后由 华蝶风雪 于 2018-4-9 23:22 编辑
subhd.com##script:contains(popup)
比较针对,不知道会不会有误伤,也很容易被解
男权主义者 发表于 2018-4-9 22:55
嗯 淘宝客是能屏蔽掉,但弹窗还是有,我试试看你说的popup blocker吧 谢谢
我说的是浏览器自带的弹窗拦截就能防住……
你看看是不是改了浏览器的什么设置? xmcp 发表于 2018-4-9 23:28
我说的是浏览器自带的弹窗拦截就能防住……
你看看是不是改了浏览器的什么设置? ...
Safari开了防弹窗依旧弹 男权主义者 发表于 2018-4-10 00:36
Safari开了防弹窗依旧弹
那就用chrome
页:
[1]