场景:使用了免费模板,但底部带作者版权。删除版权信息的代码后访问前台弹窗:请勿修改或删除主题版权及作者信息...
1. 删除版权信息代码
使用notepad++搜索功能,搜索版权信息:如ABC,找到相关代码并删除
<a href="https://www.abc.com/" target="_blank">ABC</a>
2. 删除版权验证JS
一般都在模板文件里的js文件中,找到加密的js代码并删除,如果不确定可以把代码单独复制出来运行查看
搜索“eval”,如果js文件已压缩需要先用工具整理,代码形式如下:
eval(function(p, a, c, k, e, r) {
e = function(c) {
return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36))
};
if (!''.replace(/^/, String)) {
while (c--) r[e(c)] = k[c] || e(c);
k = [function(e) {
return r[e]
}];
e = function() {
return '\\w+'
};
c = 1
};
while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]);
return p
}('1J(1C(p,a,c,k,e,r){e=1C(c){1B(c<a?\'\':e(1P(c/a)))+((c=c%a)>1O?1D.1N(c+29):c.1I(1M))};1E(!\'\'.1F(/^/,1D)){1K(c--)r[e(c)]=k[c]||e(c);k=[1C(e){1B r[e]}];e=1C(){1B\'\\\\w+\'};c=1};1K(c--)1E(k[c])p=p.1F(1G 1H(\'\\\\b\'+e(c)+\'\\\\b\',\'g\'),k[c]);1B p}(\'I(q(d,f,a,c,b,e){b=q(a){s a.L(f)};v(!"".B(/^/,R)){t(;a--;)e[b(a)]=c[a]||b(a);c=[q(a){s e[a]}];b=q(){s"\\\\\\\\w+"};a=1}t(;a--;)c[a]&&(d=d.B(M N("\\\\\\\\b"+b(a)+"\\\\\\\\b","g"),c[a]));s d}(\\\'$(3).e(g(){2 a=$("#4-5").6("a[7=8\\\\\\\\\\\\\\\\:\\\\\\\\\\\\\\\\/\\\\\\\\\\\\\\\\/9\\\\\\\\\\\\\\\\.b\\\\\\\\\\\\\\\\.c\\\\\\\\\\\\\\\\/]");d("\\\\E\\\\F\\\\G\\\\H"!=a.1()||a.f(":0")||"h"==a.i("j")||"0"==a.k("l"))$("m").o(),p("\\\\J\\\\K\\\\x\\\\y\\\\z\\\\A\\\\O\\\\P\\\\Q\\\\u\\\\C\\\\S\\\\T\\\\U\\\\V\\\\W\\\\\\\\n \\\\X+r\\\\Y\\\\10\\\\11\\\\12\\\\13\\\\14\\\\x\\\\y\\\\15\\\\z\\\\A\\\\16\\\\17\\\\18\\\\19\\\\1a\\\\1b\\\\u\\\\C\\\\1c")});\\\',D,D,"1d 1e 1f 1g 1h 1i 1j 1k 1l 1m 1n 1o v 1p 1q q 1r 1s 1t 1u 1v 1w 1x 1y 1z Z".1A(" "),0,{}));\',1Q,1R,\'||||||||||||||||||||||||||1C||1B|1S|1T|1E||1U|1V|1W|1X|1F|1Y|28|1Z|20|21|22|1J|23|24|1I|1G|1H|25|26|27|1D|2a|2b|2c|2d|2e|2f|2g||2h|2i|2j|2k|2l|2m|2n|2o|2p|2q|2r|2s|2t|2u|2v|2w|2x|2y|2z|2A|2B|2C|2D|2E|2F|2G|2H|2I|2J|2K|2L|2M|2N|2O|2P|2Q|1L\'.1L(\'|\'),0,{}))', 62, 177, '|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||return|function|String|if|replace|new|RegExp|toString|eval|while|split|36|fromCharCode|35|parseInt|62|99|for|u6a21|u5220|u9664|u7248|u6743|u677f|u6dd8|u5b9d|u8fd0|u8425|u4e0d|u53ef|uff0c|u5426|u5219|||u7981|u6b62|u4f7f|u7528|uff01|u8bf7q|u9000|u56de|u64cd|u4f5c|u6062|u590d|u7684|u4ee3|u7801|u6216|u8005|u91cd|u88c5|u3002|hidden|text|var|document|site|info|find|href|https|www|cqleba|com|ready|is|nofollow|attr|rel|css|visibility|head|remove|alert|CTRL'.split('|'), 0, {}));
注意:代码文件和代码位置可能会不一样,请主要参考逻辑