summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorCarlos Garcia Campos <cgarcia@igalia.com>2017-01-18 13:36:15 +0100
committerCarlos Garcia Campos <carlosgc@gnome.org>2017-01-19 10:59:23 +0100
commit10cf854c6d8f8a1821245e9094ecfb7036f47c39 (patch)
tree0a95243e551a32409342627f2c9659d240114f6a /data
parent7ee2b9973cb1dfe55872336c819588ed361d9e7a (diff)
downloadepiphany-10cf854c6d8f8a1821245e9094ecfb7036f47c39.tar.gz
Move the adblock filter list to gsettings
It used to be a file in the adblock data dir. Now that adblock dir is shared, it's much better to store the filters in gsettings. It will also make easier to handle in case we eventually add a UI to manage filters. For now it always uses the first filter in the list, since the support for multiple filters was recently removed. The profile migrator now removes the adblock folder from non-default profile dirs and reads the filters.list file from the default profile dir to set its contents in gsettings.
Diffstat (limited to 'data')
-rw-r--r--data/org.gnome.epiphany.gschema.xml7
1 files changed, 6 insertions, 1 deletions
diff --git a/data/org.gnome.epiphany.gschema.xml b/data/org.gnome.epiphany.gschema.xml
index d694482f9..1a51888cb 100644
--- a/data/org.gnome.epiphany.gschema.xml
+++ b/data/org.gnome.epiphany.gschema.xml
@@ -182,9 +182,14 @@
</key>
<key type="b" name="enable-adblock">
<default>true</default>
- <summary>Enable Adblock</summary>
+ <summary>Enable adblock</summary>
<description>Whether to block the embedded advertisements that web pages might want to show.</description>
</key>
+ <key type="as" name="adblock-filters">
+ <default>['https://easylist-downloads.adblockplus.org/easylist.txt']</default>
+ <summary>List of adblock filters</summary>
+ <description>List of URLs with filter rules to be used by the adblock.</description>
+ </key>
</schema>
<schema path="/org/gnome/epiphany/state/" id="org.gnome.Epiphany.state">
<key type="s" name="download-dir">