Remove options page header on help page

This commit is contained in:
Ajay Ramachandran 2020-06-07 11:21:21 -04:00
parent 9f4fec2a43
commit 3f98e2fc73
2 changed files with 8 additions and 1 deletions

View file

@ -37,7 +37,7 @@
You can also hide/show all UI elements added to the YouTube page.
</p>
<iframe src="../options/options.html" width="100%" height="500px"></iframe>
<iframe src="../options/options.html#embed" width="100%" height="500px" style="border: none"></iframe>
<h1>How skipping works</h1>

View file

@ -13,6 +13,13 @@ window.addEventListener('DOMContentLoaded', init);
async function init() {
utils.localizeHtmlPage();
// Remove header if needed
if (window.location.hash === "#embed") {
for (const element of document.getElementsByClassName("titleBar")) {
element.classList.add("hidden");
}
}
if (!Config.configListeners.includes(optionsConfigUpdateListener)) {
Config.configListeners.push(optionsConfigUpdateListener);
}