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 /src | |
parent | 9f4fec2a43b14fc1c4e9842e57f130b9dd5c4632 (diff) | |
download | SponsorBlock-3f98e2fc73475c764e8e3df03d1be9048604c6f3.tar.gz SponsorBlock-3f98e2fc73475c764e8e3df03d1be9048604c6f3.zip |
Remove options page header on help page
Diffstat (limited to 'src')
-rw-r--r-- | src/options.ts | 7 |
1 files changed, 7 insertions, 0 deletions
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); } |