⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 woocall_kill_ad.htm

📁 === === === === JavaScript经典源代码收集
💻 HTM
字号:
<html>
<head>
<title>Woocall去广告代码</title>
<style>
h3{color:blue;font-weight:bold}
xmp{color:green;font-size:12px}
div{color:black;font-size:12px}
</style>
<script>
if(window.HTMLElement){//兼容Firefox
	HTMLElement.prototype.attachEvent=function(e,f){window.setTimeout(f,1000);}
}
var SINA_WOOCALL_CONFIG={};
SINA_WOOCALL_CONFIG.URLCutCharLen=24;
var woocall_kill_ad=false;
var SINA_WOOCALL_KILL_AD=function(){
	var fla=document.getElementById("S_WC_FLA_BOX");//得到flash面板
	var ext=document.getElementById("S_WC_EXT_BOX");//得到广告面板
	var div=document.getElementsByTagName("DIV");//得到所有DIV
/*
	var span=document.getElementsByTagName("SPAN");//得到所有SPAN
	for(var i=0;i<span.length;i++){
		if(span[i].className=="ctrlimg"){//找到显示聊天窗口图片
			fla.parentNode.parentNode.style.visibility="hidden";//隐藏flash面板
			S_WC.bE.prototype.bX=function(eQ){alert(eQ);return function(dz){eQ.ck();};}
			span[i].childNodes[0].onmousedown();//加载flash面板
			break;
		}
	}
*/
	if(fla==null) {//未得到flash面板,重新加载
		woocall_kill_ad=false;
		window.setTimeout(SINA_WOOCALL_KILL_AD,1000);
		return;
	}
	S_WC.bE.fu(Math.floor(Math.random()*20)+1);
	fla.attachEvent("onpropertychange",function(){//为flash面板添加onpropertychange事件,FF下暂时无效
		fla.parentNode.parentNode.style.visibility="visible";//显示flash面板
		if(woocall_kill_ad) return;//广告已杀,返回,避免重复
		woocall_kill_ad=true;//设置已杀标志	
		S_WC.MyConf.ah=false;//设置woocall广告配置为false
		ext.parentNode.removeChild(ext);//杀广告	
		S_WC.CORE.prototype.bP=function(){};//杀广告检测脚本	
		for(var i=0;i<div.length;i++){//遍历所有层,找到woocall各面板改变其宽度
			if(div[i].className=="S_WC_ChatBox"){//改S_WC_ChatBox宽度
				div[i].style.width="380px";
				div[i].style.left=Math.floor(div[i].style.left.replace("px",""))+150;
			}else if(div[i].className=="content"||div[i].className=="Hnd"||div[i].className=="Bottom"){
				div[i].style.width="380px";
			}else if(div[i].className=="Title"){//改woocall标题
				div[i].innerHTML=div[i].innerHTML.replace(/<(.*)>(.*)/,'<$1> 小谢天空—在线聊天');//统一聊天室标题
/*			}else if(div[i].className=="Ctrl"){//关闭woocall
				div[i].childNodes[0].onmousedown();//在Firefox下这句不知道为什么无效了:(
*/			}
		}
	});
}
window.setTimeout(SINA_WOOCALL_KILL_AD,1000);//页面加载1秒钟后再执行以上代码
</script>
<script src="http://image2.sina.com.cn/woocall/rls/stable.js" type="text/javascript"></script> 
</head>
<body>
</script>
<center><h3>Woocall去广告代码</h3></center>
<script>
document.write('<xmp>');
document.writeln('<script>');
document.writeln(document.getElementsByTagName('script')[0].innerHTML.replace(/^[\n\r]*/,""));
document.writeln('<'+'/script>');
document.write('<script src="http://image2.sina.com.cn/woocall/rls/stable.js" type="text/javascript"><'+'/script>');
document.write('</xmp>');
</script>
<div align=center>
如果你觉得本网页对你有用,请介绍给你的QQ好友,谢谢!<br>
<a href="http://qbit.100steps.net/javascript/qqlevel.htm" target="_blank">QQ等级查询</a>
<a href="http://qbit.100steps.net/javascript/qqpet.htm" target="_blank">宠物等级查询</a>
<a href="http://qbit.100steps.net/javascript/qqmail.htm" target="_blank">QQMail刷分网页</a>
<br>
-----------------------------------------------------------------<br>
Copyright &copy;2001 - 2008 <a href="http://qbit.100steps.net" target="_blank">qbit.100steps.net</a> All Rights Reserved
<br>Power by qbit(QQ:324324)<br>
<script src="http://qbit.100steps.net/count.php?time=100000000000&novote=1"></script>
</div>
</center>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -