Commit graph

180 commits

Author SHA1 Message Date
Ajay Ramachandran
19802a7a31 Made the notice stay open after an unskip and allow to reskip.
The time remaining of the popup becomes the time remaining of the sponsor.
2019-08-19 19:07:14 -04:00
Ajay Ramachandran
175cf62201 Refractored skipNotice to use a class now 2019-08-19 16:09:54 -04:00
Ajay Ramachandran
3e0638d811 Updated sponsor check to support slower PCs 2019-08-15 15:16:24 -04:00
Ajay Ramachandran
628f1043fa Added text to the report button. 2019-08-15 11:23:19 -04:00
Ajay Ramachandran
73b8d82b0f Made view count tracking work when the notice is disabled 2019-08-15 11:12:46 -04:00
Ajay Ramachandran
5d075a6be4 Made autovote only happen if view counting is enabled 2019-08-14 22:08:23 -04:00
Ajay Ramachandran
215098f647 Added new text values to translation file. 2019-08-14 21:53:38 -04:00
Ajay Ramachandran
a7f3701272 Made it auto vote when a sponsor is skipped 2019-08-14 21:50:32 -04:00
Ajay Ramachandran
edb577cf5b Changed popup to only use report button instead of upvote and downvote + improved popup. 2019-08-14 21:30:02 -04:00
Ajay Ramachandran
739548d169 Changed alignment and switched icons 2019-08-14 14:07:00 -04:00
Ajay Ramachandran
b1ce20cd5a Added basic features for the new voting UI 2019-08-13 23:43:02 -04:00
Ajay Ramachandran
0e4d95dca7 Made preview bar update more and made the sponsor times reset more. 2019-08-13 19:18:53 -04:00
Ajay Ramachandran
57f076c5d3 Removed debug log 2019-08-13 18:40:46 -04:00
Ajay Ramachandran
ea41980fc6 Merge branch 'experimental' of https://github.com/ajayyy/SponsorBlock into experimental-ajay
# Conflicts:
#	manifest.json
2019-08-13 18:23:56 -04:00
OfficialNoob
a10b4ab06e Fix merge error 2019-08-13 22:14:45 +01:00
OfficialNoob
f350f18190 Fixed code problems 2019-08-13 22:05:39 +01:00
Ajay Ramachandran
fadb294c98 Made the preview bar only get created if a video is found. 2019-08-13 14:05:32 -04:00
Ajay Ramachandran
a8147738ef Raised retry limit for when the server is down. 2019-08-13 13:02:54 -04:00
Ajay Ramachandran
4a3d36b952 Fixed preview bar.
Made it reset when no sponsors are found.

Made it wait until the video metadata is loaded if necessary.
2019-08-13 13:02:35 -04:00
Ajay Ramachandran
13d0e4a33a Made it still possible to vote on downvoted sponsors.
Added "(hidden)" to the button.

Resolves https://github.com/ajayyy/SponsorBlock/issues/28
2019-08-12 20:22:00 -04:00
Ajay Ramachandran
8f0a9d97f6 Downvoting now temporarily hides the sponsor time. 2019-08-12 20:00:42 -04:00
Ajay Ramachandran
5feed6bfcc Added preview bar with the sponsors 2019-08-12 19:34:44 -04:00
Official Noob
8c7d749f11
CC 2019-08-12 22:15:25 +01:00
Official Noob
0b801ae986
browser.i18n -> chrome.i18n 2019-08-12 21:23:11 +01:00
Official Noob
afa260b733
Merge branch 'experimental' into patch-18 2019-08-12 21:02:55 +01:00
Ajay Ramachandran
6b3eb09198 Added button to set edit to the current time. 2019-08-12 15:27:35 -04:00
Official Noob
59c2e5cae7
i18n 2019-08-12 20:10:13 +01:00
Ajay Ramachandran
3f815a18c4 Added a sponsor time preview.
It skips 2 seconds before the start time so you can preview how it feels.

Also increased the space between the times and the clear times button.

