Commit Graph

269 Commits

Author SHA1 Message Date
Ajay Ramachandran
99f1fc60ae Merge branch 'master' into unlisted-hotfix 2021-06-24 00:17:10 -04:00
Ajay Ramachandran
a2c0c3f79e Lower minimum view count 2021-06-23 23:51:20 -04:00
Ajay Ramachandran
bd2dac69b9 Also send views, year and channelID 2021-06-23 23:46:21 -04:00
Ajay Ramachandran
e7c92467bd Add localisation to unlisted experiement 2021-06-23 21:38:23 -04:00
Ajay Ramachandran
e80b7afe80 Add initial unlisted detection for getting a list of unlisted videos
A temporary measure which will be removed next month

https://support.google.com/youtube/answer/9230970
2021-06-23 21:09:59 -04:00
Ajay Ramachandran
a6728d34a0 Add more parameters to make get_video_info api work again
(cherry picked from commit 930911e2b9)
2021-06-23 19:22:03 -04:00
Ajay Ramachandran
930911e2b9 Add more parameters to make get_video_info api work again 2021-06-20 20:56:42 -04:00
Ajay Ramachandran
47b90b2c2e Make info button hide automatically 2021-06-20 20:45:41 -04:00
Ajay Ramachandran
861ba4869e Add preview category
Closes https://github.com/ajayyy/SponsorBlock/issues/444

(cherry picked from commit a10d7c338c)
2021-06-18 00:02:03 -04:00
Ajay Ramachandran
8cb212a77b Allow not counting time in private tabs
Closes https://github.com/ajayyy/SponsorBlock/issues/703
2021-06-11 18:17:40 -04:00
Ajay Ramachandran
29b29e3f6e Add type to getYouTubeVideoID 2021-06-11 17:55:24 -04:00
Ajay Ramachandran
ac037c6f08 Make get_video_info work again
Resolve https://github.com/ajayyy/SponsorBlock/issues/751 for now

Potentially helps with https://github.com/ajayyy/SponsorBlock/issues/766 and https://github.com/ajayyy/SponsorBlock/issues/753
2021-06-11 13:28:42 -04:00
Ajay Ramachandran
b0400f98be Add better hotkey detection 2021-06-11 00:50:38 -04:00
Ajay Ramachandran
315901f69b Use mutation listener on desktop too 2021-06-09 14:57:53 -04:00
Ajay Ramachandran
4932fc6f45 Fix skipping on Firefox for Android
Resolves https://github.com/ajayyy/SponsorBlock/issues/659 and https://github.com/ajayyy/SponsorBlock/issues/588
2021-06-09 14:26:20 -04:00
Ajay Ramachandran
d2847c6a77 Changes to preview bar 2021-06-08 22:13:57 -04:00
Ajay Ramachandran
2e1b17f8bd Refresh segments when creating new segment to submit 2021-05-31 14:48:03 -04:00
Ajay Ramachandran
42fa6c44c4 Prevent retry fetching in another place
https://github.com/ajayyy/SponsorBlock/issues/667
2021-05-31 14:37:12 -04:00
Ajay Ramachandran
a9a85d9816 Clean segment recieving code 2021-05-31 14:33:17 -04:00
Ajay Ramachandran
18161967fc Prevent retry fetch from potentially using the wrong videoID
Resolves https://github.com/ajayyy/SponsorBlock/issues/667
2021-05-31 14:26:08 -04:00
Ajay Ramachandran
f6bbb1f2af Remove sponsor from element id 2021-05-22 23:07:57 -04:00
Ajay Ramachandran
60c0af2ae7 Don't break upload notice when clearing segments 2021-05-22 01:51:50 -04:00
Ajay Ramachandran
a5189014ad Make channel fetching error silent and don't wait for video info 2021-05-21 17:33:48 -04:00
Ajay Ramachandran
25236f3a19 Don't show upload and delete button when no complete segments 2021-05-21 17:00:42 -04:00
Ajay Ramachandran
bcfe4924e2 Switch player buttons to svg 2021-05-21 16:56:39 -04:00
Ajay Ramachandran
60b9266a2a Use different icons for cancel and upload error 2021-05-21 16:13:54 -04:00
Ajay Ramachandran
9392d16617 Add partial segments to upload menu 2021-05-21 15:51:58 -04:00
Ajay Ramachandran
3ef2673bfc Remove hash prefix option (always uses hash prefix) 2021-05-19 16:11:07 -04:00
Ajay Ramachandran
ac6cd2cec1 Add new channel ID detection logic 2021-05-19 16:08:09 -04:00
Ajay Ramachandran
995ed929ca Merge pull request #744 from wilkmaciej/master
Skip count sending and counting on manual skip
2021-05-19 11:18:25 -04:00
Ajay Ramachandran
ecfcb0b846 Make buttons not appear on invidious 2021-05-16 20:45:16 -04:00
Ajay Ramachandran
18d10ada5e Merge branch 'master' of https://github.com/ajayyy/SponsorBlock into pr/opl-/569 2021-05-16 20:29:31 -04:00
Ajay Ramachandran
3a7b6b27c2 Change when close info menu is called 2021-05-16 20:27:46 -04:00
Ajay Ramachandran
fea8f93b5a Semicolon 2021-05-16 18:45:06 -04:00
Ajay Ramachandran
fbcff7f4c4 Change video info fetch error message 2021-05-16 17:31:58 -04:00
Ajay Ramachandran
59f63f1b4b Add semi colon 2021-05-14 21:15:36 -04:00
Ajay Ramachandran
e432abe79d Formatting changes + prevent negative value 2021-05-14 21:15:03 -04:00
Maciej Wilk
08a063b612 if(config.trackViewCount) changed 2021-05-15 01:05:45 +02:00
Maciej Wilk
5fad4509f0 applied proposed fixes 2021-05-15 00:24:27 +02:00
Maciej Wilk
8337b54a44 telemetry sending and counting on manual skip 2021-05-14 14:32:32 +02:00
Ajay Ramachandran
11144fa77b Only ask for permission once 2021-05-12 17:00:31 -04:00
Ajay Ramachandran
bf84139ea7 Prompt to accept youtube.com permission if video info fails to load
Should fix #698, #687, #611 and #635

