Merge pull request #33 from wanhose/5.4.4

5.4.4
This commit is contained in:
wanhose 2021-12-07 17:38:53 +01:00 committed by GitHub
commit 9b90b28e0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 27 additions and 7 deletions

View File

@ -12474,3 +12474,16 @@ wsp-modal-window[data-type="cookie-modal"]
#lgcookieslaw_modal #lgcookieslaw_modal
.no-js > body > .headertopfixed.fixed ~ .bg_popup .no-js > body > .headertopfixed.fixed ~ .bg_popup
#data-cookie #data-cookie
.overlay-context.no-banner[data-v-5b5bbc81]
.cc_css_reboot.cc_dialog.dark.headline
[data-component-id="banner"]
._3RhWPJfjpsEoBw52x0fQp2
.nav-new-cookie-disclaimer
.js-notification.js-notification-cookie-banner.notification.notification-fixed-bottom.notification-foreground
.ix.u.kh.ki.kj.kk.kl.km.kn.ko.kp.kq.kr.ks.dj.cw.kt.ku.kv
[widgetid="PopupSignupForm_0"] > div.mc-modal[data-dojo-attach-point="modalContainer"]
#mw-mf-viewport #article_courses_banner
div#termsandconds[data-backdrop="static"]
div.ec-notices.ec-notices--animation-default.ec-notices--order-direct.ec-notices--fixed.ec-notices--top.ec-notices--right
div._1MLS_xjiUjam_u2qmURY4i[data-tracking-opt-in-overlay="true"]
div.notification--1vSvk.entered--3hIPp[role="alert"]

View File

@ -1,7 +1,7 @@
{ {
"manifest_version": 2, "manifest_version": 2,
"name": "Cookie Dialog Monster", "name": "Cookie Dialog Monster",
"version": "5.4.3", "version": "5.4.4",
"default_locale": "en", "default_locale": "en",
"description": "__MSG_appDesc__", "description": "__MSG_appDesc__",
"icons": { "icons": {

View File

@ -139,13 +139,13 @@ const observer = new MutationObserver((mutations, instance) => {
fix(); fix();
if (!isPreview) { if (!isPreview) {
mutations.forEach((mutation) => { for (const mutation of mutations) {
mutation.addedNodes.forEach((node) => { for (const node of mutation.addedNodes) {
const valid = check(node); const valid = check(node);
if (valid && node.matches(selectors)) node.outerHTML = ""; if (valid && node.matches(selectors)) node.outerHTML = "";
}); }
}); }
} }
instance.observe(target, options); instance.observe(target, options);
@ -182,7 +182,7 @@ const querySelectors = () =>
}); });
/** /**
* @description Listens DOM complete state * @description Cleans DOM again after all
* @listens document#readystatechange * @listens document#readystatechange
*/ */
@ -196,6 +196,13 @@ document.addEventListener("readystatechange", () => {
}); });
}); });
/**
* @description Fix bfcache issues
* @listens window#unload
*/
window.addEventListener("unload", () => {});
/** /**
* @description Setups everything and starts to observe if enabled * @description Setups everything and starts to observe if enabled
*/ */