uBlockOrigin / uAssets

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

tecnoyfoto.com: detection #20926

Closed ItsProfessional closed 10 months ago

ItsProfessional commented 10 months ago

Prerequisites

URL(s) where the issue occurs.

https://tecnoyfoto.com/camaras-tapo-a-home-assistant

Description

CHP

tecnoyfoto.com##+js(noeval-if, /chp_?ad/)

Other extensions used

None

Screenshot(s)

Screenshot(s) ![image](https://github.com/uBlockOrigin/uAssets/assets/63961221/c0b0fe08-28eb-4bae-ac55-88c8562403f7)

Configuration

Details ```yaml uBlock Origin: 1.54.0 Firefox: 120 filterset (summary): network: 189838 cosmetic: 116805 scriptlet: 26096 html: 1308 listset (total-discarded, last-updated): added: easylist-annoyances: 4191-95, 2d.21h.8m easylist-chat: 165-0, 2d.21h.8m fanboy-cookiemonster: 49037-281, 2d.21h.8m ublock-cookies-easylist: 577-0, 2d.21h.8m easylist-newsletters: 6660-13, 2d.21h.8m easylist-notifications: 2877-4, 2d.21h.8m fanboy-social: 16161-7, 2d.21h.8m ublock-annoyances: 5852-608, 2d.21h.8m default: user-filters: 0-0, never ublock-filters: 36650-109, 1h.2m ublock-badware: 7522-10, 1h.2m ublock-privacy: 860-4, 1h.2m ublock-unbreak: 2200-2, 1h.2m ublock-quick-fixes: 191-2, 1h.2m easylist: 75665-731, 3d.22h.19m adguard-spyware-url: 1338-94, 3d.22h.19m easyprivacy: 32964-824, 3d.22h.19m urlhaus-1: 9605-0, 17h.37m curben-phishing: 78437-29, 17h.38m plowe-0: 3719-1, 3d.22h.19m LegitimateURLShortener: 2497-157, 1h.2m filterset (user): [empty] trustedset: added: [array of 1 redacted] userSettings: advancedUserEnabled: true hiddenSettings: trustedListPrefixes: ublock- user- supportStats: allReadyAfter: 3180 ms maxAssetCacheWait: 1988 ms popupPanel: blocked: 16 network: amazon-adsystem.com: 1 google.com: 2 googlesyndication.com: 3 googletagmanager.com: 2 onesignal.com: 1 sitelock.com: 1 translate.googleapis.com: 2 youtube.com: 4 extended: ##a[href^="https://www.facebook.com/sharer/sharer.php"] ##a[href^="https://www.pinterest.com/pin/create/link/"] ##.sfsi_widget ##.back-to-top:not(body):not(html) ##.grecaptcha-badge #@#[data-ad-module] #@#[data-ad-width] #@#[data-adblockkey] #@#[data-advadstrackid] #@#[data-ad-manager-id] #@#.Ad-Container #@#.sidebar-ad #@#.ad-slot #@#.ad-placeholder ##+js(set-constant, rwt, noopFunc) ##+js(trusted-set-cookie, SOCS, CAESHAgBEhJnd3NfMjAyMzA2MTItMF9S… ```
okiehsch commented 10 months ago

Your filter works fine. The site uses a generic anti adblock script and I fix that script with example##+js(acs, eval, replace) that way looking at the code I can tell what caused the issue.

ItsProfessional commented 10 months ago

@okiehsch What do you mean by "generic"? This website uses "CHP Ads Block Detector", for which uAssets specifically has a filter with a lot of domains to block this adblock detection script.

Why add all of those other websites that have CHP anti-adblock to that filter, and treat it differently for another group of sites?

ItsProfessional commented 10 months ago

@okiehsch What do you mean by "generic"? This website uses "CHP Ads Block Detector", for which uAssets specifically has a filter with a lot of domains to block this adblock detection script.

Why add all of those other websites that have CHP anti-adblock to that filter, and treat it differently for another group of sites?

@okiehsch ?

okiehsch commented 10 months ago

Sorry, I did somehow not notice your first mention.

I mean that that same script has been used - unchanged - for years and I and others have always fixed it using example##+js(acs, eval, replace) If you search the list you will find 100 instances of it. I did not realize that there was a big block of sites using your ##+js(noeval-if, /chp_?ad/) until now.

Well, seeing as both filters are now used on literally hundreds of sites we can use both interchangeably, after all they both fix the same anti adblock script.

Next time you open an issue and suggest your filter ##+js(noeval-if, /chp_?ad/) I will use your filter.