mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-06 19:47:04 +03:00
Remove stick header on help page
This commit is contained in:
@@ -47,6 +47,7 @@ async function init() {
|
|||||||
for (const element of document.getElementsByClassName("titleBar")) {
|
for (const element of document.getElementsByClassName("titleBar")) {
|
||||||
element.classList.add("hidden");
|
element.classList.add("hidden");
|
||||||
}
|
}
|
||||||
|
|
||||||
document.getElementById("options").classList.add("embed");
|
document.getElementById("options").classList.add("embed");
|
||||||
createStickyHeader();
|
createStickyHeader();
|
||||||
}
|
}
|
||||||
@@ -301,7 +302,7 @@ function createStickyHeader() {
|
|||||||
const container = document.getElementById("options-container");
|
const container = document.getElementById("options-container");
|
||||||
const options = document.getElementById("options");
|
const options = document.getElementById("options");
|
||||||
|
|
||||||
if (window.pageYOffset > 90 && (window.innerHeight <= 770 || window.innerWidth <= 1200) || embed) {
|
if (!embed && window.pageYOffset > 90 && (window.innerHeight <= 770 || window.innerWidth <= 1200)) {
|
||||||
if (!container.classList.contains("sticky")) {
|
if (!container.classList.contains("sticky")) {
|
||||||
options.style.marginTop = options.offsetTop.toString()+"px";
|
options.style.marginTop = options.offsetTop.toString()+"px";
|
||||||
container.classList.add("sticky");
|
container.classList.add("sticky");
|
||||||
|
|||||||
Reference in New Issue
Block a user