Purge dead entries?

Everything about using Adblock Plus on Mozilla Firefox, Thunderbird and SeaMonkey
Post Reply
OceanDeep
Posts: 4
Joined: Sat Dec 23, 2017 12:32 pm

Purge dead entries?

Post by OceanDeep »

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?
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: Purge dead entries?

Post by mapx »

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:
forum/viewtopic.php?p=144195#p144195
OceanDeep
Posts: 4
Joined: Sat Dec 23, 2017 12:32 pm

Re: Purge dead entries?

Post by OceanDeep »

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?
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: Purge dead entries?

Post by mapx »

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 ..)
Post Reply