1
0
Fork 0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-07-04 20:46:39 +02:00

Added header to standalone options page

This commit is contained in:
kkapsner 2017-12-24 21:53:26 +01:00
parent 6c363c076b
commit 2162fdbf7d
4 changed files with 60 additions and 0 deletions

View file

@ -34,6 +34,27 @@
}
};
if (window === window.top){
let head = document.createElement("header");
let heading = document.createElement("h1");
heading.textContent = browser.i18n.getMessage("options");
head.appendChild(heading);
let introduction = document.createElement("div");
introduction.textContent = browser.i18n.getMessage("optionsIntroduction");
head.appendChild(introduction);
if (window.location.search === "?installed"){
let bookmarkingNotice = document.createElement("div");
bookmarkingNotice.className = "installedNotice";
bookmarkingNotice.textContent = browser.i18n.getMessage("installedNotice");
head.appendChild(bookmarkingNotice);
}
document.body.appendChild(head);
document.body.classList.add("standalone");
}
var table = document.createElement("table");
table.className = "settings " + (settings.displayDescriptions? "display": "hide") + "Descriptions";
settings.on("displayDescriptions", function(){