配置选项的删除代码含有内置删除代码和自定义删除代码
<!-- 百度统计 -->
<script>
var _hmt = _hmt || [];
(function () {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F2525cfa1b9dfbcb8f1e1' type='text/javascript'%3E%3C/script%3E"));
</script>
<!-- 51.la统计 -->
<script type="text/javascript" src="//js.users.51.la/205160338.js"></script>
<!-- cnzz统计 -->
<script type="text/javascript" src="https://s96.cnzz.com/z_stat.php?id=***&web_id=***"></script>
<script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1255238616'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s23.cnzz.com/z_stat.php%3Fid%3D12***' type='text/javascript'%3E%3C/script%3E"));</script>
<!-- 百度商桥 -->
<script>
var _hmt = _hmt || []; // eslint-disable-line
(function () {
var hm = document.createElement('script');
hm.src = 'https://hm.baidu.com/hm.js?XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
<!-- google广告 -->
<script data-ad-client="ca-pub-2222513431618339" async
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle21.js"></script>
<!-- google广告 -->
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle1.js"></script>
<script src="ad/header.js"></script>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle1.js"></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "ca-pub-***",
enable_page_level_ads: true
});
</script>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle1.js"></script>
<!-- 250x250 -->
<ins class="adsbygoogle"
style="display:inline-block;width:250px;height:250px"
data-ad-client="ca-pub-****"
data-ad-slot="47692789324"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-***-1"></script>
<!-- 360奇胜效果联盟 -->
<script>
(function (b, a, e, h, f, c, g, s) {
b[h] = b[h] || function () { (b[h].c = b[h].c || []).push(arguments) };
b[h].s = !!c; g = a.getElementsByTagName(e)[0]; s = a.createElement(e);
s.src = "//s.union.360.cn/" + f + ".js"; s.defer = !0; s.async = !0; g.parentNode.insertBefore(s, g)
})(window, document, "script", "_qha", 111111, false);
</script>
<!--启动百度自动推送功能-->
<script>
(function () {
var bp = document.createElement('script');
var curProtocol = window.location.protocol.split(':')[0];
if (curProtocol === 'https') {
bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
} else {
bp.src = 'http://push.zhanzhang.baidu.com/push.js';
}
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(bp, s);
})();
</script>
<!-- 360推送 -->
<script>
(function () {
var src = "https://jspassport.ssl.qhimg.com/11.0.1.js?****";
document.write('<script src="' + src + '" id="sozz"><\/script>');
})();
</script>
删除html/css/js等注释代码
删除富媒体对象代码
<meta([^>]*?)property([ ]*?)=([^>]*?)og:([^>]*?)>
<meta name=\"360-site-verification\" content=\"\" />
<meta name=\"baidu-site-verification\" content=\"\" />
<link rel="stylesheet" href="/ajax/libs/twitter-bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<script src="/ajax/libs/twitter-bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>
此功能基于正则表达式删除代码,软件内置自动生成正则表达式工具和验证正则表达式测试工具
内置常用的正则表达式,如删除script代码正则表达式
、删除link代码正则表达式
、删除style代码正则表达式
、删除所有html代码正则表达式