Thursday, 29 November 2007

Fix for coral cache Adblock Filterset.G Updater bug

If like me you use Adblock Filterset.G Updater to grab the latest regexp to layout pages in Firefox without all the intrusive Adobe Flash, Gif and Iframe adverts.. you may have noticed that Filterset.G Updater doesn't work when you're behind a firewalled connection! I tracked down the cause to be because it relies on Coral Cache, which functions on the less standard port 8080. I told the guys at Coral about this problem in their design a few years ago, unfortunately they've not fixed it still.

The solution is to dive into the code and change Filterset.G Updater to not use the Coral cache.. now editing code is pretty easy, so just follow these steps:

Find fgupdater.jar in your firefox profile and copy it somewhere as a backup.
Rename the original copy fgupdater.jar.zip
Open it up in your favoriate ZIP archive browser, such as Ark, WinZip etc.
Edit the file "content/fgupdater.js"
Change the function near the top to go straight to the uncached site URL:

function fgSite(filter)
{
return "http://www.pierceive.com/filtersetg/";
}

Now save your changes, and close the editor, it should then update the archive when you close it.
Rename it back to fgupdater.jar again.
Restart firefox, and either do a manual update from the Add-ons menu, or if it does an automatic one you should then see the Adblock extension gets populated with the list of regular expressions ;)

Easy eh!?

Labels:

0 Comments:

Post a Comment

<< Home