Bug 456683 - Adblock
Summary: Adblock
Status: REPORTED
Alias: None
Product: konqueror
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Konqueror Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-13 16:11 UTC by brunoarmiento@icloud.com
Modified: 2023-04-03 19:11 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
attachment-12839-0.html (1.90 KB, text/html)
2022-07-13 16:41 UTC, brunoarmiento@icloud.com
Details

Note You need to log in before you can comment on or make changes to this bug.
Description brunoarmiento@icloud.com 2022-07-13 16:11:26 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Hi, Konqueror is a great browser, but the only important thing missing and if it is the will to do so, is to insert an adblock integrated into the brawser. Filters don't work well when browsing ads flood the page and it's not pleasant to browse. with regard
Comment 1 brunoarmiento@icloud.com 2022-07-13 16:12:15 UTC
Hi, Konqueror is a great browser, but the only important thing missing and if it is the will to do so, is to insert an adblock integrated into the brawser. Filters don't work well when browsing ads flood the page and it's not pleasant to browse. with regard
Comment 2 Stefano Crocco 2022-07-13 16:25:30 UTC
Could you please be more explicit? In what ways don't filters work well? What kind of integrated adblock would you like Konqueror to have?
Comment 3 brunoarmiento@icloud.com 2022-07-13 16:41:27 UTC
Created attachment 150587 [details]
attachment-12839-0.html

An Adblock that works, such as ublock origin adblock plus, and so on, to
ensure that the navigation is clean. I add the konqueror adblock filters
but they do not determine their action of protection against popup
advertisements and so on ... You can directly integrate an
addons-extensions at least for the protection of the navigation. Thank
you 🙂😉

Il giorno mer 13 lug 2022 alle ore 16:25 Stefano Crocco <
bugzilla_noreply@kde.org> ha scritto:

> https://bugs.kde.org/show_bug.cgi?id=456683
>
> Stefano Crocco <stefano.crocco@alice.it> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>                  CC|                            |stefano.crocco@alice.it
>
> --- Comment #2 from Stefano Crocco <stefano.crocco@alice.it> ---
> Could you please be more explicit? In what ways don't filters work well?
> What
> kind of integrated adblock would you like Konqueror to have?
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 4 brunoarmiento@icloud.com 2022-07-13 17:35:46 UTC
Il 13/07/22 16:25, Stefano Crocco ha scritto:
> https://bugs.kde.org/show_bug.cgi?id=456683
>
> Stefano Crocco <stefano.crocco@alice.it> changed:
>
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                   CC|                            |stefano.crocco@alice.it
>
> --- Comment #2 from Stefano Crocco <stefano.crocco@alice.it> ---
> Could you please be more explicit? In what ways don't filters work well? What
> kind of integrated adblock would you like Konqueror to have?
>
> An Adblock that works, such as ublock origin adblock plus, and so on, to ensure that the navigation is clean. I add the konqueror adblock filters but they do not determine their action of protection against popup advertisements and so on ... You can directly integrate an addons-extensions at least for the protection of the navigation. Thank you 🙂😉
>
Comment 5 avlas 2023-03-27 22:48:20 UTC
I think the main problem is that adblock does not work in WebEngine, it only works in WebKit as far as I can tell
Comment 6 Stefano Crocco 2023-04-02 08:41:28 UTC
(In reply to avlas from comment #5)
> I think the main problem is that adblock does not work in WebEngine, it only
> works in WebKit as far as I can tell

To be more precise, it also works in WebEngine, but for images only. I don't know whether there was a specific reason to restrict it to images only (maybe for performance). In any case, even on WebKit, Konqueror supports only the most basic features of AdBlock. I'm woking on improving this, but it means rewriting the AdBlock engine, so it's not easy.
Comment 7 avlas 2023-04-02 13:33:01 UTC
(In reply to Stefano Crocco from comment #6)
> (In reply to avlas from comment #5)
> > I think the main problem is that adblock does not work in WebEngine, it only
> > works in WebKit as far as I can tell
> 
> To be more precise, it also works in WebEngine, but for images only. I don't
> know whether there was a specific reason to restrict it to images only
> (maybe for performance). In any case, even on WebKit, Konqueror supports
> only the most basic features of AdBlock. I'm woking on improving this, but
> it means rewriting the AdBlock engine, so it's not easy.

Thanks for your work, Stefano, it's very appreciated!

Regarding adblock images in WebEngine, how does it work exactly? Does it mean images of ads should not be displayed? I'm not sure it is a bug or something but this doesn't work in my end, for instance here https://www.ccma.cat/esport3 (sometimes it seems to work once but refreshing makes all images, videos, etc appear).
Comment 8 Stefano Crocco 2023-04-03 19:11:35 UTC
(In reply to avlas from comment #7)
> (In reply to Stefano Crocco from comment #6)
> > (In reply to avlas from comment #5)
> > > I think the main problem is that adblock does not work in WebEngine, it only
> > > works in WebKit as far as I can tell
> > 
> > To be more precise, it also works in WebEngine, but for images only. I don't
> > know whether there was a specific reason to restrict it to images only
> > (maybe for performance). In any case, even on WebKit, Konqueror supports
> > only the most basic features of AdBlock. I'm woking on improving this, but
> > it means rewriting the AdBlock engine, so it's not easy.
> 
> Thanks for your work, Stefano, it's very appreciated!
> 
> Regarding adblock images in WebEngine, how does it work exactly? Does it
> mean images of ads should not be displayed? I'm not sure it is a bug or
> something but this doesn't work in my end, for instance here
> https://www.ccma.cat/esport3 (sometimes it seems to work once but refreshing
> makes all images, videos, etc appear).

I tried loading the site you mention and, enabling all automatic filters, only one image was blocked: 
https://tpc.googlesyndication.com/generate_204?DBDfQw

The way it should work is that images displayed in an <img> html element and which match one of the enabled filters are blocked. Images displayed in other ways may not be filtered.

I just realized that, for some reason, the list of automatic filters in the adblock configuration page is completely empty, meaning you can't use any of the predefined lists that can be found online and you're forced to manually create your own filters. I don't know why and when this happened (I don't think it was intentional), but I'll try to fix this issue.