Page 1 of 1

Purge dead entries?

Posted: Sat Dec 23, 2017 12:35 pm
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?

Re: Purge dead entries?

Posted: Sat Dec 23, 2017 2:26 pm
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

Re: Purge dead entries?

Posted: Tue Jan 02, 2018 4:59 pm
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?

Re: Purge dead entries?

Posted: Tue Jan 02, 2018 6:33 pm
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 ..)