pURLfy for Tampermonkey

The ultimate URL purifier - for Tampermonkey

目前為 2024-04-21 提交的版本,檢視 最新版本

作者
PRO-2684
評價
0 0 0
版本
0.1.8
建立日期
2024-04-14
更新日期
2024-04-21
尺寸
6.4 KB
授權條款
GPL-3.0
腳本執行於
所有網站

pURLfy for Tampermonkey

Greasy Fork

The ultimate URL purifier - Tampermonkey version. This script uses pURLfy core as its core, and integrates its URL purifying functionality into a Tampermonkey script.

Installation

Simply navigate to Greasy Fork and click the "Install this script" button.

Configuration

Statistics can be viewed by clicking Show Statistics in the menu, and can be cleared by clicking OK.

For advanced users, you can configure which hooks are enabled by modifying this script's external storage in Tampermonkey:

{
    "hook.location.href": true, // Check `location.href` (not really a hook, actually)
    "hook.click": true, // Intercept `click` events
    "hook.mousedown": true, // Intercept `mousedown` events
    "hook.window.open": true // Hook `window.open` calls
}

How it works

Purifying URLs

See pURLfy core and its source code for more information.

Hooks

This script hooks certain methods, intercepts calls to them, purifies the URLs, and then calls the original methods with the purified URLs. For more information, see the source code.