一个解除 disable-devtool 的用户脚本
A user script to deactive disable-devtool
下载此脚本, 安装到你的油猴/暴力猴等浏览器插件上
访问这个网页, 检查是否可以用浏览器菜单打开控制台, 以及打开控制台后页面是否展示正常
Download this script and install it on your Tampermonkey/Violentmonkey or other browser extensions.
Visit this page to check if you can open the devtool via the browser menu, and see if the page displays correctly while activing devtool.
如果你想要将这个脚本用于其他使用了 disable-devtool 的网站, 你可以修改脚本中 @match 的部分
If you want to use this script on other websites that active disable-devtool, you can modify the @match section of the script.
作为一名前端开发人员, 我并不讨厌 disable-devtool, 相反, 我认为这是一种有益的技术探索
但是我不理解为什么有的网站费尽心思要阻止用户打开控制台, 这让我感到恶心
这种行为只能阻止新手, 而无法拦截有经验的技术人员, 同时还会损害互联网开放包容的环境[1]
As a front-end developer, I don't dislike disable-devtool; on the contrary, I see it as a beneficial technical exploration.
However, I don't understand why some sites go to great lengths to prevent users from opening devtool, which makes me feel disgusted.
Such behavior can only stop beginners but not the experienced developers, while also harming the open and inclusive environment of the Internet.
喜欢的话点个 Star 吧