* add jest and rewire for testing
* wrap loose code for initMutationObserver() in function and call it instead of just executing it
Otherwise this code is executed everytime state.js is imported somewhere in a file.
This leads to not being able to test properly, since state.js is imported in a lot
of the src files and fails when running the tests since we are missing global environment
settings such as document, window etc in the jest environment.
* export roundDown and getNumberformatter to make them testable as well
* add basic acceptance tests for utils.js, create snapshots and add jest config
* add failing test for buggy behaviour in a separate test case and skip it until fixed
* Fixes after merge conflicts
---------
Co-authored-by: Dmitrii Selivanov <selivano.d@gmail.com>
* Added Option to Disable Logging By Default
* Added Userscript Support to Disable Logging
* Formatting and Fixed Compiling
* Updated Description of Setting Option
* Whitespace 😅
* Dot in Description of Setting option
* Typo in JAVASCRIPT
colorize buttons and ratio bar
Resolves#218
Using user options (#387)
edit color schemes
logistics for the added options
handles storage, change, initialize
also change the icon of the extension when voting is disabled
popup.js, content-script, bg-script listenes to storage change event
so that they can all stay in sync without passing messages
icon_hold is addded
advanced setting is enabled in popup.html
add fallback for changing extension icon
refactor stateData