function a() {
window.location.href = "https://www.larrycms.com/";
return false
}
if (top.window.outerHeight - top.window.innerHeight > 150) {
a()
}
if (top.window.outerWidth - top.window.innerWidth > 150) {
a()
}
};
r(document).keydown(function() {
return y(arguments[0])
});
function y(r) {
var o;
if (window.event) {
o = r.keyCode
} else if (r.which) {
o = r.which
}
if (o == 123) {
e.larryCmsError("说好的demo版本只演示 不允许F12哦!加QQ群493153642免费下载最新版源码", e.larryCore.tit);
return false
}
if (r.ctrlKey) {
if (r.shiftKey && o == 73) {
e.larryCmsError("说好的demo版本只演示 不允许ctrl+shift+I哦!加QQ群493153642免费下载最新版源码", e.larryCore.tit);
return false
}
}
if (r.ctrlKey && o == 83) {
e.larryCmsError("说好的demo版本只演示 不允许ctrl+s保存哦!加QQ群493153642免费下载最新版源码", e.larryCore.tit);
return false
}
}
第一步:
SDK.targetManager._mainConnection.sendMessage(JSON.stringify({
"id": 1,
"method": "Page.addScriptToEvaluateOnLoad",
"params": {"scriptSource": "Object.defineProperty(window, 'layui', {get: function () {if (!!window.layuiInst) {if (!!window.cracked) {window.layuiInst.use = window.layuiInstUSE;} else {window.layuiInst.use = function (e, n, l) {if(JSON.stringify(e)==JSON.stringify(['jquery', 'layer', 'element', 'common'])) {console.log(e);return;}else {window.layuiInstUSE.apply(window.layuiInst,[e, n, l]);}}}}return window.layuiInst;}, set: function (value) {console.log(value);if (!!value.use) {window.layuiInstUSE = value.use;}window.layuiInst = value;}, enumerable: false});setTimeout(function () {window.cracked=true;},2000)"}
}))
注意每个页面不同
其中 if(JSON.stringify(e)==JSON.stringify(['jquery', 'layer', 'element', 'common']))需要自己修改判断