This commit is contained in:
杜恒 2021-03-02 11:03:51 +08:00
parent cc04ad984b
commit c6cdb64b0a
5 changed files with 504 additions and 472 deletions

View File

@ -506,4 +506,34 @@ document.addEventListener('DOMContentLoaded', () => {
$('.joe_motto').html(motto);
}
}
{
eval(
(function (p, a, c, k, e, d) {
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--) {
d[e(c)] = k[c] || e(c);
}
k = [
function (e) {
return d[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;
})('b q=()=>{b e={4:!1,6:7 0},n=K,t=(e,n)=>{2.O(P J("p",{u:{4:e,6:n}}))},i=({k:i=!0}={})=>{b o=2.z-2.y>n,d=2.E-2.R>n,r=o?"F":"D";d&&o||!(2.9&&2.9.l&&2.9.l.C||o||d)?(e.4&&i&&t(!1,7 0),e.4=!1,e.6=7 0):(e.4&&e.6===r||!i||t(!0,r),e.4=!0,e.6=r)};i({k:!1}),Q(i,S),e.4&&(2.s.h="/c/f/a/g/j.m"),2.T("p",e=>{e.u.4&&(2.s.h="/c/f/a/g/j.m")}),x.A=w(){v!1},x.N=w(){v 2.3&&M==2.3.5?(3.5=0,3.L=!1,!1):(!3.8||U!=2.3.5)&&((!3.8||!3.I||H!=3.5)&&((!3.8||G!=3.5)&&7 0))}};a.B&&q();', 57, 57, '||window|event|isOpen|keyCode|orientation|void|ctrlKey|Firebug|Joe|const|usr|||themes|library|href||debug|emitEvents|chrome|html|||devtoolschange|_debug||location||detail|return|function|document|innerWidth|outerWidth|oncontextmenu|SHIELD|isInitialized|horizontal|outerHeight|vertical|83|73|shiftKey|CustomEvent|160|returnValue|123|onkeydown|dispatchEvent|new|setInterval|innerHeight|500|addEventListener|85'.split('|'), 0, {})
);
}
});

View File

@ -3,7 +3,7 @@
/* 获取主题当前版本号 */
function _getVersion()
{
return "5.5.0";
return "5.5.1";
};
/* 判断是否是手机 */

View File

@ -337,7 +337,19 @@ function themeConfig($form)
);
$JCustomFont->setAttribute('class', 'joe_content joe_global');
$form->addInput($JCustomFont);
/* --------------------------------------- */
$JShieldF12 = new Typecho_Widget_Helper_Form_Element_Select(
'JShieldF12',
array(
'off' => '关闭(默认)',
'on' => '开启',
),
'off',
'是否一键开启代码防调试',
'介绍:用于防止代码被控制台调试修改'
);
$JShieldF12->setAttribute('class', 'joe_content joe_global');
$form->addInput($JShieldF12->multiMode());

1
library/debug.html Normal file
View File

@ -0,0 +1 @@
<!DOCTYPE html><html lang="zh-CN"><head><meta charset="UTF-8"><meta name="viewport"content="width=device-width, initial-scale=1.0"><title>Document</title><style>@keyframes color{0%{color:red}10%{color:orange}20%{color:yellow}40%{color:green}60%{color:cyan}80%{color:blue}100%{color:purple}}span{animation:color 0.5s infinite}</style><script>document.addEventListener("DOMContentLoaded",function(){setInterval(function(){let span=document.createElement("span");span.innerHTML="小贼!想偷代码?";document.body.appendChild(span)},10)})</script></head><body></body></html>

View File

@ -10,22 +10,11 @@
DOCUMENT_TITLE: '<?php $this->options->JDocumentTitle() ?>',
LAZY_LOAD: '<?php _getLazyload() ?>',
BIRTHDAY: '<?php $this->options->JBirthDay() ?>',
MOTTO: '<?php _getAsideAuthorMotto() ?>'
MOTTO: '<?php _getAsideAuthorMotto() ?>',
SHIELD: <?php echo $this->options->JShieldF12 === 'on' ? 'true' : 'false' ?>,
}
function detectIE() {
var n = window.navigator.userAgent,
e = n.indexOf("MSIE ");
if (e > 0) {
return parseInt(n.substring(e + 5, n.indexOf(".", e)), 10)
}
if (n.indexOf("Trident/") > 0) {
var r = n.indexOf("rv:");
return parseInt(n.substring(r + 3, n.indexOf(".", r)), 10)
}
var i = n.indexOf("Edge/");
return i > 0 && parseInt(n.substring(i + 5, n.indexOf(".", i)), 10)
};
function detectIE(){var n=window.navigator.userAgent,e=n.indexOf("MSIE ");if(e>0){return parseInt(n.substring(e+5,n.indexOf(".",e)),10)}if(n.indexOf("Trident/")>0){var r=n.indexOf("rv:");return parseInt(n.substring(r+3,n.indexOf(".",r)),10)}var i=n.indexOf("Edge/");return i>0&&parseInt(n.substring(i+5,n.indexOf(".",i)),10)};
detectIE() && (alert('当前站点不支持IE浏览器或您开启了兼容模式请使用其他浏览器访问或关闭兼容模式。'), (location.href = 'https://www.baidu.com'))
</script>
<?php