mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-06 19:47:04 +03:00
Added hide button to notice
This commit is contained in:
@@ -136,11 +136,18 @@ function openSkipNotice(){
|
||||
goBackButton.innerText = "Go back";
|
||||
goBackButton.style.fontSize = "13px";
|
||||
goBackButton.style.color = "#000000";
|
||||
goBackButton.setAttribute("align", "center");
|
||||
goBackButton.style.marginTop = "5px";
|
||||
goBackButton.addEventListener("click", goBackToPreviousTime);
|
||||
|
||||
var hideButton = document.createElement("button");
|
||||
hideButton.innerText = "Hide";
|
||||
hideButton.style.fontSize = "13px";
|
||||
hideButton.style.color = "#000000";
|
||||
hideButton.style.marginTop = "5px";
|
||||
hideButton.addEventListener("click", closeSkipNotice);
|
||||
|
||||
buttonContainer.appendChild(goBackButton);
|
||||
buttonContainer.appendChild(hideButton);
|
||||
|
||||
noticeElement.appendChild(noticeMessage);
|
||||
noticeElement.appendChild(buttonContainer);
|
||||
|
||||
Reference in New Issue
Block a user