Commit graph

1521 commits

Author SHA1 Message Date
Ajay
93d695e6c2 Fix error sending messages to closed popups 2023-08-11 12:15:05 -04:00
Ajay
160924feee Update maze utils to improve performance on Invidious, and fix preview bar error
thanks @raphj
2023-08-11 12:08:19 -04:00
Ajay
e3f3ed20e6 Enable non persistent background page on Firefox 2023-08-11 11:39:06 -04:00
Ajay
fc8e20be0d Impove incorrect video check, and add better logging to it
Potential fix for #1820
2023-08-09 18:24:21 -04:00
Ajay
16005e417d Remove maze utils symlink 2023-08-01 22:45:01 -04:00
Ajay
dc91ee76ca Add support for live updating in chrome 2023-07-29 01:41:57 -04:00
Ajay
90bb9a4d02 Remove log 2023-07-28 20:44:19 -04:00
Ajay
d12d847f2f Fix it sometimes looping instead of going to next video when autoskipping at the end for playlists
Fix #1804
2023-07-28 20:42:06 -04:00
Ajay
31a9de252d Fix skip loop issue
Fixes #1811
2023-07-28 20:34:09 -04:00
Ajay
299cb485c3 Fix chapter name sometimes disappearing 2023-07-28 19:37:54 -04:00
Ajay
882d462849 Add category color to skip notice 2023-07-28 18:42:27 -04:00
Ajay
fc3710b37b Clear preview bar on update 2023-07-28 18:39:51 -04:00
Ajay
3ac170ad01 Fix skip to highlight button on live update 2023-07-28 18:34:05 -04:00
Ajay
4069545603 Support live updates on firefox 2023-07-28 16:30:28 -04:00
Ajay
e27a287a68 Better zoom to fill compatibility check 2023-07-19 20:30:16 -04:00
Ajay
6f8c44b2eb Fix category colors sometimes not working 2023-07-18 13:26:41 -04:00
Ajay
d074fdec96 Make category tooltip work on mobile and make it clear after voting 2023-07-14 21:04:33 -04:00
Ajay Ramachandran
e89f75e4b6
Merge pull request #1798 from mchangrh/piped-ci
Piped CI
2023-07-14 20:37:57 -04:00
Ajay
8bcaf906fb Add warning if zoom to fill is installed 2023-07-14 20:37:08 -04:00
Ajay
cee00a87c1 Remove text from category pills on mobile and don't make them take full height of title box 2023-07-14 17:55:55 -04:00
Ajay
af977840c6 Change to using hostname 2023-07-11 17:22:23 -04:00
Ajay
e8370121d5 Ignore port when checking if on invidious instance 2023-07-11 17:14:43 -04:00
Ajay
3175d7f8e9 remove port from invidious domain as it is not needed 2023-07-11 17:05:08 -04:00
Ajay
3d88d29d93 potential fix for IP invidious instances 2023-07-11 16:51:12 -04:00
Michael C
60f9274438
add selectors for YT kids 2023-07-06 18:02:13 -04:00
Ajay
0f7ed9926c Remove maze utils from npm deps 2023-06-30 03:07:57 -04:00
Ajay
e1982f265e Move maze utils to a submodule, move tooltip out 2023-06-30 02:46:27 -04:00
Ajay
dd7a673637 Don't show dearrow popup for new users 2023-06-22 14:00:08 -04:00
Ajay
b4adee720f Add notice about dearrow, make dearrow links not appear if dearrow installed 2023-06-21 23:07:09 -04:00
Ajay
d4f668559c Add link in options to dearrow 2023-06-21 19:55:17 -04:00
Ajay Ramachandran
b383acc902
Merge pull request #1705 from rakleed/border-radius
Add border radius like other YouTube elements
2023-06-16 12:26:41 -04:00
Ajay
c7dad09555 Add warning when enabling filler 2023-05-29 14:39:44 -04:00
Ajay
1b2be35bd6 Check multiple times if preview bar failed to be added 2023-05-28 16:11:49 -04:00
Ajay
ff3d8ff2d6 Add waiting for when preview bar detects incorrect number of chapters 2023-05-28 15:51:44 -04:00
Ajay
a83e83c1b1 Potential fix for preview bar disappearing sometimes 2023-05-24 23:43:41 -04:00
Ajay
6585a4e325 Fix large times when locale uses dots for chapter names
Fixes #1757
2023-05-24 19:06:38 -04:00
Ajay
20ab0768df Fix chapters not saving after clicking suggestion
They still submitted properly, it only mattered if you closed the submission box
2023-05-21 19:55:58 -04:00
Ajay
b07381e5d0 Remove extra log 2023-05-12 23:55:33 -04:00
Ajay
4a1829839f Slightly improve firefox skipping 2023-05-12 23:53:37 -04:00
Ajay
93d864e927 Don't use unmute skip trick on chromium if there are mutes happening 2023-05-11 20:20:05 -04:00
Ajay
232b1816fe Fix mute segment right after skip being delayed 2023-05-11 20:17:57 -04:00
Ajay
92fabdf37a Move more funcs to shared lib 2023-05-09 22:12:15 -04:00
Ajay
e094f95602 Move some options page funcs to shared lib 2023-05-09 16:49:54 -04:00
Ajay
14da4b5fcc Merge branch 'master' of https://github.com/ajayyy/SponsorBlock 2023-05-08 20:16:50 -04:00
Ajay
9d6e23d171 Fix margin issue on category pill tooltip 2023-05-08 20:16:44 -04:00
Ajay Ramachandran
68a6286af6
Merge pull request #1715 from Blueberryy/master
Add notice time to translation file
2023-05-08 17:10:55 -04:00
Ajay
f2482ee973 Add auto-config import to clickbait extension, move more funcs to shared lib
Also fix a isSafari call
2023-05-08 17:02:49 -04:00
Ajay
71dd4a97bf Fix SponsorBlock on latest YouTube layout 2023-05-07 23:56:55 -04:00
Ajay
4d7018a017 Fix safari check not running function
Should make Firefox more precise
2023-05-06 20:05:43 -04:00
Ajay
ca24e82a6d Fix skip looping
Fixes #1747
2023-05-06 20:04:17 -04:00
mini-bomba
75b406cb5b
Show time with skips removed on invidious 2023-05-02 21:42:09 +02:00
Ajay
62a60daac7 Fix preview bar not being created on video element change if not created previously 2023-04-30 14:54:50 -04:00
Blueberryy
4cae6e8f41 Real fix by mini-bomba
@mini-bomba

