diff --git a/assets/js/joe.global.js b/assets/js/joe.global.js index 9c58c75..8d1df22 100644 --- a/assets/js/joe.global.js +++ b/assets/js/joe.global.js @@ -506,8 +506,4 @@ document.addEventListener('DOMContentLoaded', () => { $('.joe_motto').html(motto); } } - - { - - } }); diff --git a/functions.php b/functions.php index 1b0ff8b..7f50d32 100644 --- a/functions.php +++ b/functions.php @@ -337,22 +337,8 @@ 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()); - - + $JAside_Author_Nick = new Typecho_Widget_Helper_Form_Element_Text( 'JAside_Author_Nick', NULL, diff --git a/public/config.php b/public/config.php index abf0b75..8d15a02 100644 --- a/public/config.php +++ b/public/config.php @@ -10,11 +10,22 @@ DOCUMENT_TITLE: 'options->JDocumentTitle() ?>', LAZY_LOAD: '', BIRTHDAY: 'options->JBirthDay() ?>', - MOTTO: '', - SHIELD: options->JShieldF12 === 'on' ? 'true' : 'false' ?>, + MOTTO: '' } - 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'))