Warns about unsafe/scammy links based on FMHY filterlist
To są wersje tego skryptu, gdzie kod został zaktualizowany. Pokaż wszystkie wersje.
FMHY SafeLink Guard 0.5.5 – Mini Changelog
This release introduces a 1-week cache for safe/unsafe domain lists, cutting down on constant refetching and ensuring better offline support. A new “Force Update” command allows power users to manually clear outdated data and fetch fresh lists on demand. Trusted domains now skip highlighting their own internal links, making navigation smoother on reputable sites. Tampermonkey’s storage is used extensively, boosting reliability between sessions. Users also gain an option to download all cached lists as JSON for easy backups, while improved logging clarifies what data is loaded from cache vs. newly fetched. Overall, 0.5.5 refines caching efficiency, expands user customization, and tidies up code for a more robust experience.
This update adds color customization, letting users choose the highlight colors for trusted and untrusted links. It also prevents the script from running on FMHY’s own domains to avoid unnecessary processing and self-flagging. A bug was fixed where custom colors were sometimes ignored after page updates. The settings panel was improved to include color pickers for easier customization. Overall, this release focuses on user customization, performance, and reliability.
These changes improve transparency and make troubleshooting easier if FMHY's lists ever go down or change format.
Switched to FMHY's sitelist.txt instead of filterlist.txt. Previously, the script used filterlist.txt, which was originally intended for uBlock Origin. This has now been replaced with sitelist.txt, a dedicated plain-text list of unsafe or scammy domains maintained by FMHY for broader compatibility.
sitelist.txt
filterlist.txt
The parsing code was simplified because sitelist.txt is a clean list of domains (one per line), unlike the old uBlock-style filterlist that used || and ^ syntax.
||
^
List-fetching and parsing logic have been updated to match the new format. The overall behavior, showing one warning per domain per page, remains the same as version 0.4.1.
The old filterlist.txt was designed for uBlock Origin and similar adblockers, meaning it used syntaxes that are unnecessary for a userscript. The new sitelist.txt is cleaner, making it a better fit for this type of script.
Compared to previous 0.3.x versions
flaggedDomains
normalizeDomain(hostname)
www.
markLinksIn()
@version
MutationObserver
WeakSet
Set