Commit Graph
110 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
Eryk Darnowski 08ee253c05 Fix like to dislike bar appearing misaligned (#835)
* Fix CSS

* Implement more accurate method for getting like + dislike btn widths
2024-06-16 20:39:56 +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
ThomasTech bf98563c17 fix: getVideoId() with clip (#1055) 2024-06-16 14:24:21 +02:00
Enguerran P 1ed03f7cc9 Extension - New (spring 2024) UI support (#1045)
* Extension - new (spring 2024) UI support

Add new player selector for isVideoLoaded() (fixes #1043)

* Githook tasks for fd45f86f (in a separate commit for readability)
2024-04-18 13:06:57 +02:00
Anarios b133adeecb Prettier applied to whole project, prettier added to pre-commit hook 2024-01-15 01:39:46 +01:00
Anarios 47517ce0bd Testing prettier commit hooks 2024-01-14 21:41:37 +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
Moondarker 1e2935b2fa Extension fix for the latest YouTube update (#991)
* Extension fix for the latest YouTube update

* Bump version to reflect real state of things
2023-12-01 10:51:15 +01:00
Anarios 6239453b9d Big ternary replaced with if-else 2023-11-05 18:30:57 +01:00
Marcel Guzik adbd0fd947 don't show dislike count on share button - fixes #948 (#978) 2023-11-05 18:29:24 +01:00
Anarios 2c7dd8d8ca New YouTube UI fix - 3.0.0.12 2023-10-18 11:46:37 +02:00
Anarios ccbc9a71b4 New YouTube UI fix 2023-10-12 22:05:55 +02:00
Anarios 889089ad1d New YouTube UI fix 2023-08-02 14:00:40 +02:00
Anarios 5c73825aad New YouTube UI fix for userscript and extension 2023-05-10 10:47:27 +02:00
Roman Ushakov a6c945a4eb fix get count dislikes on mobile version of youtube (#888)
* fix (ryd.content.script.js, events.js) fix get count likes on mobile version of yt (tested on android device)

* fix fallback solution for get dislikes
2023-03-10 19:40:57 +01: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
Anarios 931006a00b Revert "added margin for the dislike text (#808)"
This reverts commit 8802b9c76f.
2023-02-18 18:49:20 +01:00
Baraa HalabiandDmitrii Selivanov 8802b9c76f added margin for the dislike text (#808)
Co-authored-by: Dmitrii Selivanov <selivano.d@gmail.com>
2023-02-18 18:45:38 +01:00
Moondarker cf10eeaad3 Create dislike text container based on existing style classes (#793) 2023-02-18 17:40:54 +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
Dmitrii Selivanov 4a7615cb20 Merge pull request #829 from hyperstown/fix_disappearing_rate_bar
Fix disappearing rate bar
2023-02-18 11:08:10 +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
hyperstown 229be807a1 remove cLog 2022-11-23 11:59:19 +01:00
hyperstown b5382bab78 improve rateBar selector 2022-11-23 11:52:00 +01:00
hyperstown 7db9d9d30d Revert "fix disappearing rate bar"
This reverts commit 8eef50918d.
2022-11-23 11:20:38 +01:00
hyperstown 8eef50918d fix disappearing rate bar 2022-11-22 20:51:51 +01:00
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
Dmitrii Selivanov aa10f30a70 Merge pull request #783 from hyperstown/re-format-numbers-fix
Fix reformat likes
2022-11-10 15:06:59 +01:00
hyperstown d719f4b5c9 fix display error 2022-11-08 19:46:41 +01:00
mini-bomba 02cb6fd398 Fix ratiobar positioning in the new youtube design
This is done by attaching the bar to the like/dislike button container instead of the whole interaction menu,
then using absolute positioning after modifying a few youtube styles.
2022-11-01 16:57:32 +01:00
hyperstown 87e922d41f fix like reformat option to work with new design 2022-10-18 00:39:21 +02:00
ErykDarnowski b6bec07368 Fix comment 2022-10-09 01:20:24 +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
Dmitrii Selivanov de1831f2c7 Merge pull request #759 from hyperstown/fix-hidden-count
QFIX hidden dislike count, extension & userjs
2022-09-21 12:50:10 +02:00
Dmitrii Selivanov 8f88f9203f Merge pull request #754 from thiagocferr/741-Dislike-Numbers-in-Shorts-disappears-when
HOTFIX: added aditional check for like/dislike buttons inside ACTIVE …
2022-09-21 12:49:37 +02:00
hyperstown 805f693be3 fix getDislikeTextContainer for new design 2022-09-19 20:23:29 +02:00
hyperstown 8c95d76d03 fix hidden dislike count, extension & userjs 2022-09-18 12:32:44 +02:00
Thiago Ferreira 11df4d1706 HOTFIX: added aditional check for like/dislike buttons inside ACTIVE Viewport
In certain cases (see issue #741), the like/dislike buttons would be considered IN the viewport, despite its parent elements being hidden and its DOMRect being 0 on all sides. This way, added an additional check for considering these "hidden" buttons as NOT in the Viewport.
2022-09-14 11:53:13 -03:00
Anarios 6be44d9eb9 New layout fix - bar. 2022-08-05 23:03:36 +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