Ghostshaw's blog

Home of filterset.g.js

What this blog is about.

This blog will primarily be the place through which I release my advanced content blocker/ad filter for opera base on javascript.

To make a custom filter you must have a file with this:
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}");


Code in it, where you replace {white} by allowed sites (or you can just delete that part) and {black} by disallowed sites. The content must be regexp valid and either be totally encapsulated in () or consist of separate alteration sections encapsulated in (). Also the filename must come before filterengine.js when sorted in alphabetical order.

The latest version will always be available through here:

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

-Ghost-

New Release.Small update

Comments

yeeliberto Monday, January 19, 2009 11:11:58 PM

I don't get it very well, but if I just want to use it, the ad blocker, without adding sites to the list will it work right up when I use the JS in Opera?

Ghostshaw Monday, May 18, 2009 2:38:27 PM

Yes the 2 aaaa files are a basic set of filters.

Write a comment

New comments have been disabled for this post.