Commit Graph
57 Commits
Author SHA1 Message Date
Snow 30213b9ecf Unobserved child node removals (#1096)
* fix(userscript): listen to node removals

* fix(combined): observe node removals
2024-10-16 01:27:27 +02:00
Leon BubovaandDmitrii Selivanov d62130b898 Feature/add unit testing framework and start writing unit tests (acceptance tests) (#708)
* 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>
2024-06-16 19:52:58 +02:00
Divyansh Agrawal fbf00e474d Added Option to Disable Logging By Default (#474)
* 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
2024-06-16 18:52:41 +02:00
Anarios b133adeecb Prettier applied to whole project, prettier added to pre-commit hook 2024-01-15 01:39:46 +01:00
Anarios fbf80ab174 3.0.0.14 release - YouTube UI fixes 2023-12-12 23:25:17 +01:00
Moondarker 6791543617 Extension fix - disappearing dislike counter (#999)
* 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
2023-12-12 19:33:37 +01:00
Anarios b6367ae334 3.0.0.13 release - dynamic selectors config loading from server added. 2023-12-04 11:04:14 +01:00
Anarios 5c73825aad New YouTube UI fix for userscript and extension 2023-05-10 10:47:27 +02:00
sy-b 9a44acf89d Show dislikes again on new YT UI (01) (2) (#886)
Signed-off-by: sy-b <94835959+sy-b@users.noreply.github.com>
2023-03-10 19:38:11 +01:00
Dmitrii Selivanov a4c763d586 Revert "Show dislikes again on new YT UI (01) & fix workflow faliure" 2023-02-18 11:14:58 +01:00
sy-b 44d1ea390f Show dislikes again on new YT UI (01)
Signed-off-by: sy-b <94835959+sy-b@users.noreply.github.com>
2023-02-16 17:54:12 +05:30
Dmitrii Selivanov f1732d13d8 Merge pull request #816 from hyperstown/fix_display_error
Fix "API down" error message
2022-11-18 17:32:47 +01:00
Dmitrii Selivanov 06f0a8b197 Merge branch 'main' into fix-like-dislike-bar-offset 2022-11-10 15:09:56 +01:00
hyperstown d719f4b5c9 fix display error 2022-11-08 19:46:41 +01:00
hyperstown 87e922d41f fix like reformat option to work with new design 2022-10-18 00:39:21 +02:00
ErykDarnowski bf74407f8a Fix like/dislike ratio bar offset
Closes [#733](https://github.com/Anarios/return-youtube-dislike/issues/733)
2022-10-09 01:12:22 +02:00
hyperstown 8c95d76d03 fix hidden dislike count, extension & userjs 2022-09-18 12:32:44 +02:00
Anarios 2d9809ad31 New layout fix 2022-08-05 22:57:27 +02:00
Anarios 4e0f633a14 Prettier reformat 2022-08-02 00:03:03 +02:00
sh4dow 596c0d730c fix dislike text box not being found for some users 2022-08-01 21:49:35 +02:00
Anarios 8e376f6142 RoundDown option removed 2022-07-28 22:18:42 +02:00
Anarios b0cb173830 Fixes after merges, prettier globally applied 2022-07-26 00:05:20 +02:00
Dmitrii Selivanov 34796a7200 Merge branch 'develop' into ratio-bar-on-new-design 2022-07-25 23:09:25 +02:00
Aaron Kerckhoff 08bdfe1632 Add ratio bar to new design 2022-07-24 19:00:33 +02:00
Dmitrii Selivanov f4e5591f66 Merge pull request #594 from cyrildtm/fixLikeUpdated
Fix like numbers re-format
2022-07-20 00:06:45 +02:00
Dmitrii Selivanov cb5f9474a2 Merge pull request #560 from ErykDarnowski/main
Implemented option to show like/dislike percentage instead of full like/dislike count
2022-07-20 00:01:10 +02:00
sy-b bb3fdc62c2 import starRating in state.js
Signed-off-by: sy-b <94835959+sy-b@users.noreply.github.com>
2022-06-29 07:48:32 +05:30
Aneimytis 1d3f71170b do not get Shorts like number
It does not work.
Also, in js zero is not false.
2022-05-08 05:53:07 -05:00
Aneimytis df742d0566 Get the like number from proper place
When like button is clicked, only one of the two aria-label attributes gets updated. Use the correct one to reflect latest like count. Affects user option "re-format like numbers"

Attn #561
2022-05-08 05:40:20 -05:00
Eryk Darnowski 94cc5734cb Merge branch 'Anarios:main' into main 2022-05-03 14:08:15 +02:00
Dmitrii Selivanov a4806c1f47 sendVideoIds removed, sponsor links updated 2022-04-26 23:07:05 +02:00
Eryk Darnowski f34ee8eda3 Merge branch 'main' into main 2022-04-26 19:57:20 +02:00
Dmitrii Selivanov 43380c83c3 Merge branch 'main' into extOptionFormatLikes 2022-04-26 19:00:09 +02:00
Dmitrii Selivanov ce751af4db Merge branch 'main' into shortButtonColorFix 2022-04-26 18:55:03 +02:00
Eryk Darnowski ddcca0017e Merge branch 'main' into main 2022-04-26 18:52:33 +02:00
Aneimytis f752d02e51 (extension) fix shorts thumb colors
fix #565
2022-04-24 15:57:19 -05:00
ErykDarnowski 50466e2a2b Implement feature #211 2022-04-21 18:45:42 +02:00
Yvon Cui 09b29d7cab Add user option to re-format likes
fixes #543
This feature does not force-display likes when uploader has disabled like number display. Consult with other issues.
2022-04-19 00:57:28 -05:00
CreaZyp154 43a7167e2b Closes #472 2022-04-12 13:43:50 +02:00
Cyril Strahm 1d2f89a38c Display 'temporarily unavailable' when the API can't be reached 2022-04-06 21:50:39 +02:00
Dmitrii Selivanov b7029ce426 Merge issues fixed, core reformatted with prettier 2022-03-20 23:40:46 +03:00
Dmitrii Selivanov f218443b4c Merge branch 'main' into ColorizedButtonsAndBar-New 2022-03-20 23:24:08 +03:00
Dmitrii Selivanov e97b4a75af Merge branch 'main' into CustomNumberFormat 2022-03-20 20:32:21 +03:00
RyanBurgert219 1cc579d00d Extensions: Supports YouTube Shorts 2022-03-20 05:54:20 -04:00
sy-b 62501e0207 Fixed a small typo
replaced "diabled" with "disabled"
2022-02-11 23:58:00 +05:30
Yvon Cui 54e9267655 finish implementation 2022-01-19 00:40:06 -05:00
Yvon Cui b476c60fe0 cherry pick from previously broken and abandoned branch
colorize buttons and ratio bar

Resolves #218
Using user options (#387)

edit color schemes

logistics for the added options

handles storage, change, initialize
2022-01-18 09:54:17 -05:00
Yvon Cui a2bc4ca92e Add custom number formats
Fix Issues #201 #364 #407
Using plugin options (Issue #387)
2022-01-18 09:43:46 -05:00
Dmitrii Selivanov cebe938ce0 2.1.0 release 2022-01-08 23:22:29 +03:00
thesusian 6db73d26ba Reformated code in src 2022-01-08 18:36:54 +03:00