Skip to content

Releases: code-charity/dark-mode

3.3.11

18 Jul 19:29
Compare
Choose a tag to compare

Bug fixes and improvements.

3.3

17 Jul 13:29
Compare
Choose a tag to compare
3.3

Changelog

  • Added caching of the state of the default website theme to localStorage
  • Added forced overwriting of colors during the launch of the activate function of the dynamic-filter feature
  • Minor improvements to the deactivate function in the dynamic-filter feature

3.2

10 Jul 12:42
Compare
Choose a tag to compare
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 if dynamic 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

20 Jun 03:08
Compare
Choose a tag to compare
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 the style 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 and invert colors items have been replaced with the theme item
  • Fixed export settings and import settings
  • After importing the data, the data migration script will run
  • Added a new way to get the hostname of the current tab from options-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

20 Dec 19:45
Compare
Choose a tag to compare

Content scripts

  • Added CSS variable handler
  • Added DOM indexing system
  • Added allFrames detail to insertCSS and removeCSS
  • 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 and parseShadowColor have been replaced with a single function parseValue
  • Fixed the function for modifying relative URLs
  • Fixed disabling filters by domain
  • The message get-tab-url has been replaced with init
  • 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 whether dynamic 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 with Roboto
  • 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

09 Nov 09:03
Compare
Choose a tag to compare

Changelog

  • Updated Satus library
  • Fixed problem with settings per site
  • Fixed problem with inline styles in dynamic theme
  • Fixed problem with Tabs component

2.1.0

02 Nov 21:14
Compare
Choose a tag to compare

Changelog

  • Reworked observer code (based on experience from Frame By Frame, Looper and unpublished experiments)
  • Updated Satus library
  • Fixed re-inverting elements in <iframe> (fd7ad76)
  • Reduced the load time of the en-* localization
  • Updated Russian locale
  • Other minor fixes and improvements

2.0.10

05 Oct 16:28
Compare
Choose a tag to compare

Changelog:

  • Fixed color inversion for iframe, [style*=background] elements
  • Dynamic Theme: now a warning about activating is shown only if you have not accepted it
  • Export settings: added error popup
  • Updated Satus library

2.0.1 (hotfix)

27 Sep 23:23
Compare
Choose a tag to compare

Changelog:

  • Removed user-agent-stylesheet.css from manifest.json

v2.0

27 Sep 05:21
Compare
Choose a tag to compare

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 using invert(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

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