Block access to specific websites with password protection
这些是代码发生过变更的脚本版本 显示所有版本
1. Added a more secure way to store passwords using the SHA-256 hashing algorithm.2. Used a regular expression to check if the current page matches a blocked URL, instead of using `startsWith()`.3. Added an option to enter a custom error message in the script settings.4. Improved error handling by checking if the user cancels the password prompt and redirecting to the error page accordingly.5. Removed the unnecessary use of a `let` variable to declare the `isBlocked` variable.6. Used a template literal to construct the error page URL, instead of concatenating strings.7. Used the `confirm()` method instead of the `prompt()` method to ask the user if they want to remember the password.8. Added comments to explain the changes made to the script.
土豆服务器,请按需使用
镜像地址随时可能被墙,建议加群获取最新地址
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址