前言
让网站禁止访问控制台,打开控制台就会跳转到另一个页面,取消就会返回上一页,这个没图,你们可以自己试一下。
效果展示
本站使用子主题panda已经自带此功能
![图片[1]-子比美化 – 网站F12控制台跳转-阿七源码](https://www.wmr7.com/wp-content/uploads/2025/05/01-2.jpg)
代码
路径自己调整一下,跳转的页面我就打包了,自行下载吧!
JS代码
<script type="module">
import devtools from './banf12/js/moukey.js';
if (devtools.isOpen) {
window.location.href = "./banf12"};
window.addEventListener('devtoolschange', event => {
if (event.detail.isOpen) {
window.location.href = "./banf12"};
});
</script>
阿七源码提示到此教程结束《我是直接放在底部文件里面的》完整包已经打好,自己下载测试
轩玮博客--专注于精品源码分享
本站代码模板仅供学习交流使用请勿商业运营,严禁从事违法,侵权等任何非法活动,否则后果自负!
Warning: Undefined variable $before in /www/wwwroot/wmr7.com/wp-content/plugins/wml-zib-diy/core/functions/feature/wml-down.php on line 469
Warning: Undefined variable $after in /www/wwwroot/wmr7.com/wp-content/plugins/wml-zib-diy/core/functions/feature/wml-down.php on line 469
Warning: Undefined variable $count in /www/wwwroot/wmr7.com/wp-content/plugins/wml-zib-diy/core/functions/feature/wml-down.php on line 470
Warning: Undefined variable $args in /www/wwwroot/wmr7.com/wp-content/plugins/wml-zib-diy/core/functions/feature/wml-down.php on line 535
Warning: Trying to access array offset on value of type null in /www/wwwroot/wmr7.com/wp-content/plugins/wml-zib-diy/core/functions/feature/wml-down.php on line 535
Warning: Undefined variable $args in /www/wwwroot/wmr7.com/wp-content/plugins/wml-zib-diy/core/functions/feature/wml-down.php on line 535
Warning: Trying to access array offset on value of type null in /www/wwwroot/wmr7.com/wp-content/plugins/wml-zib-diy/core/functions/feature/wml-down.php on line 535
Warning: Undefined variable $args in /www/wwwroot/wmr7.com/wp-content/plugins/wml-zib-diy/core/functions/feature/wml-down.php on line 535
Warning: Trying to access array offset on value of type null in /www/wwwroot/wmr7.com/wp-content/plugins/wml-zib-diy/core/functions/feature/wml-down.php on line 535
© 版权声明
THE END
















暂无评论内容