[qutebrowser] Extend ad blocking to allow single URL blocking.

Florian Bruhin me at the-compiler.org
Fri Nov 2 10:44:08 CET 2018


On Thu, Nov 01, 2018 at 11:03:43PM +0200, Viacheslav Chimishuk wrote:
> I'm thinking about extending existing ad blocking module to allow
> single URL blocking. For now we support two file formats:
> host-per-line and UNIX hosts file format. My idea is the add third
> format support: URL substring to block. For instance, if line is
> foo.com/bar (file format need to be considered) every URL containing
> this substring will be blocked.
> Looks simple and backward compatible.
> Having this feature we can block ads on Youtube with a single
> line. The thing many people is asking for a long time.
> What do you think?

How would the line to block Youtube ads look like?

FWIW I'm against introducing another URL pattern format, and I'd rather
use the existing URL pattern class which is also used for ":set -u"
(aka "per-domain settings"). See:

Note that I'm busy with university work on qutebrowser at least until
christmas, so my time to look at PRs is quite limited currently:


https://www.qutebrowser.org | me at the-compiler.org (Mail/XMPP)
   GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc
         I love long mails! | https://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://listi.jpberlin.de/pipermail/qutebrowser/attachments/20181102/0ff07dd7/attachment.asc>

More information about the qutebrowser mailing list