Export Adblock Filter Subscriptions easily

Everything about using Adblock Plus on Mozilla Firefox, Thunderbird and SeaMonkey
Post Reply
camel
Posts: 2
Joined: Tue Mar 22, 2016 6:20 pm

Export Adblock Filter Subscriptions easily

Post by camel »

Hello,

if you want to export filter subscriptions (URLs) to another machine, this is the way to go:
! close Firefox !

$ cd ~/.mozilla/firefox/*.default/adblockplus

$ grep "^\[Subscription\]" -A2 patterns.ini | sed 's/^--$/\n/g'
( > out.txt)

remove all files in 'adblockplus' and rename out.txt > patterns.ini (or the output of the command above)

share this patterns.ini (after having removed content like ~user~..... = user specific filters)

restart firefox, wait some 1-2 minutes consider filter settings (CTRL+SHIFT+E) and check the auto-generated patterns.ini having been formated correctly (starting with # Adblock Plus preferences; version=4)


Di 22 Mär 2016 18:09:27 CET
It has already been asked here (Adblock Plus • View topic - save/export subscription urls) a while ago

Have fun using it,

Regards
Camel.
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: Export Adblock Filter Subscriptions easily

Post by mapx »

No. You simply have to use the backup / restore features in filter preferences.
camel
Posts: 2
Joined: Tue Mar 22, 2016 6:20 pm

Re: Export Adblock Filter Subscriptions easily

Post by camel »

i am aware of that option, which however exports all downloaded content as well.
considered technically this is rather the way to go and way more obvious (people familiar to software understand this)
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: Export Adblock Filter Subscriptions easily

Post by mapx »

it exports the official filters and / or custom filters ==> all of them = patterns.ini
what do you mean "downloaded content" ?
Post Reply