Skip navigation

Sign up | Lost password? | Help

Ghostshaw's blog

Home of filterset.g.js

Posts tagged with "opera"

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-


New Release.

, , , ...

Well I said I was gonna do weekly releases, but I was wrong. Fearphage massively cleaned up the script and with help from Ayush and various other people in the #weekly channel on irc.opera.com there have been several improvements.

I have also added some more URL's to the filter. It still uses the same filterset.g though.

filterset.g.js

-Ghost-

First filterset.g.js version.

, , , ...

So what is Filterset.g.js? Basically its a adaption of the filterset.g (from pierceive) that blocks ads on pages. It blocks a whole lot of apps, and in addition to the ones filterset blocks I also added the stupid google apps.

It can detect: images, iframes, any kind of object, applet or flashapp and offsite javascripts.

So attached to this post is the first release. I will provide a new version every week if piercieve has update the list in that week.

If you have suggestions for other things I should block please feel free to tell me so.

So here is version 1.0.filterset.g.js

Installing is really simple, just put the file in some folder on your HDD (like c:\userjs or /userjs) then go to tools -> preferences -> advanced -> content -> javascript options, then set the directory where you put the file as User javascript Files folder.

-Ghost-

P.S.
Many thanks to pierceive and the owner of this site: http://www.howtocreate.co.uk/operaStuff/userJavaScript.html (TarquinWJ?) as I based the script on his "black external" script.
December 2008
M T W T F S S
November 2008January 2009
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