diff --git a/src/contentScript.js b/src/contentScript.js index de0c853..2f82677 100644 --- a/src/contentScript.js +++ b/src/contentScript.js @@ -60,8 +60,8 @@ function checkForShouldKillSticky(result) { function killSticky(root) { root = root || document.querySelector("body"); root.querySelectorAll('*').forEach(element => { - if (getComputedStyle(element).position === 'fixed' || - getComputedStyle(element).position === 'sticky') { + let position = getComputedStyle(element).position; + if (position === 'fixed' || position === 'sticky') { // uBlock exception. if (element.tagName == "IFRAME" && element.parentElement.tagName == "HTML") @@ -139,4 +139,4 @@ function initialize() { } }); } -initialize(); \ No newline at end of file +initialize();