fix(data): issue #267

This commit is contained in:
angel_luis_vn 2023-10-11 12:04:12 +02:00
commit ee19354d56
5 changed files with 12 additions and 8 deletions

View File

@ -12768,4 +12768,6 @@ s4s-privacy-module
tp-yt-iron-overlay-backdrop
#wxp_gdpr_container
script[src*="wirkaufendeinauto.de"] + div.modal-root > div
#bcc-outer
#StickieCookies
[class="block z-50 w-full max-w-full md:max-w-small fixed bottom-0 left-0 md:bottom-[20px] md:left-[20px]"]

View File

@ -22,3 +22,5 @@ steamcommunity.com
substack.com
sucuri.net
youtube.com
godotvr.github.io
tesla.com

View File

@ -21,7 +21,7 @@ export default (server: FastifyInstance, options: RouteShorthandOptions, done: (
reply.send({
data: {
classes: (await results[0].text()).split('\n'),
classes: (await results[0].text()).split('\n').filter((x) => !!x),
commonWords: [
'banner',
'cc',
@ -37,10 +37,10 @@ export default (server: FastifyInstance, options: RouteShorthandOptions, done: (
'popup',
'privacy',
],
elements: (await results[1].text()).split('\n'),
fixes: (await results[2].text()).split('\n'),
skips: (await results[3].text()).split('\n'),
tags: (await results[4].text()).split('\n'),
elements: (await results[1].text()).split('\n').filter((x) => !!x),
fixes: (await results[2].text()).split('\n').filter((x) => !!x),
skips: (await results[3].text()).split('\n').filter((x) => !!x),
tags: (await results[4].text()).split('\n').filter((x) => !!x),
},
success: true,
});

View File

@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "Cookie Dialog Monster",
"version": "6.4.2",
"version": "6.4.3",
"default_locale": "en",
"description": "__MSG_appDesc__",
"icons": {

View File

@ -177,7 +177,7 @@ function fix() {
}
}
if (skips.some((x) => hostname.match(x.replace(/\*/g, '[^ ]*')))) {
if (skips.some((x) => !hostname.match(x.replace(/\*/g, '[^ ]*')))) {
for (const element of [document.body, document.documentElement]) {
element?.classList.remove(...(data?.classes ?? []));
element?.style.setProperty('position', 'initial', 'important');