Releases: code-charity/dark-mode
Releases · code-charity/dark-mode
3.3.11
3.3
3.2
Changelog
- Fixed instant activation/deactivation of
dynamic filteroption - Fixed an issue where the
checkDefaultTheme()would indicate the website's default dark theme is active ifdynamic filteris enabled - Fixed an issue where
dynamic filterwas run multiple times - Added wait for all styles to be loaded before disabling color overwrites
- Transitions are skipped on page load to avoid slow color changes
3.1
General
- The manifest version has been updated to 3
- New project file structure
- Upgraded data storage structure
- Upgraded Satus library
Content Scripts
- The
filterproperty is now stored in the<style>element, instead of thestyleattribute in<html> - Added a function to check if the website has its own dark theme
- Fixed incorrect color inversion for
iframe - Fixed bugs in
dynamictheme - Fixed custom CSS
- Improved the
schedulefeature and now does not require reloading the tab
User Interface
- Upgraded
options-pagecode for compatibility with new manifest and Satus library - The day/night switch has been replaced with a power button
- Items from the
filterscategory have been moved to the main screen - The
dynamic themeandinvert colorsitems have been replaced with thethemeitem - Fixed
export settingsandimport settings - After importing the data, the data migration script will run
- Added a new way to get the
hostnameof the current tab fromoptions-pageto avoid errors caused by sending messages to unconnected tabs
Languages
- Updated Turkish language file (by Baki Nazik)
- Updated Persian language file (by MasterKia)
- Added more language files
- Added instant language change
- Upgraded
locale.py
Background script
- Added data migration function
- Added auto execution of content scripts for all tabs when installing the extension
- Removed a bunch of useless code
3.0-alpha
Content scripts
- Added CSS variable handler
- Added DOM indexing system
- Added
allFramesdetail toinsertCSSandremoveCSS - Added waiting for DOM and extension storage to load
- Added queue system (if the browser is delaying storage data)
- Added method
getPropertyPriorityfor property prioritization (!important) - The
relattribute will now be converted to lowercase before validation - Implemented passing selectors when parsing
- Reworked DOM observation system
- Reworked attribute handling system (
bgcolor,color,fill,stop-color,stroke,style) - Reworked
user agent stylesheetfor loading page - Reworked storage item caching system (
content-script.js) - The functions
parseBackgroundColor,parseTextColor,parseBorderColorandparseShadowColorhave been replaced with a single functionparseValue - Fixed the function for modifying relative URLs
- Fixed disabling filters by domain
- The message
get-tab-urlhas been replaced withinit - The
dynamic themefeature is now controlled by the background service
Background service
- Added storage caching
- Added function to check if
dynamic themeis active - The response to the
initmessage now contains a property about whetherdynamic themeis active
User interface
- Updated Satus library
- Fixed HTML templates (
options.html,popup.html) - Removed
grayversion of extension icon - Replaced
Open Sansfont withRoboto - Updated
_locales
Other
- Prepared for
manifest v3 - Improved file structure
- The value of the
descriptionproperty (manifest.json) has been changed to__MSG_description__
2.1.3
2.1.0
2.0.10
2.0.1 (hotfix)
Changelog:
- Removed
user-agent-stylesheet.cssfrommanifest.json
v2.0
Filters
- Added
dynamic theme(experimental) - All CSS filters are now applied only to
<html>element - Bluelight: fixed compatibility with
invert(1)filter - Fixed background rectangle when using
invert(1)filter - Fixed incorrect
position: fixed;elements when usinginvert(1)filter - Improved filters rendering performance
Dynamic Theme
- Added dynamic activation/deactivation method
UI
- Updated Satus library (version for migration)
- Added favicons to the list of websites
- Removed
text editor modeas potentially dangerous - Switch replaced with "Delete" button in the list of websites
- Improved export/import of settings
- Added pop-up confirmation of
dynamic themefeature activation - Removed light color scheme (instead, increased the contrast of the dark color scheme)
Localization
- Updated German language (GitMoleo)
- Updated English language
- Updated Indonesian language (Shaquille Demsi)
- Updated Russian language
Extension behavior
- Added a mechanism for getting the hostname and id of the current tab via
background.js - Fixed a scenario where an
<iframe>changed the key of a storage object - User agent stylesheet rewriting now works via
insertCSS/removeCSS(for priority inheritance) - The schedule has been completely moved to JavaScript
- Improved storage structure