* Add localization to the tooltip-porcentage-mode fields, as well the Spanish translation
* Fix Spanish translation for showTooltipPercentage
* Fix plural Spanish translation
* Translate readme to Hungarian
* Translate extension description to Hungarian
* Add Hungarian localization for website
* Add Hungarian locale to the extension
* Fixes after merge conflicts
---------
Co-authored-by: Gergely Pap <pgege42@gmail.com>
Co-authored-by: Anarios <selivano.d@gmail.com>
* 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
* Extension - new (spring 2024) UI support
Add new player selector for isVideoLoaded() (fixes#1043)
* Githook tasks for fd45f86f (in a separate commit for readability)
* Userscript - new (spring 2024) UI support
Add new player selector for isVideoLoaded() (fixes#1043)
* Githook tasks for 17f5bdf0 (in a separate commit for readability)
* Add german FAQ translation
* Add german Security-FAQ translation
* Add missing german messages translation
* Add german Contributing translation
* Fix german README translation
* Add german extension description translation
* Add german README translation
* Add german README store translation
* Add german as language
* Fix rate bar jumping around in width
* Fix disappearing dislike counter
* Fix disappearing dislike count on button focus/unfocus by @kokonguyen191
* Fix event listeners being thrown away by YouTube in some cases
* Extension fix for disappearing dislikes while smartimations play
* Check if smartimationContainer exists
* Fix disappearing dislike counter - userscript
* Fix rate bar in userscript, disable it by default (it has been broken for ages)
* Fix event listeners being thrown away by YouTube in some cases
* Fix disappearing dislike count on button focus/unfocus
* Remove repetitive code from the userscript
* Userscript fix for disappearing dislikes while smartimations play
* Check if smartimationContainer exists
* Properly handle non-existing dislike button
In some cases, dislike button doesn't exist when we're trying to
interact with it. For end users, it manifested as dislike counter
appearing on both dislike button and share button (because
getDislikeButton was falling back to the second child of getButtons()).
I don't see an elegant way of fixing this without creating a fake button
in DOM specifically for this case or rewriting the whole userscript.
Ignoring this would result in errors appearing in console.
---------
Co-authored-by: Felix Nguyen <kokonguyen191@gmail.com>