aboutsummaryrefslogtreecommitdiffhomepage
path: root/utils.js
diff options
context:
space:
mode:
authorAjay Ramachandran <[email protected]>2019-08-21 14:16:52 -0400
committerAjay Ramachandran <[email protected]>2019-08-21 14:16:52 -0400
commitc1aebf45c84e8141053eb736d8b29365fb12713b (patch)
treea9a41415e78aa4b476523e73f6fef197566c4764 /utils.js
parent118804e139edc2acb8fc85d27ba554b5be20a4c9 (diff)
downloadSponsorBlock-c1aebf45c84e8141053eb736d8b29365fb12713b.tar.gz
SponsorBlock-c1aebf45c84e8141053eb736d8b29365fb12713b.zip
Removed the need for getYouTubeVideoStartTime and made it check the current video time instead.
Diffstat (limited to 'utils.js')
-rw-r--r--utils.js13
1 files changed, 1 insertions, 12 deletions
diff --git a/utils.js b/utils.js
index 3e7fc7b5..dfc515f7 100644
--- a/utils.js
+++ b/utils.js
@@ -23,15 +23,4 @@ function getYouTubeVideoID(url) {
return false;
}
}
-}
-
-//returns the start time of the video if there was one specified (ex. ?t=5s)
-function getYouTubeVideoStartTime(url) {
- let searchParams = new URL(url).searchParams;
- let startTime = searchParams.get("t");
- if (startTime == null) {
- startTime = searchParams.get("time_continue");
- }
-
- return startTime;
-}
+} \ No newline at end of file