From 6673272e14a5ad2c201733ffb6b581428084598b Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Mon, 29 Jul 2019 11:08:19 -0400 Subject: [PATCH 1/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 274fe20a..65d4a0ab 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ SponsorBlock is an extension that will skip over sponsored segments of YouTube v # Available for Chrome and Firefox -Chrome: https://chrome.google.com/webstore/detail/mnjggcdmjocbbbhaepdhchncahnbgone/ +Chrome: https://chrome.google.com/webstore/detail/ajjollijmimolcncegpgkbilohbhjnhi Firefox: https://addons.mozilla.org/addon/sponsorblock/ From 9fada0002800588d9558d53cb4473475c495a949 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Mon, 29 Jul 2019 17:53:15 -0400 Subject: [PATCH 2/4] Update LICENSE --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index 94a9ed02..ce167a86 100644 --- a/LICENSE +++ b/LICENSE @@ -652,7 +652,7 @@ Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: - Copyright (C) + SponsorBlock Copyright (C) 2019 Ajay Ramachandran and other SponsorBlock contributors This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. From 9d14f02bec772cde84d756dbc4346d1de4594591 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Mon, 29 Jul 2019 17:54:21 -0400 Subject: [PATCH 3/4] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 65d4a0ab..74fbcac5 100644 --- a/README.md +++ b/README.md @@ -34,3 +34,5 @@ You can load this project as an unpacked extension. Make sure to rename the `con The awesome [Invidious API](https://github.com/omarroth/invidious/wiki/API) is used to grab the time the video was published. Some icons made by Gregor Cresnar from www.flaticon.com and are licensed by CC 3.0 BY + +Some icons made by Freepik from www.flaticon.com is licensed by CC 3.0 BY From 53f611a43abd5ef5182943a1b71f47c6432f9b6a Mon Sep 17 00:00:00 2001 From: Official Noob <31563761+OfficialNoob@users.noreply.github.com> Date: Tue, 30 Jul 2019 18:59:06 +0100 Subject: [PATCH 4/4] Old function in-use --- popup.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/popup.js b/popup.js index 2e75f971..71aa4e87 100644 --- a/popup.js +++ b/popup.js @@ -919,8 +919,9 @@ function sendRequestToServer(type, address, callback) { xmlhttp.send(); } -function getYouTubeVideoID(url) { // Return video id or false +function getYouTubeVideoID(url) { // Returns with video id else returns false var regExp = /^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/; var match = url.match(regExp); - return (match && match[7].length == 11) ? match[7] : false; + var id = new URL(url).searchParams.get("v"); + return (match && match[7].length == 11) ? id : false; }