Releases: code-charity/dark-mode
Releases · code-charity/dark-mode
3.3.11
3.3
3.2
Changelog
- Fixed instant activation/deactivation of
dynamic filter
option - Fixed an issue where the
checkDefaultTheme()
would indicate the website's default dark theme is active ifdynamic filter
is enabled - Fixed an issue where
dynamic filter
was 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
filter
property is now stored in the<style>
element, instead of thestyle
attribute in<html>
- Added a function to check if the website has its own dark theme
- Fixed incorrect color inversion for
iframe
- Fixed bugs in
dynamic
theme - Fixed custom CSS
- Improved the
schedule
feature and now does not require reloading the tab
User Interface
- Upgraded
options-page
code for compatibility with new manifest and Satus library - The day/night switch has been replaced with a power button
- Items from the
filters
category have been moved to the main screen - The
dynamic theme
andinvert colors
items have been replaced with thetheme
item - Fixed
export settings
andimport settings
- After importing the data, the data migration script will run
- Added a new way to get the
hostname
of the current tab fromoptions-page
to 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
allFrames
detail toinsertCSS
andremoveCSS
- Added waiting for DOM and extension storage to load
- Added queue system (if the browser is delaying storage data)
- Added method
getPropertyPriority
for property prioritization (!important
) - The
rel
attribute 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 stylesheet
for loading page - Reworked storage item caching system (
content-script.js
) - The functions
parseBackgroundColor
,parseTextColor
,parseBorderColor
andparseShadowColor
have been replaced with a single functionparseValue
- Fixed the function for modifying relative URLs
- Fixed disabling filters by domain
- The message
get-tab-url
has been replaced withinit
- The
dynamic theme
feature is now controlled by the background service
Background service
- Added storage caching
- Added function to check if
dynamic theme
is active - The response to the
init
message now contains a property about whetherdynamic theme
is active
User interface
- Updated Satus library
- Fixed HTML templates (
options.html
,popup.html
) - Removed
gray
version of extension icon - Replaced
Open Sans
font withRoboto
- Updated
_locales
Other
- Prepared for
manifest v3
- Improved file structure
- The value of the
description
property (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.css
frommanifest.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 mode
as potentially dangerous - Switch replaced with "Delete" button in the list of websites
- Improved export/import of settings
- Added pop-up confirmation of
dynamic theme
feature 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