Resolves https://github.com/ajayyy/SponsorBlock/issues/66
2019-08-12 12:21:20 -04:00
Ajay Ramachandran
29a8608f9d
Merge pull request #90 from OfficialNoob/patch-19
Removed tabs permission
2019-08-12 11:36:57 -04:00
Official Noob
67c4acbc5e
Removed videoID as now message active tab 2019-08-12 13:38:35 +01:00
Ajay Ramachandran
5ffe207a86 Made it retry a sponsor lookup each second if there is a connection error.
It will stop after 15 tries.
2019-08-11 23:18:50 -04:00
Ajay Ramachandran
3a4d867ae3 Made it check again for sponsors after submitting. 2019-08-11 23:13:07 -04:00
Official Noob
f254a99d6f
notifications 2019-08-11 21:21:04 +01:00
Official Noob
28322f19b5
videoID 2019-08-11 19:36:52 +01:00
Official Noob
60242df3c9
Removed stuff thats in utils.js 2019-08-11 19:29:38 +01:00
Ajay Ramachandran
2580577ce0
Added comments 2019-08-11 12:49:25 -04:00
Official Noob
e1f5046ace
Merge branch 'experimental' into patch-19 2019-08-11 13:38:00 +01:00
Ajay Ramachandran
699ca91a94 Made channel whitelisting properly work on first loaded video. 2019-08-10 22:04:32 -04:00
Official Noob
866cc33f0e
Update content.js 2019-08-08 20:33:05 +01:00
Official Noob
1b5d5f8a3a
Added tab update back 2019-08-08 20:15:23 +01:00
Official Noob
883871123a
Update content.js 2019-08-08 19:26:26 +01:00
Official Noob
e1f1814748
Moved code from background.js 2019-08-08 17:03:58 +01:00
Official Noob
22e7c6a40d
Sync Video ID with Storage API 2019-08-08 14:44:48 +01:00
Official Noob
077efd2de3
Moving to content script 2019-08-08 14:02:06 +01:00
Official Noob
9a32710ef8
Removed getYouTubeVideoStartTime 2019-08-04 19:09:46 +01:00
Official Noob
e6fa832cb8
Removed getYouTubeVideoID as in utils 2019-08-04 19:04:43 +01:00
Ajay Ramachandran
38bb50a472 Made popup close on video change 2019-08-03 23:30:45 -04:00
Ajay Ramachandran
db46d0438f Added whitelist support to the old YouTube theme. 2019-08-03 22:12:20 -04:00
Ajay Ramachandran
a5580daebd Added channel whitelisting.
Known issue: Does not work with 0 second sponsors.

