| Index: include.preload.js |
| =================================================================== |
| --- a/include.preload.js |
| +++ b/include.preload.js |
| @@ -139,19 +139,25 @@ |
| propertyValue = "hidden"; |
| } |
| if (el.style.getPropertyValue(propertyName) != propertyValue || |
| el.style.getPropertyPriority(propertyName) != "important") |
| el.style.setProperty(propertyName, propertyValue, "important"); |
| } |
| + function processMutations(mutations) |
| + { |
| + for (let mutation of mutations) |
| + doHide(mutation.target); |
| + } |
| + |
| doHide(element); |
| - new MutationObserver(doHide).observe( |
| + new MutationObserver(processMutations).observe( |
| element, { |
| attributes: true, |
| attributeFilter: ["style"] |
| } |
| ); |
| } |
| function checkCollapse(element) |