The ultimate URL purifier - for Tampermonkey
Navigate to GitHub repo for updated info.
The ultimate URL purifier - Tampermonkey version. This script uses pURLfy core as its core, and integrates its URL purifying functionality into a Tampermonkey script.
Simply navigate to Greasy Fork and click the "Install this script" button.
location.hrefclick eventsmousedown eventsauxclick eventstouchstart eventswindow.open callshistory.pushState callshistory.replaceState callsparam mode)redirect mode)visit mode)navigator.sendBeacon to a no-op function
By default, "Senseless Mode" is enabled, and the script will adopt a lenient approach to URL purification, prioritizing user experience over strict URL cleansing. This may help reduce interruptions and maintain website functionality while still providing a level of URL purification.
You can disable it in the advanced options. By doing so, you're switching to "Strict Mode", where this script will take radical measures to ensure that URLs are purified before they are used. However, in some cases, this may lead to noticeable interruptions or even break certain functionalities on some websites.
Here's a table comparing the two modes:
| Feature | Strict Mode | Senseless Mode |
|---|---|---|
| URL Purification Priority | High | Medium |
| Privacy Protection Level | Strict | Moderate |
| Potential Interruptions | Possible | Less Likely |
| Target Audience | Advanced Users | General Users |
Technical details:
location.href when it detects an uncleaned URL, causing a page reload or even leading to infinite reloads in some cases. In senseless mode, the script will just call history.replaceState to change the URL without reloading the page.Navigate to Tampermonkey Dashboard - Settings - External, and choose the update interval you want from the dropdown menu.
Navigate to Tampermonkey Dashboard - Installed Userscripts - pURLfy for Tampermonkey - External, and for each entry under Resources, click the Update or Delete button. After refreshing the page, the rules will be updated automatically.
See pURLfy core and its source code for more information.
Rules files can be fount at pURLfy rules.
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.