If you really like windows script host:
Code: Select all
http = new ActiveXObject("Microsoft.XMLHTTP")
fso = new ActiveXObject("Scripting.FileSystemObject")
http.open("GET", website="https://secure.fanboy.co.nz/opera/urlfilter.ini", false)
http.setRequestHeader("Accept","text/html")
http.send()
f=fso.CreateTextFile(file="E:/IronPortable/Iron/adblock.ini", true)
f.Write(http.responseText.replace(/\*/g,"").replace(/#/g,"# ")+fso.GetFile("E:/IronPortable/Iron/linklist.txt").OpenAsTextStream().ReadAll())
WScript.Echo(website+" is replaced to "+file)
f.Close()
Modify "website=..." and "file=..." to anything you want from the web to your harddisc. Add ".replace(...)" as often you need.
If you have no linklist.txt, then delete "+fso.GetFile("E:/IronPortable/Iron/linklist.txt").OpenAsTextStream().ReadAll()".
For no replace just write "f.Write(http.responseText)".
Or perhaps better use adblock-update.vbs .
Best for all operating systems would be php-scripts.
But then you need something like XAMPP.
That makes out of your PC a dynamic web machine with own creations for Iron.