diff --git a/content/apply.js b/content/apply.js index a78abda2..0e49743a 100644 --- a/content/apply.js +++ b/content/apply.js @@ -344,8 +344,9 @@ function initDocRootObserver() { return; } const list = []; - for (const el of styleElements.values()) { - if (el.previousElementSibling !== expectedPrevSibling) { + for (const [id, el] of styleElements.entries()) { + if (!disabledElements.has(parseInt(id.substr(ID_PREFIX.length))) && + el.previousElementSibling !== expectedPrevSibling) { list.push({el, before: expectedPrevSibling.nextSibling}); } expectedPrevSibling = el;