feat(data): add new elements and improve loops performance

This commit is contained in:
Anderson Martínez 2021-12-03 10:58:53 -04:00 committed by wanhose
parent 8b85c98c51
commit 532ecc299c
2 changed files with 18 additions and 5 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

@ -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);