uazo / cromite

Cromite a Bromite fork with ad blocking and privacy enhancements; take back your browser!
https://www.cromite.org/
GNU General Public License v3.0
3.23k stars 72 forks source link

unnecessary Ads space in website #1391

Open abdarker opened 3 weeks ago

abdarker commented 3 weeks ago

Preliminary checklist

Can the bug be reproduced with corresponding Chromium version?

Yes

Are you sure?

Yes

Cromite version

128.0.6613.40

Device architecture

arm64-v8a

Platform version

Android 14

Android Device model

Redmi Turbo 3

Is the device rooted?

No

Changed flags

'no flags changed'

Is this bug happening in an incognito tab?

Yes

Is this bug caused by the adblocker?

Yes

Is this bug a crash?

no.

Describe the bug

Details

![1000001891](https://github.com/user-attachments/assets/b6b14e94-464c-4456-9474-0a4f609bb0e8) unnecessary space in https://apkmirror.com

Steps to reproduce the bug

go to https://apkmirror.com

Expected behavior

there shouldn't be any space

Details

![1000001892](https://github.com/user-attachments/assets/8cbb9f08-00cc-4ba3-b281-84204ee2bfe1)

Screenshots

No response

Xisrr1 commented 3 weeks ago

Use the built-in EasyList filter.

abdarker commented 3 weeks ago

Use the built-in EasyList filter.

i tried everything in cromite putting ublock's filters Adguard's filters it works in brave. i tried literally everything. AdBlock plus is the MAIN culprit. it prevents ublock's css injection that's why it leaves annoying big space.

uazo commented 2 weeks ago

the problem is the list you use is not specific to cromite.

abdarker commented 2 weeks ago

the problem is the list you use is not specific to cromite.

so then we gotta live with this big ads space? then even tho i like cromite i got no choice but to stick to brave sadly

uazo commented 2 weeks ago

so then we gotta live with this big ads space?

you just have to wait for the lists to update their rules, perhaps you could communicate this to the maintainers

abdarker commented 1 week ago

thank you

uazo commented 1 week ago

there is one thing I do not understand, maybe @Retold3202 can make me understand it.

https://github.com/easylist/easylist/blame/b168cbf3519d3fbcc5fb383a64a172fd82bb87fe/easylist/easylist_allowlist_general_hide.txt#L296

for apkmirror, in easylist, there is an exception to hide for ins.adsbygoogle[data-ad-slot] and .adslot, why do you think? Looking at the blame does not understand the reason for the inclusion.

in doubt of my bug, I tried brave with the same lists, same behaviour.

using ublock instead, no problem. makes me doubt that the biggest difference between ublock and adblock is the quality of the lists #1245 #560 i wonder if it makes sense to think about using ublock lists with adblockplus, adapting them with some script.

uazo commented 1 week ago

enough with these comments!

celenityy commented 1 week ago

there is one thing I do not understand, maybe @Retold3202 can make me understand it.

https://github.com/easylist/easylist/blame/b168cbf3519d3fbcc5fb383a64a172fd82bb87fe/easylist/easylist_allowlist_general_hide.txt#L296

for apkmirror, in easylist, there is an exception to hide for ins.adsbygoogle[data-ad-slot] and .adslot, why do you think? Looking at the blame does not understand the reason for the inclusion.

Looks like it's for Anti-Adblock to avoid detection.

in doubt of my bug, I tried brave with the same lists, same behaviour.

How did you test it? Brave already includes EasyList by default (+ other lists like EasyPrivacy) with their own tweaks, so maybe adding those lists separately on top of Brave's defaults is causing the problem for Brave. You could also enable Brave's 'Aggressive' content blocking to rule that out. I myself just tested apkmirror.com on Brave for iOS with 'Aggressive' blocking enabled and can confirm I don't see the blank space.

using ublock instead, no problem. makes me doubt that the biggest difference between ublock and adblock is the quality of the lists https://github.com/uazo/cromite/issues/1245 https://github.com/uazo/cromite/issues/560

I'm not sure - uBlock Origin, Brave, & Cromite in this case are all (to my understanding) using the same EasyList filter. Unless some of the other default lists uBlock Origin & Brave use that Cromite doesn't are interfering and removing the white space, my guess would be that this is some kind of limitation or incompatibility with ABP's filtering engine. It might just not be as effective for cosmetic filtering like this. Probably needs more testing.

i wonder if it makes sense to think about using ublock lists with adblockplus, adapting them with some script.

This is probably worth pursuing - since uBlock Origin's default lists are of very high quality (Also used by Brave & many other content blockers by default). We would need to investigate the specific differences between uBo's syntax & ABP's syntax, and what we would have to remove or adapt to get the lists working as expected. I know that they're pretty similar so I don't think something like this would be too difficult, but we would need to look and see.

uazo commented 1 week ago

Looks like it's for Anti-Adblock to avoid detection.

could be, but deleting the rule does not seem to have an active anti-adblock in apkmirror

How did you test it?

why do you ask? simply by selecting the list.

Details

![image](https://github.com/user-attachments/assets/06570443-49aa-49c8-b5e6-0085e380dc05) ![image](https://github.com/user-attachments/assets/810e3fc8-be60-40ae-b4c2-96f4f05d1db3)

'Aggressive' blocking enabled and can confirm I don't see the blank space.

I hadn't tried it, who knows what changes. I confirm that with that option I do not see the space, I will try to find out why.

uBlock Origin, Brave, & Cromite in this case are all (to my understanding) using the same EasyList filter.

no, it doesn't, ublock has its own filters that seem to work better.

my guess would be that this is some kind of limitation or incompatibility with ABP's filtering engine.

I too thought it was a bug, but I checked, by writing in the log the css that is injected into the page (directly from code), simply the #@# rule takes precedence over ## so it is correct that it is not included in the css.

We would need to investigate the specific differences between uBo's syntax & ABP's syntax

i looked at uBo code a bit and compared it with adblockplus's, there are things that adblockplus doesn't have and things that don't work well, but i have to rule out my bugs first.

unfortunately this is a bit long because:

As we move forward, the time to devote to each individual issue becomes greater... this is becoming a big problem.

abdarker commented 1 week ago

when i add this list to brave that weird ads space is completely gone. even the "these's an ads here" text is completely gone as well. but when i remove it leaves weird text in there. https://ublockorigin.pages.dev/filters/filters.min.txt

ref: https://ublockorigin.pages.dev/

it's clean

Details

![1000002216](https://github.com/user-attachments/assets/a126d51d-d2ca-4032-a44b-c6e47d0f5f92)

without that filter

Details

![1000002217](https://github.com/user-attachments/assets/8f6c6ad6-c9b7-4de6-9135-2232dfc15cf5)