diff options
author | Ajay Ramachandran <[email protected]> | 2020-06-07 11:21:21 -0400 |
---|---|---|
committer | Ajay Ramachandran <[email protected]> | 2020-06-07 11:21:21 -0400 |
commit | 3f98e2fc73475c764e8e3df03d1be9048604c6f3 (patch) | |
tree | 0ed277094e351bf063eba5eda8f867a5b7621310 | |
parent | 9f4fec2a43b14fc1c4e9842e57f130b9dd5c4632 (diff) | |
download | SponsorBlock-3f98e2fc73475c764e8e3df03d1be9048604c6f3.tar.gz SponsorBlock-3f98e2fc73475c764e8e3df03d1be9048604c6f3.zip |
Remove options page header on help page
-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); } |