Resolves https://github.com/ajayyy/SponsorBlock/issues/38
2019-08-03 21:35:41 -04:00
Ajay Ramachandran
809be3b2fb Fixed submit button disappearing after already submitting once. 2019-08-03 20:52:09 -04:00
Ajay Ramachandran
0319c507d3 Made videos load from the subscription page. 2019-08-03 14:11:47 -04:00
Ajay Ramachandran
8ffab867e1 Made zero second skips not skip when the video starts at a non zero time. 2019-08-02 22:37:12 -04:00
Ajay Ramachandran
1c1fb6006c Added support for loading a channel page first.
Still has some issues on slow PCs, see https://github.com/ajayyy/SponsorBlock/issues/60
2019-08-02 12:18:56 -04:00
Ajay Ramachandran
3d1be7158d Added support for embedded videos.
Resolved https://github.com/ajayyy/SponsorBlock/issues/12
2019-08-01 20:55:47 -04:00
Ajay Ramachandran
efe512b561 Removed unnecessary check for if the info tab is loaded 2019-08-01 20:38:36 -04:00
Ajay Ramachandran
d738eac42d Moved notice to a better location and shrunk it. 2019-08-01 20:32:04 -04:00
Ajay Ramachandran
a83969e3eb Fixed notice never displaying 2019-08-01 20:21:45 -04:00
Ajay Ramachandran
932702cca1 Added preview before uploading submissions. 2019-08-01 20:01:33 -04:00
Ajay Ramachandran
ca8404147d Made clicking upload hide the clear button 2019-08-01 15:19:58 -04:00
Ajay Ramachandran
b0929e2431 Remade the popup menu to support Firefox and not use IFrames. 2019-07-30 13:27:20 -04:00
Ajay Ramachandran
e205447968 Added ability to hide info and delete button. 2019-07-29 21:40:13 -04:00
Ajay Ramachandran
d93d475c1f Added error messages to video player submission. 2019-07-29 21:09:10 -04:00
Ajay Ramachandran
0d0b919106 Added better error messages to voting. 2019-07-29 21:06:15 -04:00
Ajay Ramachandran
1119adffb7 Added clear button. 2019-07-29 20:54:10 -04:00
Ajay Ramachandran
e0d2436372 Added support for old youtube theme 2019-07-29 16:35:30 -04:00
Ajay Ramachandran
e4c94aa5c5 Added more info the confirmation button. 2019-07-29 16:29:20 -04:00
Ajay Ramachandran
6b6e74b5a0 Added popup as an info menu that is opened on the side. 2019-07-29 15:42:14 -04:00
Ajay Ramachandran
6275c2d62c Added info about popup. 2019-07-29 11:41:43 -04:00
Ajay Ramachandran
feea7aa51d Added what the sponsor times being submitted are to the confirmation message. 2019-07-29 11:36:57 -04:00
Ajay Ramachandran
7a9af6cbcf Alt-text now updates with state on player button 2019-07-28 18:51:46 -04:00
Ajay Ramachandran
51a389284d Made video player controls state properly update when the video changes. 2019-07-28 18:48:28 -04:00
Ajay Ramachandran
aefc880486 Merge branch 'master' of https://github.com/ajayyy/SponsorBlock into experimental
# Conflicts:
#	content.js
#	firefox_manifest.json
#	manifest.json
2019-07-28 17:24:25 -04:00
Ajay Ramachandran
a2312a10be Fixed an issue on Firefox where the old video's sponsors would sometimes play on the next video. 2019-07-28 17:22:05 -04:00
Official Noob
7100831956
getYouTubeVideoID Video ID Parser 2019-07-27 22:18:43 +01:00
Ajay Ramachandran
84b8e59b39
Merge branch 'master' into patch-1 2019-07-27 11:12:27 -04:00
Ajay Ramachandran
600365d998 Made it not possible to submit from the hotkey when not ready. 2019-07-27 11:08:29 -04:00
Official Noob
08cb324125
Added confirm for submitSponsorTimes 2019-07-27 12:57:44 +01:00
Ajay Ramachandran
45f0d65f69 Fixed old unsponsored times sometimes being used. 2019-07-26 20:19:51 -04:00
Ajay Ramachandran
33fe63084b Added support for hotkeys to submit data. 2019-07-26 16:20:07 -04:00
Ajay Ramachandran
30f2f638fe Added support for sponsors at the zero second mark.
Also fixed some issues on the old YouTube theme.
2019-07-25 20:00:07 -04:00
Ajay Ramachandran
725ab783e3 Made it work when multiple tabs are opened in the background.
Now uses the focused tab instead of last tab updated.
2019-07-25 18:25:50 -04:00
Ajay Ramachandran
0f561d4a5a Added option to disable the view count tracking. 2019-07-23 21:06:36 -04:00
Ajay Ramachandran
b7764fc634 Added feature to prevent tons of sponsors reported next to each other from annoying the user. 2019-07-23 19:37:33 -04:00
Ajay Ramachandran
9913e99a6a Fixed curly bracket that for some reason was in the wrong place. 2019-07-23 19:33:12 -04:00
Ajay Ramachandran
c91c08a17f Made it send a request to the server to sponsor skip views. 2019-07-23 18:42:44 -04:00
Ajay Ramachandran
21220bf2d3 Added support for Firefox. 2019-07-22 21:11:37 -04:00
Ajay Ramachandran
b7a35f0823 Fixed clear times button having incorrect behavior. 2019-07-22 16:46:50 -04:00
Ajay Ramachandran
baefc59954 Switched it from using local storage to synced storage. 2019-07-22 16:42:57 -04:00
Ajay Ramachandran
14121af900 Made it finish the current animation on the submit button before hiding it. 2019-07-22 15:59:21 -04:00
Ajay Ramachandran
52ec50a132 Made it keep checking for submitted sponsor times every 10 seconds on recent videos. 2019-07-21 21:08:23 -04:00
Ajay Ramachandran
2d00cfffdf Added submit button on the video player. 2019-07-21 18:19:56 -04:00
Ajay Ramachandran
91f0b65d06 Switched all xmlhttp requests to use new dedicated function. 2019-07-20 15:33:52 -04:00
Ajay Ramachandran
4cc44258e8 Added a loading indicator when voting. 2019-07-20 13:41:13 -04:00
Ajay Ramachandran
4bb6cd0dcf Add message when connection failed when trying to vote. 2019-07-20 13:26:55 -04:00
Ajay Ramachandran
b319729da8 Added error message for a duplicate vote. 2019-07-19 22:24:59 -04:00
Ajay Ramachandran
888a03a708 Added button to popup to allow you to vote from the popup. 2019-07-17 22:53:42 -04:00
Ajay Ramachandran
01b61f6192 Made it possible for multiple notices to appear, added an animation for it. 2019-07-17 19:42:13 -04:00
Ajay Ramachandran
255f049c96 Made upvote button close menu and downvote show message 2019-07-15 20:38:26 -04:00
Ajay Ramachandran
987b7b036c Made upvote system submit data to the server. 2019-07-15 19:13:09 -04:00
Ajay Ramachandran
6cd01108f4 Save UUIDs of the sponsors times along with sponsor times. 2019-07-15 18:56:16 -04:00