uBlockOrigin / uAssets

Resources for uBlock Origin, uMatrix: static filter lists, ready-to-use rulesets, etc.
GNU General Public License v3.0
4.23k stars 778 forks source link

civitai.com: detection #22203

Closed Buffmutti closed 9 months ago

Buffmutti commented 10 months ago

Prerequisites

URL address of the web page

https://civitai.com/models

Category

detection

Description

I use Civitai.com daily because i create pictures with the AI every day and need LoRAs and other stuff from that site. Since today Civitai.com recognizes that i use a adblocker and tells me to remove it and plasters the place with graphics and buttons with which i would buy their premium model. I updated the filters already, but this didn't help.

Other extensions used

Consent-O-matic Deactivation Add-on for Google Analytics Fluff Busting Purity Google Search "View Image" button Hide Youtube Shorts IBA Opt-out IDN Safe Mega MyJDownloader Browser extension Privacy Badger Return Youtube Dislike RSS Feedreader Set Character Encoding Shorts to normal player Sponsorblock for Youtube Cyberghost VPN Tampermonkey Tineye Unshorten.it Volume Control for Google Chrome WebRTC Leak Shield

Screenshot(s)

Screenshot(s) ![civitai](https://github.com/uBlockOrigin/uAssets/assets/22818031/be0aa32c-d3fe-46cc-9cf1-4994a1ae75dd)

Configuration

```yaml uBlock Origin: 1.55.0 Chromium: 120 filterset (summary): network: 242987 cosmetic: 183181 scriptlet: 42225 html: 0 listset (total-discarded, last-updated): removed: user-filters: null plowe-0: null added: https://filters.adtidy.org/extension/ublock/filters/14.txt: 76801-127, now https://malware-filter.gitlab.io/pup-filter/pup-filter.txt: 189-0, now adguard-generic: 81847-506, now adguard-mobile: 9092-65, now adguard-social: 22470-938, now adguard-spyware-url: 1424-5, now curben-phishing: 86563-20, now dpollock-0: 11632-81, now default: DEU-0: 7297-6, now easylist: 79802-2073, now easyprivacy: 43563-336, 1h.32m Δ ublock-badware: 7791-330, 1h.32m Δ ublock-filters: 36681-3860, 1h.32m Δ ublock-privacy: 992-104, 1h.32m Δ ublock-quick-fixes: 130-6, 1h.32m Δ ublock-unbreak: 2192-103, 1h.32m Δ urlhaus-1: 8745-0, now filterset (user): [array of 103 redacted] trustedset: added: [array of 31 redacted] removed: chrome-extension-scheme edge-scheme switchRuleset: added: [array of 16 redacted] hostRuleset: added: [array of 9 redacted] userSettings: advancedUserEnabled: true webrtcIPAddressHidden: true hiddenSettings: [none] supportStats: allReadyAfter: 390 ms (selfie) maxAssetCacheWait: 315 ms cacheBackend: browser.storage.local popupPanel: blocked: 19 network: civitai.com: 1 cloudflareinsights.com: 1 doubleclick.net: 2 google.com: 2 googlesyndication.com: 1 instagram.com: 9 magsrv.com: 1 youtube.com: 2 extended: ##+js(set-constant, rwt, noopFunc) ```
huyszn commented 10 months ago

I used civitai.com##+js(no-fetch-if, googlesyndication) to hide the banners but the placeholders and the Become a supporter to turn off ads today. box when you scroll down on https://civitai.com/models still remain.

There are also ad placeholder boxes when you scroll down on https://civitai.com/images

gorhill commented 10 months ago

I can reproduce, @huyszn's civitai.com##+js(no-fetch-if, googlesyndication) works.

Symbiomatrix commented 10 months ago

Can this be reopened? The issue is only partially solved. I've tried applying the following static filter, which seemingly catches the placeholders, but then they "phase in and out of existence", only disappearing when entering element picker / zapper mode and still showing on regular browsing after a refresh. The js filter did nothing as far as I can tell. ##.mantine-Paper-root:has(a[href="/pricing"])

stephenhawk8054 commented 10 months ago
civitai.com##.mantine-Paper-root:has(a:has-text(Remove ads))

hides the whole page in https://civitai.com/images/5742499


I think we don't need to hide all Remove ads section. It's more like self-promotion link

huyszn commented 10 months ago

@stephenhawk8054 Should the boxes on https://civitai.com/models when scrolling down that say Become a supporter to turn off ads today. be hidden or is it self-promo? I used this filter to remove them.

civitai.com##.mantine-Paper-root:has(> .mantine-Stack-root:has(.mantine-Text-root:has-text(Become a supporter)))
stephenhawk8054 commented 10 months ago

@huyszn The filter is not really efficient (2 nested has with has-text inside), so I think we should not hide them

gorhill commented 10 months ago

I think this one would be ok:

civitai.com##.mantine-Paper-root > .mantine-Stack-root:has-text(Become a supporter):upward(.mantine-Paper-root)

There are only ~15 matching elements for :has-text() to process, rather than (114x6x7) with the :has() based one.

huyszn commented 10 months ago

I noticed that posts on https://civitai.com/posts do not load when the filter civitai.com##.mantine-Paper-root:empty is enabled.

D4niloMR commented 10 months ago

Still have PH on the main page, maybe

civitai.com##div[style^="width: "] > .mantine-Paper-root[style^="margin: "]

huyszn commented 10 months ago

There is also a PH on model pages like https://civitai.com/models/260267/animagine-xl-v3 between the Discussion and the Gallery section.

nl255 commented 9 months ago

It is now an image which means matching text won't work. The key seems to be ##div.mantine-[random 6 character string].mantine-Paper-root and possibly div.mantine-[random 6 character string].mantine-Paper-root:nth-of-type(1). The best I could get is with ||civitai.com/_next/image?url=%2Fimages%2Fsupport-us which while it doesn't replace the PH it does remove the image and replace it with an empty box.