diff options
-rw-r--r-- | public/help/index_en.html | 2 | ||||
-rw-r--r-- | src/options.ts | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/public/help/index_en.html b/public/help/index_en.html index 2c363ac3..605ed501 100644 --- a/public/help/index_en.html +++ b/public/help/index_en.html @@ -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> diff --git a/src/options.ts b/src/options.ts index e9a622a5..0a196a9a 100644 --- a/src/options.ts +++ b/src/options.ts @@ -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); } |