Add Adblock toggle to statusbar

Bug #768568 reported by Cris Dywan
48
This bug affects 10 people
Affects Status Importance Assigned to Milestone
Midori Web Browser
Fix Released
High
Unassigned

Bug Description

When using Adblock it can be useful to temporarily turn it off when experiencing problems on a site. Since extensions are inside the Preferences dialogue now it is more cumbersome to do so.

There should be a button created by Adblock that sits in the statusbar. There is some code creating an image already, which was never finished, it can be replaced with a GtkTogglebutton, maybe an error icon for the icon, and add a boolean setting to the extension that is checked in the callback that blocks sites.

Related branches

Cris Dywan (kalikiana)
Changed in midori:
importance: Undecided → High
status: New → Confirmed
Michael Moroni (airon90)
tags: added: bitesize
removed: bitsize
Revision history for this message
natano (natanoptacek) wrote :

The patch implements a toggle button for adblock (can be enabled/disabled per tab). The patch still needs some work, but it would be nice to get some preliminary feedback, especially if a per tab toggle is wanted.

Revision history for this message
Cris Dywan (kalikiana) wrote :

This probably needs a custom icon - we could ask Dan to make one. An idea might be to share the icon/ button style code but I wouldn't insist on it. Looks sensible in general. I'm subscribing Alex on the bug.

tags: added: adblock
Changed in midori:
assignee: nobody → natano (natanoptacek)
tags: added: review
Revision history for this message
natano (natanoptacek) wrote :

Yes, a custom button would be really nice.
I think sharing the button style code is a good idea.

Revision history for this message
natano (natanoptacek) wrote :
Revision history for this message
Liviu Andronic (landronimirc) wrote :
tags: added: statusbar
Revision history for this message
natano (natanoptacek) wrote :

#715235 seems to be a superset of this ticket

Revision history for this message
Danielle Foré (danrabbit) wrote :

symbolic adblock icon :)

Revision history for this message
natano (natanoptacek) wrote :

Attached are some updated patches. They should apply in order.
Any opinions?

Revision history for this message
natano (natanoptacek) wrote :
Revision history for this message
natano (natanoptacek) wrote :
Revision history for this message
natano (natanoptacek) wrote :
Revision history for this message
natano (natanoptacek) wrote :
Revision history for this message
natano (natanoptacek) wrote :
Revision history for this message
Luca Theidig (alsternerd) wrote :

It would be a bit more beautiful if you don't put it into the statusbar but in the navigation or menuebar so that the statusbar is not needed at small screens.

A second thing is to enable extensions in private mode to use adblock in private too.
adblock is such a gift to privacy.

Revision history for this message
Cody Garver (codygarver) wrote :

I am unable to apply this patch using either patch -p0 or patch -p1. What am I missing?

Revision history for this message
Cody Garver (codygarver) wrote :

git apply also failed me.

git apply ~/Downloads/midori-768568-adblock-toggle-button.patch
error: patch failed: extensions/adblock.c:434
error: extensions/adblock.c: patch does not apply

Revision history for this message
Zlip (zlip-792) wrote :

Comment 7: https://bugs.launchpad.net/midori/+bug/768568/comments/7
This icon is too close looking as Mixed Content blocking icon of other browsers, it should be more like Caution symbolic icon which is already used by many other similar functionality addons in other browsers. Hope you people welcome feedback on user experience as well.

Revision history for this message
Donte Greene (flykidd) wrote :

Has anyone found a good icon for the button yet, i would really love this feature.

Revision history for this message
InAndOutLand (inandoutland) wrote :

What do I do with this patch file?

Cris Dywan (kalikiana)
Changed in midori:
assignee: natano (natanoptacek) → nobody
Cris Dywan (kalikiana)
Changed in midori:
status: Confirmed → In Progress
milestone: none → 0.5.8
Robert Roth (evfool)
Changed in midori:
status: In Progress → Fix Committed
Cris Dywan (kalikiana)
Changed in midori:
status: Fix Committed → Fix Released
To post a comment you must log in.