mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-09-20 13:03:45 +02:00
Removed getYouTubeVideoStartTime
This commit is contained in:
parent
d25792f39a
commit
9a32710ef8
1 changed files with 0 additions and 11 deletions
11
content.js
11
content.js
|
@ -1143,14 +1143,3 @@ function sendRequestToCustomServer(type, fullAddress, callback) {
|
|||
//submit this request
|
||||
xmlhttp.send();
|
||||
}
|
||||
|
||||
//returns the start time of the video if there was one specified (ex. ?t=5s)
|
||||
function getYouTubeVideoStartTime(url) {
|
||||
let searchParams = new URL(url).searchParams;
|
||||
var startTime = searchParams.get("t");
|
||||
if (startTime == null) {
|
||||
startTime = searchParams.get("time_continue");
|
||||
}
|
||||
|
||||
return startTime;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue