Commit graph

1396 commits

Author SHA1 Message Date
Michael C
1fcfea9fd5
add noFallThrough, inplicitReturn, update packages 2022-10-20 22:13:51 -04:00
Ajay
aec5845bce Show import button for errors 2022-10-17 09:25:11 -04:00
Ajay
5209c0ea04 Import chapters as chooseACategory if chapters is disabled 2022-10-17 09:23:59 -04:00
Ajay
b52132e311 Open submission men after importing 2022-10-17 08:52:55 -04:00
Ajay
a48269f254 Import short category names too 2022-10-17 08:50:55 -04:00
Ajay
4bd7e9ab34 Fix progress bar with 0px chapters 2022-10-14 18:23:40 -04:00
Michael C
784c1db0c1
add YT Music progress bar selector 2022-10-13 00:55:55 -04:00
Ajay
97fc8174b9 Add flag to disable virtual time 2022-10-12 23:48:20 -04:00
Ajay
9849c34ed3 Merge branch 'master' of https://github.com/ajayyy/SponsorBlock 2022-10-12 23:46:02 -04:00
Ajay
56be762686 Add back virtual time to firefox and fix it with playback speed 2022-10-12 23:46:00 -04:00
Ajay Ramachandran
cd78c46ef8
Merge pull request #1521 from mini-bomba/popup
Update popup on segment updates + some code cleanup
2022-10-11 20:57:21 -04:00
Ajay
758b6f18db update buttons when single time segment is edited 2022-10-11 18:30:53 -04:00
Ajay
6d05b2a849 Set endtime by default for outro 2022-10-11 18:24:52 -04:00
Ajay
4729268083 Reimport chapters if they are found to have changed 2022-10-11 17:59:46 -04:00
mini-bomba
b7a574fc16
Clear segment list & show loading animation in popup on video change
also removed the creatingSegment variable - results in "Start/End Segment Now" correctly updating when using buttons on the controls panel instead
also the "refreshSegments" message no longer sends a response, as we send an update manually now
2022-10-11 18:38:00 +02:00
mini-bomba
c8cbd893f7
Don't hide the popup on video change
also hide the info button if the popup was open when setting up buttons
2022-10-11 16:08:07 +02:00
mini-bomba
11b01fd3dd
revert reordering of imports 2022-10-11 15:41:19 +02:00
Ajay
85e3d3bc18 Merge branch 'master' of https://github.com/ajayyy/SponsorBlock 2022-10-11 00:08:16 -04:00
Ajay
47ea8cd017 Fix unused import 2022-10-11 00:08:14 -04:00
Ajay Ramachandran
61e78eb668
Merge pull request #1524 from caneleex/patch/full-type-skip
don't append skip button for full video labels
2022-10-11 00:07:38 -04:00
Ajay
5ebd44c0c7 update category pill for react 18 2022-10-11 00:04:02 -04:00
Ajay
9888dcc323 Fix chapter import not working with 0 time 2022-10-10 23:37:48 -04:00
Ajay
49a166a6b2 Fix key moments importing as chapters 2022-10-10 23:34:34 -04:00
caneleex
2bd1271575
don't append skip button for full video labels 2022-10-10 21:21:57 +02:00
Ajay
5d62b11a6d Enable chapters if not enabled after redeem successful 2022-10-10 00:38:09 -04:00
Ajay
f4cac58322 Merge branch 'master' of https://github.com/ajayyy/SponsorBlock 2022-10-09 16:44:55 -04:00
Ajay
4a532e751c Add class for other extensions when displaying non chapter title 2022-10-09 16:44:53 -04:00
mini-bomba
4a3b33cb85
Dedupe & clean up popup -> content script communication code 2022-10-08 19:07:58 +02:00
mini-bomba
78e9f41854
Update popup when new segments are fetched 2022-10-08 18:34:20 +02:00
mini-bomba
48cfee57b7
Return null on fails in getYouTubeVideoID and add type annotations to videoIDChange 2022-10-08 16:40:48 +02:00
Ajay Ramachandran
b2ef9e5d6e
Merge pull request #1518 from mchangrh/interface-delimiter
Interface delimiter
2022-10-08 10:07:58 -04:00
mini-bomba
bc1d6006eb
Remove the unsubmittedSegments entry when removing the last segment 2022-10-08 13:10:25 +02:00
Michael C
a098858035
force delimiters to follow semi 2022-10-07 20:51:58 -04:00
Michael C
81e85c19ae
fix typings and revert spacing 2022-10-07 20:06:03 -04:00
Michael C
fda4a03541
fix more components 2022-10-07 19:51:05 -04:00
Michael C
55c84662c0
add some changes that are rendering properly 2022-10-07 19:28:29 -04:00
Michael C
adb8c4c5f9
only allow full video labels on livestreams 2022-10-07 16:37:10 -04:00
Ajay
bb7f069254 Only check import duplicates against unsubmitted segments 2022-10-07 12:22:39 -04:00
Ajay
61fc1d2ed3 Fix zero start time breaking 2022-10-07 12:19:42 -04:00
Ajay
dabc63af73 Deletew all custom chapter bars we don't know about when clearing preview bar 2022-10-07 12:02:14 -04:00
Ajay
08181c1d5f Clear bote buttons when clearing preview bar 2022-10-07 11:59:56 -04:00
Ajay
03cd1b535b Count skips for chapters when viewed 2022-10-05 15:39:51 -04:00
Ajay
8cc3843ada Run chapters clear when preview bar cleared 2022-10-05 02:19:32 -04:00
Ajay
c4701092f4 Merge branch 'master' of https://github.com/ajayyy/SponsorBlock 2022-10-05 02:15:32 -04:00
Ajay
63ef9b44c7 Make sure chapters are invalid if regex fails 2022-10-05 02:15:31 -04:00
Ajay Ramachandran
eb8a0ae307
Merge pull request #1498 from mchangrh/1496-fix
fix #1496
2022-10-05 01:02:37 -04:00
Ajay
5296c437cc Make the clip ignore less sketchy 2022-10-05 00:55:19 -04:00
Ajay
36efe139ba Fix wait for element not working on embed, causing segments not to load
Fix #1497
2022-10-04 22:08:19 -04:00
Ajay
eaabd3149e Fixing stacking timeout issue 2022-10-04 17:50:23 -04:00
Ajay
6166ab3006 Fix spamming user info on options page and improve popup values 2022-10-03 16:59:49 -04:00
Ajay
f1498d51fa Disable show info message if chapter enabled 2022-10-02 21:45:00 -04:00
Ajay
28904935da Remove chance from chapter tooltip 2022-09-30 21:00:45 -04:00
Ajay
a99823d487 Fix import menu hidden with no segments
Fix #1499
2022-09-28 15:17:05 -04:00
Ajay
1ba1595d0e Swap inspect and preview back 2022-09-27 14:47:11 -04:00
Michael C
8f7408d815
fix #1496
- force return bad videoID on clip
- don't createbuttons on video ready, updateVisibility with more checks
- don't switch to falsy videoIDs if already available
2022-09-27 00:59:24 -04:00
Ajay Ramachandran
a214fd416e
Merge pull request #1483 from mchangrh/x-overflow
wrap popup in #secondary-inner
2022-09-24 22:42:34 -04:00
FlorianZahn
f96419d14c
popup votebuttons disappear fix (#1493)
Co-authored-by: Ajay <dev@ajay.app>
2022-09-24 22:40:56 -04:00
Ajay
280127c9af Add tooltip to skip segment button 2022-09-24 22:33:12 -04:00
Ajay
da35e889f2 Add option to disable segment names beside timestamp in video player 2022-09-24 22:29:07 -04:00
Ajay
bb8975e93a Swap preview and inspect 2022-09-24 21:17:57 -04:00
Ajay
fc160e1d09 Fix chapter suggestions disappearing on click 2022-09-24 00:39:28 -04:00
Ajay
e1688c3f58 reset custom chapters bar to null when deleting 2022-09-23 11:04:55 -04:00
Ajay
0d6a40b9fc Fix custom chapter bar sometimes sticking around 2022-09-23 11:01:01 -04:00
Ajay
6d1a29019b Default to chapters tab if no normal segments 2022-09-23 01:24:27 -04:00
Ajay
6b37287e08 Fix chapter chevron sometimes not appearing 2022-09-23 00:53:08 -04:00
Ajay
757d7e0a1e Only hide chapter name selector when focus lost 2022-09-22 23:30:04 -04:00
Ajay
664d75e653 Add notice about chapters for free users 2022-09-22 23:27:10 -04:00
Ajay
dffc70cc19 Hide import button when no video found 2022-09-22 22:03:28 -04:00
Ajay
d294398f28 Add export to unsubmitted segments 2022-09-22 21:58:03 -04:00
Ajay
c17cf74389 Fix preview bar on mobile 2022-09-22 16:34:17 -04:00
Ajay
b96cdbe40a Change next keybind button for better compatibility 2022-09-20 00:16:01 -04:00
Michael C
1d2122c2df
wrap popup in #secondary-inner 2022-09-19 02:18:56 -04:00
Ajay
052860c5a3 Fix styling of empty category name suggestions menu 2022-09-18 21:54:07 -04:00
Ajay
c66de4fdb1 Make submission menu ui more consistent 2022-09-18 21:47:04 -04:00
Ajay
edf0295cdf Fix normal chapter text sometimes disappearing 2022-09-18 21:34:45 -04:00
Ajay
d044944946 Fix type error 2022-09-18 16:58:53 -04:00
Ajay
7bbf2f1ce2 Shrink chapter vote buttons 2022-09-18 16:47:02 -04:00
Ajay
2369fcc92d Fix unnecesary failure condition for chapter bar creation 2022-09-18 16:41:01 -04:00
Ajay
0b5c692c65 Fix hover text offset when video a different aspect ratio 2022-09-18 16:31:54 -04:00
Ajay
4970d33169 Don't show unsubmitted segments in description box 2022-09-18 16:02:52 -04:00
Ajay
614d6a722a don't show update notice when disabled 2022-09-18 03:24:09 -04:00
Ajay
6d757857cb Add tooltip about chapters feature 2022-09-18 03:15:20 -04:00
Ajay
4804c7f439 Add option to show categories you don't have permission to submit 2022-09-16 22:41:39 -04:00
Ajay
e5d9b16235 unhide chapter bar in fallback case 2022-09-16 20:46:27 -04:00
Ajay
54a2d97f70 Change opacity for disabled options 2022-09-16 18:20:34 -04:00
Ajay
56611598b2 Fix filtered chapter group generation 2022-09-16 01:49:50 -04:00
Ajay
23e0666569 Improved behavior of next chapter keybind with overlap 2022-09-16 01:38:37 -04:00
Ajay
51fc6fde22 Improve next chapter and previous chapter keybind 2022-09-16 00:57:43 -04:00
Ajay
b8d6d4a0b3 Handle preview bar hover without js 2022-09-15 23:37:11 -04:00
Ajay
6381f36a90 Fix hover for first chapter 2022-09-15 23:33:48 -04:00
Ajay
b9ef35dbbe Fix left over from merge conflict causing some skips to be ignored 2022-09-15 23:28:04 -04:00
Ajay
b43e3dab71 Fix doubling up segments in multi segment skip notice 2022-09-15 21:54:03 -04:00
Ajay
68e01fbcc0 Add more checks to prevent double seek bar or no seek bar 2022-09-15 12:46:19 -04:00
Ajay
43d4b7ef18 Fix segments not available when hover preview -> click on same video 2022-09-15 12:10:39 -04:00
Ajay
4a00f3398e Fix last imported chapter not displaying sometimes 2022-09-14 03:40:24 -04:00
Ajay
8054e3d8f2 Fix chapters getting offset when small chapters filtered out 2022-09-14 03:18:41 -04:00
Ajay
b0e1d5e7fa Fix seek bar sometimes becoming empty when one seek section is completely filled 2022-09-14 02:58:22 -04:00
Ajay
d9e723b265 Sync official chapter margin 2022-09-14 02:27:51 -04:00
Ajay
6418d09039 Fix last preview bar being off 2022-09-13 23:40:16 -04:00
Ajay
afab681a60 Fix too many hover text tooltips 2022-09-13 11:56:23 -04:00
Ajay
3316072f5d Fix votes appearing for unsubmitted segments 2022-09-05 00:14:23 -04:00
Ajay
4c568212ac Hide custom chapter bar while generating 2022-09-05 00:03:57 -04:00
Ajay
eaa119f152 Make sure original chapter bar that is used is always the right one 2022-09-05 00:01:11 -04:00
Ajay
e7deabe8d9 Properly handle hover previews for chapters and clear old unused ones 2022-09-04 23:57:10 -04:00
Ajay
6d47700ebd Safer document script 2022-09-04 23:14:15 -04:00
Ajay
93c616de23 Prevent some event bubbling issues 2022-09-04 22:04:48 -04:00
Ajay
ee25b41d7e Don't carry over incorrect/harmful vote menu between videos 2022-09-04 21:58:56 -04:00
Ajay
00f134029a Prevent creating multiple chapter vote containers 2022-09-04 21:52:14 -04:00
Ajay
00d625013b Add option to manual skip when a full video segment exists 2022-09-03 23:16:18 -04:00
Ajay
e81ff66dd3 Fix chapter -> full -> chapter not saving times 2022-09-03 21:28:02 -04:00
Ajay
97af12416e Fix copy tooltip 2022-09-03 01:58:22 -04:00
Ajay
bf191dab92 fix react errors about using inherit 2022-09-03 01:09:16 -04:00
Ajay
f8c61b7848 Don't use video before it is set 2022-09-03 00:36:28 -04:00
Ajay
5b136f2da8 Fix crashes on invidious 2022-09-03 00:32:20 -04:00
Ajay
8b80b33810 Don't show empty chapter bar for youtube chapters in popup 2022-09-03 00:27:18 -04:00
Ajay
e3c36ae6e2 Fix the freezing on firefox due to hover preview text 2022-09-03 00:22:03 -04:00
Ajay
533b15f44b Add support for hours in import segments 2022-09-02 21:42:36 -04:00
Ajay Ramachandran
4f0f8655f4
Merge pull request #1425 from mchangrh/contentScriptRebase
rebase document script out of videoInfo
2022-09-02 15:20:40 -04:00
Ajay
c8e2bb0c13 Auto update hidden categories when redeemed 2022-09-02 14:38:49 -04:00
Ajay
39ed7ea83c Fix license code box 2022-09-02 14:26:41 -04:00
Ajay
29c6151fe3 Ensure channel id is defined before declaring it found 2022-09-02 01:30:13 -04:00
Ajay
1377be9915 Use events for channel id and fallback to current system
Also fix formatting
2022-09-02 01:30:12 -04:00
Michael C
c479a601cd rebase document script out of videoInfo #1312 2022-09-02 01:30:09 -04:00
Ajay
9c7d153f15 Move segment export to backup page and improve margins 2022-09-02 00:15:05 -04:00
mini-bomba
bbea534781 Add "Export segments as URL" option the unsubmitted videos section 2022-09-01 23:03:25 -04:00
mini-bomba
df2586e76d Load segment description from hashparams 2022-09-01 23:03:25 -04:00
mini-bomba
59093cdf21 Move new react components to components/options/, following latest changes 2022-09-01 23:03:25 -04:00
mini-bomba
5f6307041a Add an Export Segments button to the unsubmitted segments list 2022-09-01 23:03:25 -04:00
mini-bomba
26f2143247 Don't force-sync unsubmitted segments when clear confirm prompt is cancelled 2022-09-01 23:03:25 -04:00
mini-bomba
bd292ff886 Split unsubmittedSegmentCounts string into many to account for singular/plural forms of nouns
hopefully with enough context for translators to properly translate...
2022-09-01 23:03:25 -04:00
mini-bomba
9915d46ad4 Add a section in options for unsubmitted segments 2022-09-01 23:03:25 -04:00
Ajay
2b5a02e068 Make required segments thicker in preview bar 2022-09-01 21:35:58 -04:00
Ajay
1f68f512fa Fix linting error 2022-09-01 20:04:53 -04:00
Ajay
d18f7c6195 Make limited width option better 2022-09-01 17:10:01 -04:00
Ajay
015ac7d46e Fix test breaking due to chrome.* api 2022-09-01 16:52:10 -04:00
Ajay
6631dfdea3 Also check license status for submitting chapter 2022-09-01 16:44:02 -04:00
Ajay
212fbb83fe Add tooltip to sort segments 2022-09-01 16:33:34 -04:00
Ajay
9e08d6012c Fix export/import not appearing without segments and without chapter enabled 2022-09-01 16:32:23 -04:00
Ajay
69c0fe1caf Make importer import non chapters too 2022-09-01 16:25:43 -04:00
Ajay
fcecd1163d Improve locked category display 2022-09-01 16:10:57 -04:00
Ajay
29ea112b4f Move hyphen so it is not treated as a range 2022-09-01 16:07:29 -04:00
Ajay
3e40745621 Merge branch 'master' of https://github.com/ajayyy/SponsorBlock into chapters 2022-09-01 15:21:23 -04:00
Ajay
c6e30236e9 Add license requirement 2022-09-01 15:15:30 -04:00
Ajay
34c4ecf940 Don't include chapters in time without skips 2022-08-28 23:47:27 -04:00
Ajay
3550c168e2 Fix active segment sometimes disapearing 2022-08-28 23:45:02 -04:00
Ajay
901d6e6c92 Add voting for chapters 2022-08-28 23:38:40 -04:00
Michael C
aadc1be56c
catch all html in error messages 2022-08-22 20:44:23 -04:00
Alec Rust
bc1263c341
Fix popup width when embedded in page 2022-08-21 11:56:31 +01:00
Ajay
42d76cf257 Merge branch 'master' of https://github.com/ajayyy/SponsorBlock into chapters 2022-08-19 23:16:45 -04:00
Ajay
d06b7411dc Move options associated with specific categories into their div 2022-08-19 01:26:45 -04:00
Ajay
b14d766ffb Don't show hidden segments in active segment box 2022-08-18 02:44:49 -04:00
Ajay
32ff8db241 Fix buffering sometimes not rendering all the way 2022-08-18 02:39:56 -04:00
Ajay
ea87c8ca24 Fix seek bar progress offsets with custom chapter sections 2022-08-18 02:24:54 -04:00
Ajay
6ce4797772 Fix preview bar when video duration innacurate 2022-08-17 01:28:19 -04:00
Ajay
8e738a6097 Fix preview bars rendering incorrectly when native chapters are displayed 2022-08-17 01:21:06 -04:00
Ajay
7d3f86ded1 Fix skipping after paused at zero sometimes not working
Affects some autoplay blocking

Resolves #1437
2022-08-16 16:42:47 -04:00
Ajay
faeb5dede0 Add page for refreshing invidious permissions if it was revoked
Fixes #1354
2022-08-16 16:00:34 -04:00
Ajay Ramachandran
eae8485713
Merge pull request #1422 from mchangrh/localDisableMute
allow disabling mute segments locally
2022-08-14 00:23:29 -04:00
Ajay
99c5375c6a Handle permission userinfo using new logic 2022-08-14 00:14:59 -04:00
mini-bomba
a62f6ca696
Fix issues with DR & Invidious themes 2022-07-30 00:35:55 +02:00
Michael C
6eb1d5d954
allow disabling mute segments locally 2022-07-29 00:37:02 -04:00
Ajay
cda57e2d2b Make title link selector more specific
Co-authored-by: Michael C <michael@mchang.name>
2022-07-25 16:03:08 -04:00
Ajay
a9186a35e5 Fix hover previews on load and channel trailers 2022-07-25 02:40:48 -04:00
Ajay
1a6e6279c8 Fix autoskipping when skips load before video 2022-07-24 21:45:25 -04:00
Ajay
d8dfbef1a7 Fix issue with navigator triggering events before document.url updates 2022-07-21 15:14:57 -04:00
Ajay
804870f18a Fix new warning ui 2022-07-20 21:07:57 -04:00
Ajay
2cc1dcc6fd Add better UI for warnings allowing you to accept without chatting 2022-07-20 18:48:53 -04:00
Ajay
af86534992 Fix categories not being able to be disabled 2022-07-19 23:37:42 -04:00
Ajay
0f9122aa1c Fix skipping two segments at the same time for auto skip on music videos 2022-07-19 23:27:32 -04:00
Ajay
d0e35032a5 Include overlap when unmuting if about to autoskip 2022-07-14 17:39:08 -04:00
Ajay
5ff9b10f21 Fix double skip issue 2022-07-13 12:15:56 -04:00
Ajay
fae6d0d0cf Add comments 2022-07-12 01:03:28 -04:00
Ajay
60d106fc52 Fix cases with multiple segments starting at the exact same time 2022-07-12 00:59:13 -04:00
Ajay
a4df2eab8f Retry for errors again 2022-07-11 15:00:48 -04:00
Ajay
fdbcf47149 make skip to next chapter go to next endpoint and fix reskip stackoverflow 2022-07-10 21:51:56 -04:00
Ajay
b1ef8a5d47 Don't draw chapters bar when no custom segments 2022-07-10 02:06:26 -04:00
Ajay
4cb6baaff0 Fix chapter import for no segments 2022-07-10 02:02:12 -04:00
Ajay
6cb4fac041 Add hotkeys for skipping to next and previous chapter 2022-07-10 01:58:39 -04:00
Ajay
d7176a9c97 Import chapters with no segments as well 2022-07-10 01:13:53 -04:00
Ajay
2eb0a34858 Always import chapters when segments 2022-07-10 00:56:31 -04:00
Ajay
cf86e91988 Added guideline reminders for 2022-07-09 23:42:52 -04:00
Ajay
058c41dd7e Rename chapter option to show chapter 2022-07-07 17:05:27 -04:00
Ajay
7a50167222 Remove first event check 2022-07-05 16:02:05 -04:00
Ajay
969b303c59 Limit chapter in UI to those who can submit 2022-07-05 13:34:30 -04:00
Ajay
8114e0dcf7 Fix some chapter and mute not skipping from popup 2022-07-04 01:21:36 -04:00
Ajay
561b3a2263 Fix double click skip in popup 2022-07-04 01:21:11 -04:00
Ajay
70ef867ec5 Don't count skip time for chapter 2022-07-04 01:05:14 -04:00
Ajay
23336fa65b Don't send message if tab not found 2022-07-04 00:49:32 -04:00
Ajay
fea90d024e Made render segments as chapters only affect non chapter segments 2022-07-04 00:43:55 -04:00
Ajay
de85d93602 Hide chapter chevron when it won't do anything 2022-07-03 23:50:18 -04:00
Ajay
e48d956577 Fix segments disapearing when changing skip options 2022-07-03 22:44:32 -04:00
Ajay
7badfd9b32 Fix existing chapters opening skip notice when chapters disabled 2022-07-03 18:33:32 -04:00
Ajay
d0497d60e8 Add indicator where current player is for segments in popup 2022-07-03 17:53:40 -04:00
Ajay
e223d12520 Fix scrubbing on mobile 2022-07-03 16:42:45 -04:00
Ajay Ramachandran
27e8e83c59
Merge pull request #1389 from mchangrh/export-timestamp
append timestamp to export filename
2022-07-03 00:27:40 -04:00
Ajay Ramachandran
c7f254db70
Use templates 2022-07-03 00:24:28 -04:00
Ajay
85c3cd4a81 Merge branch 'master' of https://github.com/ajayyy/SponsorBlock 2022-07-03 00:22:58 -04:00
Ajay
8d9042aeeb Only ignore play event when buffering 2022-07-03 00:22:56 -04:00
Michael C
373edf883d
append timestamp to export filename 2022-07-01 02:07:54 -04:00
Michael C
75f426f456
fix embeds not being detected correctly
- add awaiter for key element
- refresh ID with segments if videoID is invalid
2022-06-30 16:38:11 -04:00