mirror of
https://github.com/fmhy/FMHY-SafeGuard.git
synced 2026-03-11 08:55:40 +00:00
Updated changelog for version 1.2.7 with new features, enhancements, bug fixes, and technical details.
2.7 KiB
2.7 KiB
Changelog
v1.2.7 (UNRELEASED)
🚀 New Features
FMHY Notes Display- The extension popup now shows relevant notes from the FMHY wiki when visiting mapped websites.
Live Note Fetching- Notes are fetched from the official FMHY GitHub repository and cached for performance.
Comprehensive Domain Mapping- 80+ domain mappings included (1337x, mobilism, yts, spicetify, movie-web, audiobookbay, etc.).
Pattern-Based Matching- Support for sites with multiple TLDs (e.g.,
yts.mx,yts.rs,yts.ltall show the same note).
- Support for sites with multiple TLDs (e.g.,
Markdown Rendering- Notes are rendered with support for links, lists, bold, italic, and code formatting.
AMOLED Theme- Added pure black AMOLED theme option for OLED displays, matching fmhy.net's theme options.
Unsafe Site Reasons- Warning page and popup now display the reason why a site is flagged as unsafe.
- Reasons are fetched from the FMHY Filterlist repository and include clickable evidence links.
🔧 Enhancements
Improved Message Handling- Converted async message listener to Promise-based pattern for better cross-browser compatibility.
Better Popup Display- Notes appear in a styled collapsible section below the site status.
Reason Display Styling- Popup shows reasons in a dedicated container with alert-triangle icon matching the notes feature.
- Warning page displays reasons in a styled box with clickable links.
🐞 Bug Fixes
Fixed Async Response Handling- Resolved issue where async message listeners returned
Promise<false>instead of keeping the channel open.
- Resolved issue where async message listeners returned
Fixed Markdown Formatting- Popup markdown parser now properly removes duplicate headers and handles paragraphs correctly.
Fixed Reason Not Displaying- Resolved issue where unsafe site reasons were not being passed to the warning page.
- Added fallback to fetch reasons from URL if storage is empty.
🔍 Technical Details
New Filesnotes-mapping.js– Standalone reference file for domain-to-note mappings.
Modified Filesbackground.js– Added notes mapping, fetch/cache logic,getNoteForSitemessage handler, and asyncgetReasonForDomainfunction.index.html– Added note and reason display sections with CSS styling.index.js– Added markdown parser, note fetching logic, and reason display with clickable links.warning-page.html– Added CSS for clickable links in reason text.warning-page.js– Added URL-to-link conversion for reason display.