From ca9aa130f84688828f910af02c0ffa8529f215ea Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Tue, 9 Jul 2019 21:46:11 -0400 Subject: [PATCH] Added hide button to notice --- content.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/content.js b/content.js index 0e56c264..b8b09c0e 100644 --- a/content.js +++ b/content.js @@ -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);