mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2026-01-30 22:37:22 +03:00
Made options a hidden section in the popup.
This commit is contained in:
7
popup.js
7
popup.js
@@ -5,6 +5,7 @@ document.getElementById("submitTimes").addEventListener("click", submitTimes);
|
||||
document.getElementById("showNoticeAgain").addEventListener("click", showNoticeAgain);
|
||||
document.getElementById("hideVideoPlayerControls").addEventListener("click", hideVideoPlayerControls);
|
||||
document.getElementById("showVideoPlayerControls").addEventListener("click", showVideoPlayerControls);
|
||||
document.getElementById("optionsButton").addEventListener("click", openOptions);
|
||||
|
||||
//if true, the button now selects the end time
|
||||
var startTimeChosen = false;
|
||||
@@ -301,6 +302,12 @@ function showSubmitTimesIfNecessary() {
|
||||
}
|
||||
}
|
||||
|
||||
//make the options div visisble
|
||||
function openOptions() {
|
||||
document.getElementById("optionsButtonContainer").style.display = "none";
|
||||
document.getElementById("options").style.display = "unset";
|
||||
}
|
||||
|
||||
//this is not a YouTube video page
|
||||
function displayNoVideo() {
|
||||
document.getElementById("loadingIndicator").innerHTML = "This probably isn't a YouTube tab, or you clicked too early. " +
|
||||
|
||||
Reference in New Issue
Block a user