Fixed formatting issues + previewBar not displaying.

Also changed the isSubmitButtonLoaded function to be checking for the right button and fixed the startSponsorButton not hiding.

Useless function was removed.
This commit is contained in:
Ajay Ramachandran
2019-08-23 20:50:10 -04:00
parent a2af4dba52
commit 1c4ca8da26
2 changed files with 51 additions and 53 deletions

View File

@@ -38,14 +38,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;
}
}