Exception rules in adblock? Does "@@" not work?
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Midori Web Browser |
Fix Released
|
Low
|
Unassigned |
Bug Description
I'm using the developer version of Midori from the Launchpad ppa.
I'm using ***only*** my own filter list located at /home/user/
For example, I have a rule to block all .gif images everywhere:
.*/.*.gif
This rule blocks all .gif images everywhere, as intended.
I then want to make an exception for a single .gif image (for example):
None of these work:
@@http://
@@||ubuntuforum
@@||ubuntuforum
The image lastpost.gif remains blocked. (I save and quit gedit after changing custom.list, empty cache and restart Midori.)
Is the use of exceptions possible in Midori and am I making some mistake in the syntax? According to the EasyList format, the first rule (@@http://
Just to clarify, I have both rules in the one file called custom.list like this:
.*/.*.gif
@@http://
Version numbers in brackets show the version used at runtime.
Command line midori
Midori 0.4.6 (de.twotoasts.
GTK+ 2.24.10 (2.24.10) Glib 2.32.1 (2.32.1)
WebKitGTK+ 1.8.1 (1.8.0) libsoup 2.38.1
cairo 1.10.2 (1.10.2)
granite No
libnotify 0.7.5
single instance libunique 1.1.6
Platform X11; Linux i686
Identification Mozilla/5.0 (X11; Linux) AppleWebKit/535.22+ Midori/0.4
Video Formats H264 [x] Ogg Theora [x] WebM [x]
Related branches
- Paweł Forysiuk: Approve
-
Diff: 3520 lines (+1443/-1934)18 files modifieddata/adblock.list (+54/-0)
extensions/CMakeLists.txt (+18/-2)
extensions/adblock.c (+0/-1930)
extensions/adblock/config.vala (+107/-0)
extensions/adblock/element.vala (+36/-0)
extensions/adblock/extension.vala (+545/-0)
extensions/adblock/filter.vala (+52/-0)
extensions/adblock/keys.vala (+47/-0)
extensions/adblock/options.vala (+32/-0)
extensions/adblock/pattern.vala (+26/-0)
extensions/adblock/subscriptions.vala (+328/-0)
extensions/adblock/updater.vala (+139/-0)
extensions/adblock/whitelist.vala (+30/-0)
katze/midori-paths.vala (+1/-0)
midori/midori-app.c (+1/-1)
midori/midori.vapi (+1/-0)
midori/webkit2gtk-3.0.vapi (+16/-0)
po/POTFILES.in (+10/-1)
Changed in midori: | |
status: | Confirmed → Fix Committed |
Changed in midori: | |
status: | Fix Committed → Fix Released |
The best reference on the support is the internal "AdblockPlus rule reference" in the adblock sources, see http:// git.xfce. org/apps/ midori/ tree/extensions /adblock. c#n1349 .
It currently says "TODO: @@ is currently ignored by Midori".