Skip navigation

Sign up | Lost password? | Help

Ghostshaw's blog

Home of filterset.g.js

Partial rewrite

, ,

Okay this project has changed a little. From now on the filters themself are separate js files. There is now one engien file called filterengine.js. Then there are the filtersets/lists, they contain very little code:

var ujs_white_array;
var ujs_black_array;

if (!ujs_white_array) ujs_white_array = []; 
ujs_white_array.push("{white}");

if (!ujs_black_array) ujs_black_array = []; 
ujs_black_array.push("{black}");


{white} and {black} are respectively replaced by allowed and disallowed stuff (whitelists are basically exceptions to the blacklists). These files will usually start with aaaa- if they come from me. This due to the fact that Opera loads UserJS scripts in alphabetical order and the filterset files need to be loaded before the engine. So if you want to make your own set, make sure they come in the alphabet before filterengine.js. Because of this change there are now several files you will need. I will always post a zip file with all 3 (currently) files in it and the file that has been changed. The main post will contain the latest versions of all 3.

adfilter.zip
aaaa-customlist.js
aaaa-filterset.g.js
filterengine.js

Many thanks to fearphage for suggesting this system and also Ayush for a little help :D.

-Ghost-


And another small bug fix release

Write a comment

You must be logged in to write a comment. If you're not a registered member, please sign up.

December 2009
M T W T F S S
November 2009January 2010
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31