stephancasas / thingiverse-stl-downloader

Skip the ads on Thingiverse, and get straight to the good stuff.
18 stars 2 forks source link

Reduces the scopes of the manifest.json file and does a dark mode check on initialization #4

Open helfrichmichael opened 2 years ago

helfrichmichael commented 2 years ago

Here's a possible solution to reducing the scope of the manifest.json file for the Thingiverse Downloader. My approach was to develop a helper HTML and JS file to check for the dark mode theme being enabled/disabled. It then forwards that as a runtime message to the background service worker and that will then adjust the constant/icon.

Let me know what you think about this approach, but hoping it helps (used to TypeScript mostly these days, so was trying to solve this without introducing more packages/dependencies).