mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-09-20 04:53:43 +02:00
Remove options page header on help page
This commit is contained in:
parent
9f4fec2a43
commit
3f98e2fc73
2 changed files with 8 additions and 1 deletions
|
@ -37,7 +37,7 @@
|
||||||
You can also hide/show all UI elements added to the YouTube page.
|
You can also hide/show all UI elements added to the YouTube page.
|
||||||
</p>
|
</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>
|
<h1>How skipping works</h1>
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,13 @@ window.addEventListener('DOMContentLoaded', init);
|
||||||
async function init() {
|
async function init() {
|
||||||
utils.localizeHtmlPage();
|
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)) {
|
if (!Config.configListeners.includes(optionsConfigUpdateListener)) {
|
||||||
Config.configListeners.push(optionsConfigUpdateListener);
|
Config.configListeners.push(optionsConfigUpdateListener);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue