pURLfy for Tampermonkey

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.