diff --git a/Hide sticky elements.user.js b/Hide sticky elements.user.js index 23e1f64..8fb3766 100644 --- a/Hide sticky elements.user.js +++ b/Hide sticky elements.user.js @@ -5,7 +5,7 @@ // @grant GM_registerMenuCommand // @grant GM_unregisterMenuCommand // @grant GM_addStyle -// @version 1.1.0 +// @version 1.1.1 // @author blankie // @description Adds a button to the monkey menu to hide sticky elements // @inject-into content @@ -36,7 +36,7 @@ function handleOneNode(node, removed = false) { } let computedStyle = getComputedStyle(node); - let isSticky = computedStyle.position === "sticky" || computedStyle.position === "fixed"; + let isSticky = /^(sticky|fixed|absolute)$/.test(computedStyle.position); if (!stickyElements.has(node) && isSticky && !removed) { node.classList.add("hseSticky"); stickyElements.add(node);