Page 4 of 8

Re: adblock.ini on fanboy.co.nz EOL

Posted: Tue Dec 14, 2010 8:08 pm
by BuGzY
It seems there is another (temporary?) fanboy adblocking filters page:
https://fanboy-adblock-list.googlecode.com/hg

There are lastest firefox, opera and iron adblocking lists, so you can download them from there.
Here is my new adblock_update.js script, tuned for new web adress:

Code: Select all

http = new ActiveXObject("Microsoft.XMLHTTP")
fso = new ActiveXObject("Scripting.FileSystemObject")

http.open("GET", website="https://fanboy-adblock-list.googlecode.com/hg/opera/urlfilter.ini", false) 
http.setRequestHeader("Accept","text/html")
http.send()
f=fso.CreateTextFile(file="C:/Program Files (x86)/SRWare Iron/adblock.ini", true)
f.Write(http.responseText.replace(/\*/g,"").replace(/#/g,"# "))

http.open("GET", website="https://fanboy-adblock-list.googlecode.com/hg/opera/urlfilter-stats.ini", false) 
http.setRequestHeader("Accept","text/html")
http.send()
f.Write(http.responseText.replace(/\*/g,"").replace(/#/g,"# "))

http.open("GET", website="https://fanboy-adblock-list.googlecode.com/hg/opera/urlfilter-rus.ini", false) 
http.setRequestHeader("Accept","text/html")
http.send()
f.Write(http.responseText.replace(/\*/g,"").replace(/#/g,"# "))

f.Close()
I used opera lists because iron lists will not update after new year. They are separated into three files, so script merging and converting them into one adblock.ini.
Feel free to edit script for your personal use. Remeber you can always create update task in Windows Task Scheduler, so it runs script automaticaly every day.
All credits for script go to forum users ironfan, Scream81 and others.

Re: adblock.ini on fanboy.co.nz EOL

Posted: Tue Dec 14, 2010 9:17 pm
by jazluvr
BuGzY wrote:It seems there is another (temporary?) fanboy adblocking filters page:
https://fanboy-adblock-list.googlecode.com/hg

There are lastest firefox, opera and iron adblocking lists, so you can download them from there.
Here is my new adblock_update.js script, tuned for new web adress:

Code: Select all

http = new ActiveXObject("Microsoft.XMLHTTP")
fso = new ActiveXObject("Scripting.FileSystemObject")

http.open("GET", website="https://fanboy-adblock-list.googlecode.com/hg/opera/urlfilter.ini", false) 
http.setRequestHeader("Accept","text/html")
http.send()
f=fso.CreateTextFile(file="C:/Program Files (x86)/SRWare Iron/adblock.ini", true)
f.Write(http.responseText.replace(/\*/g,"").replace(/#/g,"# "))

http.open("GET", website="https://fanboy-adblock-list.googlecode.com/hg/opera/urlfilter-stats.ini", false) 
http.setRequestHeader("Accept","text/html")
http.send()
f.Write(http.responseText.replace(/\*/g,"").replace(/#/g,"# "))

http.open("GET", website="https://fanboy-adblock-list.googlecode.com/hg/opera/urlfilter-rus.ini", false) 
http.setRequestHeader("Accept","text/html")
http.send()
f.Write(http.responseText.replace(/\*/g,"").replace(/#/g,"# "))

f.Close()
I used opera lists because iron lists will not update after new year. They are separated into three files, so script merging and converting them into one adblock.ini.
Feel free to edit script for your personal use. Remeber you can always create update task in Windows Task Scheduler, so it runs script automaticaly every day.
All credits for script go to forum users ironfan, Scream81 and others.
Whoa!! after checking all the links BuGsY just provided to see if they were ok, went ahead and copied this scipt, pasted it in notepad, saved it to desktop as adblock_update.js, closed down my browser, clicked on the updater, checked my iron install folder, and low and behold! It updated to todays list! Now why does this work, but i couldn't get the other one to work, cuz it's in a protected folder, or some crap? Lol.

Wow...you don't know how happy this makes me, dude. Thank you SOOO much for doing this! And thank you all who worked on this script originally and to fanboy and, and and....HAPPY HOLIDAYS!!!!!! :lol:

Re: adblock.ini on fanboy.co.nz EOL

Posted: Wed Dec 15, 2010 7:27 am
by ligerTiger
Thanks very much, i will try this, hopefully it works for a newbie like me too :)

I was wondering when there has been problems that would it be a good idea to just do the following http://downloadsquad.switched.com/2009/ ... ngle-file/

I mean then you at least have some kind of adblock although its old :?:

Re: adblock.ini on fanboy.co.nz EOL

Posted: Wed Dec 15, 2010 8:19 pm
by jazluvr
i learned how to set up this scipt in windows task manager to run at startup, but it didn't update. I then clicked on the desktop icon, but it won't open. After that i checked iron folder again, and it did update, however, when i opened it, it looks like a text file with all the characters in one huge paragraph, instead of the line-by-line configuration I used to get when i had to manually scroll down fanboys updated adblock page in note pad, then save as adblock.ini to desktop, go to irons install folder and drag and drop (replaces-overwrites) the old file with the new one, and it looked normal Like it does line by line when you go to his page.

Is it actually working this way? I'm kinda confused. It says; Updated: 16 Dec 2010, and today is the 15th here in usa, so that tells me it updated, but the format change confuses me...lol.

Re: adblock.ini on fanboy.co.nz EOL

Posted: Thu Dec 16, 2010 1:28 am
by ironuser
I have added the WScript.Echo line(s) to the script by 'BuGzY, Scream81, Ironfan'. <<I hope that got them all.>>
The WScript.echo will popup a small message three times(if you've used all of three files BuGzY included.). If not, then add it after the appropiate line(s)
There may be a way to do this with only one popup, but I didn't take the time to mess with it. Anyway, if you do it from the desktop, it'll at least let you know it has been 'updated'. I have checked it with the three files as single updates, and if all three are used, they add up to around 115 KB. Individually 67KB, 34KB and 15KB.

Code: Select all

http = new ActiveXObject("Microsoft.XMLHTTP")
fso = new ActiveXObject("Scripting.FileSystemObject")

http.open("GET", website="https://fanboy-adblock-list.googlecode.com/hg/opera/urlfilter.ini", false) 
http.setRequestHeader("Accept","text/html")
http.send()
f=fso.CreateTextFile(file="C:/Program Files (x86)/SRWare Iron/adblock.ini", true)
f.Write(http.responseText.replace(/\*/g,"").replace(/#/g,"# "))
WScript.Echo(website+" is replaced to "+file)

http.open("GET", website="https://fanboy-adblock-list.googlecode.com/hg/opera/urlfilter-stats.ini", false) 
http.setRequestHeader("Accept","text/html")
http.send()
f.Write(http.responseText.replace(/\*/g,"").replace(/#/g,"# "))
WScript.Echo(website+" is replaced to "+file)

http.open("GET", website="https://fanboy-adblock-list.googlecode.com/hg/opera/urlfilter-rus.ini", false) 
http.setRequestHeader("Accept","text/html")
http.send()
f.Write(http.responseText.replace(/\*/g,"").replace(/#/g,"# "))
WScript.Echo(website+" is replaced to "+file)

f.Close()

Re: adblock.ini on fanboy.co.nz EOL

Posted: Thu Dec 16, 2010 7:59 am
by ligerTiger
Hello !

I want to use the adblock update using copy and paste into the adblock file in the Iron folder, its easiest for me.
I was thinking about doing this a couple of time a month.

Is it possible to get the lists and from where can i get them ?

Re: adblock.ini on fanboy.co.nz EOL

Posted: Thu Dec 16, 2010 11:29 am
by ironfan
Ok, a (infinite extendable :D ) cut for freaks of windows script host:

Code: Select all

http = new ActiveXObject("Microsoft.XMLHTTP")
fso = new ActiveXObject("Scripting.FileSystemObject")
f=fso.CreateTextFile(file="... your destination .../adblock.ini", true)
W=new Array("https://fanboy-adblock-list.googlecode.com/hg/opera/urlfilter.ini",
"https://fanboy-adblock-list.googlecode.com/hg/opera/urlfilter-stats.ini",
"https://fanboy-adblock-list.googlecode.com/hg/opera/urlfilter-rus.ini")
i=0,txt="\t"+W[0]
while(i<W.length)
{
if(i) txt+="\nAND\t"+W[i]
http.open("GET", website=W[i++], false) 
http.setRequestHeader("Accept","text/html")
http.send()
f.Write(http.responseText.replace(/\*/g,"").replace(/#/g,"# "))
}
WScript.Echo(txt+"\n\n\t\tis replaced and added to\n\n\t\t"+file)
f.Close()

Re: adblock.ini on fanboy.co.nz EOL

Posted: Thu Dec 16, 2010 5:30 pm
by jazluvr
ligerTiger wrote:Hello !

I want to use the adblock update using copy and paste into the adblock file in the Iron folder, its easiest for me.
I was thinking about doing this a couple of time a month.

Is it possible to get the lists and from where can i get them ?
Here ya go ligerTiger..[urlhttps://fanboy-adblock-list.googlecode.com/hg/iron/][/url]. That's to fanboys iron lists. There are links within links. I know how ya feel. I deleted the auto updater in wnodows task manager, and use the desktop auto script icon today, but it still looks like a text file that was saved, though it is indeed 115 KB, as ironuser has said.

I would like to see a line by line file saved to iron folder, the same as it looks on fanboys site, I'm just concerned it's just a text file and not a "real" adblock file. Still waiting on a reply from somebody that knows for sure.

Re: adblock.ini on fanboy.co.nz EOL

Posted: Thu Dec 16, 2010 9:42 pm
by ironfan
In adblock-update.vbs or in the Array you can add or only use

Code: Select all

"https://fanboy-adblock-list.googlecode.com/hg/iron/adblock-beta.ini"
Dispensable replaces have no negative effect and can remain.
On my pc (XP 32) the resulting adblock.ini must be under 10 000 lines (round about 162 kB).
Larger files crash.
So "infinite extendable" is wrong - but 10 000 lines is probably long enough.

Re: adblock.ini on fanboy.co.nz EOL

Posted: Fri Dec 17, 2010 2:31 am
by ironuser
jazluvr wrote: I would like to see a line by line file saved to iron folder, the same as it looks on fanboys site, I'm just concerned it's just a text file and not a "real" adblock file. Still waiting on a reply from somebody that knows for sure.
Does it have some funky looking boxes after each 'line'?
Try opening it with Wordpad. There are RTF (Rich Text File) line feeds that are not recognized by Notepad.
AND>>> it IS a text file, which IS a 'real' adblock file!! VBS and JS files are just text that is written in a way that is interpreted by a scripting host.