(cherry picked from commit 3ff5fdb3a1)
2021-05-10 16:22:46 -04:00
Manual
719010db97 Don’t throw an exception if there’s no videoRoot
Suggested change by @ajayyy

Co-authored-by: Ajay Ramachandran <dev@ajay.app>
2021-03-27 00:08:02 +02:00
Manual
928c075416 fix exception when on youtube.com/tv 2021-03-26 12:00:47 +02:00
Ajay Ramachandran
8de4f904a5 Merge pull request #650 from ajayyy/improvements
Improvements
2021-03-07 14:23:28 -05:00
LJ
f48e1895db Fix the videoRoot to also work on invidious embeds
The root div of the player is not `#player-container` in invidious embeds but just `#player`.
2021-03-04 15:26:25 +02:00
Ajay Ramachandran
9474424a1e make popup icons consistent 2021-02-22 22:17:23 -05:00
opl-
3879cc6de3 Clean up segment creation code
Noteworthy changes:
- Adds ability to cancel creating a segment
- Makes segment creation fully the responsibility of the content script, with the popup script buttons simply doing RPC
- Adds types to the Utils.wait function
- Fixes segment timestamps backwards if user marks segment end earlier than the start
- Makes the info menu (in-page popup) workaround clearer and easier to remove in the future.
2021-02-20 15:52:13 +01:00
Ajay Ramachandran
3927fe5630 Lower retry frequency 2021-02-18 21:23:00 -05:00
Evan Gubarev
026858509a Fixed getFormattedTime sometimes returning (NaN:NaN) (#643)
* Fixed getFormattedTime sometimes returning (NaN:NaN)

getFormattedTime() with nothing passed into it and a couple other edge cases returned (NaN:NaN). This is a problem since on a slow machine getFormattedTime get called without anything passed into it around the time the computer is fetching the timing data. I haven't found the exact spot / place it is called wrongly, but this should fix it. I've have a slow machine so it's really been bugging me seeing (NaN:NaN) for a couple seconds before the page fully loads. Hopefully this should fix it.
2021-02-07 13:09:01 -05:00