Clean Bilibili links and remove tracking parameters.
This script uses the CC-BY-NC-SA-4.0 Creative Commons license.
This means you are required to credit the author when redistributing, not use it for commercial purposes, and share it under the same license.
I have tried most similar scripts on Greasy Fork, but since many of them haven’t been updated for a long time, some scenarios are not fully filtered.
Over the past few days, I created this one for fun. I’m not a programmer, but if you have any questions or suggestions, please let me know!
Before and after cleaning video links
Before and after cleaning search links
Before and after cleaning live links
Using this script with Tampermonkey on Chromium-based browsers (Brave, Chrome, Edge, Vivaldi, etc.) will have no effect.
Please switch to the open-source Violentmonkey: https://chrome.google.com/webstore/detail/violentmonkey/jinjaccalgkegednnccohejagnlnfdag
Safari and Gecko-based browsers (Firefox, Tor Browser, Mullvad Browser, LibreWolf, etc.) have been tested and are not affected when used with Tampermonkey.