Advanced Browser Hosts File (User Managed)

Mimics hosts file behavior with user-managed redirections via local storage.

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
s3b87
日安装量
0
总安装量
4
评分
0 0 0
版本
1.1
创建于
2025-05-27
更新于
2025-05-27
大小
12.9 KB
许可证
MIT
适用于
所有网站

Script Summary: "Browser Hosts Manager"
This Tampermonkey script provides a browser-level alternative to the Windows hosts file, allowing users to manage website redirections and blocking directly within their web browser.
Instead of modifying your operating system's network settings, this script runs in your browser and intercepts navigation attempts. It features a user-friendly management interface for adding, editing, and deleting rules, which can be accessed via a keyboard shortcut (Alt + Shift + H by default) or by navigating to a specific URL path (e.g., any-website.com/_tmredirect).
All your custom redirection rules are persisted using your browser's local storage, ensuring they remain active even after closing and reopening your browser. This makes it an ideal solution for testing, blocking distracting sites, or redirecting to different versions of a website without needing system-level permissions.