Purge dead entries?

Everything about using Adblock Plus on Mozilla Firefox, Thunderbird and SeaMonkey

Purge dead entries?

Postby OceanDeep » Sat Dec 23, 2017 1:35 pm

Hey everyone!

I'm using Adblock for FF, and when sort Easylist and others by hits, I only get 80-100 filters that actually have any hits...

The rest of the list (99%) is just bloat. I guess it only slows things down, eating CPU and memory.

Is there any way to delete orphaned filters?
OceanDeep
 
Posts: 2
Joined: Sat Dec 23, 2017 1:32 pm

Re: Purge dead entries?

Postby mapx » Sat Dec 23, 2017 3:26 pm

You are still using the old ABP (legacy, dead since FF 57 landing).

However, whatever adblocker you use if you don't want all easylist filters just prepare and use your own list.

See how to:
https://adblockplus.org/forum/viewtopic.php?p=144195#p144195
User avatar
mapx
 
Posts: 21041
Joined: Thu Jan 06, 2011 3:01 pm

Re: Purge dead entries?

Postby OceanDeep » Tue Jan 02, 2018 5:59 pm

Thanks! What would be the best way?

Lets say, I've exported all my filters. And the file says:

==
# Adblock Plus preferences
version=4
[Filter]
text=###SR_PopOver
hitCount=2
lastHit=1393965010619
[Filter]
text=###adv
hitCount=226
lastHit=1511873090106

...
and down the line starts a subscription block:
[Subscription filters]
! RuAdList and EasyList combination subscription
! Last modified: 01 Jan 2018 16:41 UTC

Somehow, I need to turn lines like "text=###SR_PopOver" to just "###SR_PopOver", and cut the remaining bloat.
Does anybody use a custom parser, or should I go with grep/awk ?
And lastly, if I restore it in ADP via "backup/restore" button, shall it work?
OceanDeep
 
Posts: 2
Joined: Sat Dec 23, 2017 1:32 pm

Re: Purge dead entries?

Postby mapx » Tue Jan 02, 2018 7:33 pm

If you want to get the filters with hits > 100 .. just sort in ABP the filters (from easylist for example) for hits, select that group, copy them and paste in some text file.

Then (if you still use that deprecated old ABP) remember to switch again on unsorted stuff in filters (otherwise all the stuff will be very slow ..)
User avatar
mapx
 
Posts: 21041
Joined: Thu Jan 06, 2011 3:01 pm


Return to Adblock Plus for Firefox support

Who is online

Users browsing this forum: No registered users and 17 guests