commit
d6d1dff869
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"manifest_version": 3,
|
"manifest_version": 3,
|
||||||
"name": "Cookie Dialog Monster",
|
"name": "Cookie Dialog Monster",
|
||||||
"version": "7.0.0",
|
"version": "7.0.1",
|
||||||
"default_locale": "en",
|
"default_locale": "en",
|
||||||
"description": "__MSG_appDesc__",
|
"description": "__MSG_appDesc__",
|
||||||
"icons": {
|
"icons": {
|
||||||
|
@ -106,17 +106,15 @@ function forceClean(element) {
|
|||||||
*/
|
*/
|
||||||
function forceElementStyles(mutations, observer) {
|
function forceElementStyles(mutations, observer) {
|
||||||
for (const mutation of mutations) {
|
for (const mutation of mutations) {
|
||||||
if (mutation.type === 'attributes' && dataAttributeName === mutation.attributeName) {
|
const element = mutation.target;
|
||||||
const element = mutation.target;
|
const value = element.getAttribute(dataAttributeName);
|
||||||
const value = element.getAttribute(dataAttributeName);
|
|
||||||
|
|
||||||
if (value === null) {
|
if (value === null) {
|
||||||
observer.disconnect();
|
observer.disconnect();
|
||||||
element.removeAttribute(dataAttributeName);
|
element.removeAttribute(dataAttributeName);
|
||||||
element.style.removeProperty('display');
|
element.style.removeProperty('display');
|
||||||
} else {
|
} else {
|
||||||
element.style.setProperty('display', 'none', 'important');
|
element.style.setProperty('display', 'none', 'important');
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user