Co-Authored-By: mini-bomba <55105495+mini-bomba@users.noreply.github.com>
2023-04-29 15:52:24 +05:00
Ajay
d3fa735481 Don't show harmful vote option for non chapters 2023-04-27 22:29:08 -04:00
Ajay
7768447ab0 Upgrade maze-utils, move video element refreshes to lib 2023-04-27 15:18:17 -04:00
Ajay
e31efbbf81 Fix looped videos sometimes not skipping start segment
Fixes  #1723
2023-04-21 22:16:13 -04:00
Blueberryy
dc0d7d7e45
Another fix NoticeComponent.tsx 2023-04-20 18:58:11 +05:00
Blueberryy
6bc4c686ec
FIX NoticeComponent.tsx 2023-04-20 18:49:22 +05:00
Bert Vermeulen
c5f549f937 Spelling fix 2023-04-19 19:26:45 +02:00
Ajay
a7aa4042ff Fix video labels showing all categories regardless of settings 2023-04-17 20:29:52 -04:00
Blueberryy
32fd64ee25
add translatable s in notice 2023-04-11 23:03:23 +05:00
Ajay Ramachandran
e1521e9837
Merge pull request #1710 from mini-bomba/controls-skip-inline-players
Don't attach controls to inline preview players
2023-03-31 13:07:12 -04:00
mini-bomba
78f6c66547
Reset fvlabel color definitions when segment == null
Without this, we would try to use the color for an 'undefined' category on the first render pass of the element.
It was then immediately re-rendered with a segment set, but DR missed the update, which caused it to stick to that 'undefined' category and the label became transparent.
2023-03-25 13:19:47 +01:00
Ajay
c2252af575 Move more thumbnail logic to lib 2023-03-24 19:07:26 -04:00
mini-bomba
1ef6c1977f
Don't attach controls to inline preview players
Co-authored-by: Ajay <dev@ajay.app>
2023-03-24 23:59:59 +01:00
mini-bomba
0001d28f14
Define left + right on previewbar segments instead of left + width 2023-03-24 23:21:42 +01:00
Ajay Ramachandran
5711e70dbb
Merge pull request #1707 from mini-bomba/fix-videoid-mismatch-error
Fix the incorrectVideoCheck() error showing the same videoID as recorded & actual
2023-03-24 15:51:47 -04:00
Ajay
6d7953a1ca Fix potentially leaking set interval 2023-03-24 15:51:36 -04:00
mini-bomba
356ce5a6f3
Fix the incorrectVideoCheck() error showing the same videoID as recorded & actual 2023-03-24 19:18:00 +01:00
Pavel
992e727d93
Adds border radius like other YouTube elements 2023-03-22 03:42:42 +03:00
mini-bomba
e159989f17
Generate darkreader variables with our category color variables
This ensures the timeline, fv labels and thumbnail labels don't go transparent if darkreader forgets to set it's variable overrides.
2023-03-21 20:38:20 +01:00
Ajay
f6a42a7908 Fix manual skips after autoskips when inside a chapter 2023-03-20 23:10:13 -04:00
Ajay
4cf827b48a Remove exclusive_accessCategoryAdded migration 2023-03-18 21:31:27 -04:00
Ajay
f00b3abbe4 Enable chapter by default 2023-03-18 21:30:33 -04:00
Ajay
2f68a66f13 Remove chapters payment checks 2023-03-18 21:27:26 -04:00
Ajay
9831c3393f Remove chapters update message 2023-03-18 21:12:56 -04:00
Ajay
09511e8b3d Remove vendor references 2023-03-18 14:37:14 -04:00
Ajay
3a1d631e01 Merge branch 'master' of https://github.com/ajayyy/SponsorBlock into labels-on-thumbnails-merged 2023-03-18 02:08:02 -04:00
Ajay
488f5efa2f Add option to disable thumbnail icons 2023-03-18 02:05:14 -04:00
Ajay
43e07fe725 Fix Invidious support on Firefox 2023-03-18 00:28:26 -04:00
Ajay
2374f4d31b Fix invidious support for thumbnail labels 2023-03-17 23:41:59 -04:00
Ajay
52f58b8ea4 Don't trigger hover autoplay from hovering over thumbnail label 2023-03-17 22:57:44 -04:00
Ajay
5d610a342f Inject document script using raw HTML to be fast enough to still be able to hijack listener when visiting YouTube channel page directly 2023-03-17 21:10:26 -04:00
Ajay
758f0b7526 Show Full-Video Labels on thumbnails
Co-authored-by: mini-bomba <mini-bomba@users.noreply.github.com>
2023-03-10 03:49:01 -05:00
Ajay
66f3d34942 Fix chapter imports when not in focus 2023-03-03 19:47:08 -05:00
Ajay
419f0e0907 Fix duplicate code 2023-02-28 00:14:37 -05:00
Ajay
c0954b2819 Add new skip workaround for Firefox
Wait until next animation frame before starting the skipping timer
2023-02-28 00:10:54 -05:00
Ajay
290c910a1b rename submission button to "Open Submission Menu" 2023-02-26 22:12:05 -05:00
Ajay
1ffe42771f Fix unhiding one segment unhiding all 2023-02-26 20:15:33 -05:00
Ajay
b25a0a4db1 Lower case and trim invidious instances 2023-02-24 14:21:17 -05:00
Ajay
21f1e52571 Only update invidious instances if there are more, and don't remove old ones 2023-02-24 14:19:27 -05:00
Ajay
11f6fc9a31 Don't reset custom invidious instances on safari 2023-02-24 14:17:02 -05:00
Ajay
069b1c1681 Fix odd skipping behavior sometimes with auto skip on music videos
Fix #1682
2023-02-22 00:16:51 -05:00
Ajay
dfbe036119 Fix skipping not working 2023-02-22 00:11:56 -05:00
Ajay
4095ca8642 Fix missing userid generation call swaps 2023-02-18 22:44:34 -05:00
Ajay
4ca6a331f1 Move generate userID to shared lib 2023-02-18 02:54:42 -05:00
Ajay
1d05c2b3df Convert dots to colons when importing existing chapters 2023-02-14 18:38:47 -05:00
Ajay
1d0ac86e5a Move get hash to shared lib 2023-02-14 01:42:25 -05:00
Ajay
12c63b4ff9 Fix setup tab updates missing 2023-02-14 01:24:25 -05:00
Ajay
8c994f362d Move requesting logic to shared lib 2023-02-14 01:20:46 -05:00
Ajay
5ecb809c73 Remove unused interface 2023-02-13 13:14:23 -05:00
Ajay
c4619aee51 Fix category pill disappearing on mobile youtube 2023-02-13 03:22:55 -05:00
Ajay
d3117d603f Fix mobile and invidious 2023-02-13 02:43:43 -05:00
Ajay
5859c33ce8 Move video handing and config to shared library 2023-02-13 02:31:25 -05:00
Ajay
bbb234e498 Make invidious instances work on safari 2023-02-07 17:42:22 -05:00
Ajay
92e156834b Use pollyfill for invidious registration
Fix #798
2023-02-06 21:22:34 -05:00
Ajay
b2e6e4f076 Fix tests 2023-02-01 19:55:01 -05:00
Ajay
c3213eb040 Add invidious instances by default for safari
https://github.com/ajayyy/SponsorBlock/issues/798
2023-02-01 19:48:24 -05:00
Ajay
e3bedbf5f2 Fix chapter importing and lock fetching after 404 2023-01-29 17:53:37 -05:00
Michael C
146c1fc889
load shared.css on third party sites 2023-01-26 03:07:43 -05:00
Ajay
254261b83a Don't hide chevron if segments are null 2023-01-21 17:37:12 -05:00
Ajay Ramachandran
1a4d48503a
Merge pull request #1560 from mchangrh/piped-support
add selector for piped
2023-01-21 17:23:45 -05:00
Ajay
8f91b83195 Remove next chapter from youtube hotkeys warning 2023-01-21 17:17:05 -05:00
Ajay
6adac26a3d Fix keybinds from popup 2023-01-21 17:13:48 -05:00
Ajay
140e816979 Change next chapter keybind to be same as YouTube and disable YouTube's one
Fix #1508
2023-01-21 17:11:08 -05:00
Ajay
f89682c2d6 give more time for chapters to load 2023-01-21 16:59:36 -05:00
Ajay
35e0f7ede9 Fix warnings 2023-01-21 16:20:18 -05:00
Ajay
8383699a68 Fix chapter name sometimes disappearing 2023-01-21 16:18:25 -05:00
Michael C
6959bdbee1
Add piped support
- add playerInit listener
- made popup container generic for possible piped support
- explicitly add css files to web_accessible_resources
2023-01-03 17:10:51 -05:00
Michael C
c3d4914f57
add selector for piped 2023-01-02 18:28:37 -05:00
Ajay
4a4b281495 Remove log 2022-12-30 23:13:39 -05:00
Michael C
f68429487e
add brackets for operator precedence 2022-12-27 00:24:46 -05:00
Michael C
c5178b4c99
highlight partial required segments 2022-12-26 20:18:51 -05:00
Ajay
27f3ced338 Remove lookbehind because safari
Resolves https://github.com/ajayyy/SponsorBlock/issues/1626
2022-12-26 16:28:17 -05:00
Ajay
06a112a030 Fix category pill disappearing on mobile 2022-12-25 00:38:49 -05:00
Ajay
7dd2c9eb3e Move some generic functions to a new package 2022-12-24 00:54:56 -05:00
Ajay
3f7f671a3b Fix early skips on firefox when seeking while playing 2022-12-22 02:20:19 -05:00
Ajay
35b8a34162 Don't remove trailing end bracket when not starting with bracket 2022-12-19 16:12:51 -05:00
Ajay
3e3059d79a Fix bar being too long due to time to decimal changing while remaking bar not true 2022-12-11 16:58:40 -05:00
Ajay
16581d39a4 Reverse fast interval to decimal
It doesn't work when there are imported chapters closely or identical to existing chapters. Causes bar to extend too far.
2022-12-11 16:24:53 -05:00
Ajay
3b776991a6 Don't run some chapter init code when not necessary 2022-12-11 15:46:29 -05:00
Ajay
7eb6b3a79d Don't regenerate groups if not needed 2022-12-11 15:20:05 -05:00
Ajay
a5d91c9b57 clarify comment 2022-12-11 14:25:34 -05:00
Ajay
f59665cccb Fix smallest segment cache 2022-12-11 14:21:25 -05:00
Ajay
cf0e91c4ff Use fast time to decimal for non display calculations 2022-12-11 14:10:09 -05:00
Ajay
41a25720d0 Caching for get smallest segment
Hover previews
2022-12-11 13:19:37 -05:00
Ajay
283ec50388 Hide original chapter if similar in name 2022-12-11 12:51:36 -05:00
Ajay
e5794e6685 Fix hover text alignment issue 2022-12-11 12:04:31 -05:00
Ajay
bd3cdb98ac Fix lots of chapters freezing the browser 2022-12-11 11:58:10 -05:00
Ajay
f66d7a9547 Call whitelist check if not still waiting for channel id in window listener 2022-12-09 22:11:57 -05:00
Ajay
7be7b12d52 Generated chapters can now start after 0 seconds, so allow importing them 2022-12-04 21:55:46 -05:00
Ajay Ramachandran
ec86d6f99d
Merge pull request #1514 from mchangrh/fv-livestream-2
Allow full video labels on livestreams
2022-12-04 15:04:15 -05:00
Ajay Ramachandran
e7451eca27
Merge pull request #1595 from caneleex/patch/time-mutes
Don't include mutes in time without skips
2022-11-29 18:48:13 -05:00
Ajay Ramachandran
53713cd2e7
Merge pull request #1578 from caneleex/patch/disable-scrolling
Add option to disable scrolling to edit
2022-11-29 16:03:35 -05:00
Ajay
5925d45f74 Add new workaround for improving skipping precision on Firefox 2022-11-26 03:38:48 -05:00
Ajay
eac2caadce Fix document script sending events when video id not changed 2022-11-23 23:42:06 -05:00
Ajay
8d0a4ec2e6 Fix race condition causing double fetch 2022-11-23 23:37:52 -05:00
Ajay
8f13c5b8a5 Disable refetch 2022-11-23 23:24:57 -05:00
caneleex
b696902124
why 2022-11-18 20:51:11 +01:00
caneleex
87d1522c41
Don't include mutes in time without skips 2022-11-18 20:50:05 +01:00