Innovative Posted May 28, 2008 Posted May 28, 2008 How do i do this ?How can i create a script that will search the html of the webpage accessed and remove advertisements like the picture on top.
weaponx Posted May 28, 2008 Posted May 28, 2008 (edited) Ditch Internet Explorer and use AdBlock with Firefox:https://addons.mozilla.org/en-US/firefox/addon/1865 Edited May 28, 2008 by weaponx
TomTJ Posted May 28, 2008 Posted May 28, 2008 (edited) weaponx is right, use Firefox But you can try this: http://adblockplus.org/It's seems like there is also an IE extension...Tom Edited May 28, 2008 by TomTJ
torels Posted May 28, 2008 Posted May 28, 2008 (edited) there is a file in windows dir called HOSTS (with no extension) just add this line for each banner you want to remove: "120.0.0.1 the banner's url without http:// prefix" so for example add "127.0.0.1 ad.bannernetwork.it" and banners form ad.bannernetwork.it will be ridirected to 120.0.0.1 which is you! Edited May 28, 2008 by torels Some Projects:[list][*]ZIP UDF using no external files[*]iPod Music Transfer [*]iTunes UDF - fully integrate iTunes with au3[*]iTunes info (taskbar player hover)[*]Instant Run - run scripts without saving them before :)[*]Get Tube - YouTube Downloader[*]Lyric Finder 2 - Find Lyrics to any of your song[*]DeskBox - A Desktop Extension Tool[/list]indifference will ruin the world, but in the end... WHO CARES :P---------------http://torels.altervista.org
Innovative Posted May 28, 2008 Author Posted May 28, 2008 @ torels And the banner would not be displayed? Any other ways ? Because i want the banner to be REPLACED with the AD BLOCKED text. @ TomT3 You still dont understand , said in my 3rd post.. ANY WAYS to do in IE ?
nobbe Posted May 28, 2008 Posted May 28, 2008 from the autoit helpfile RemarksYou may use _IEBodyReadHTML to read the current HTML contents of the document body, manipulat that string and then write it back with _IEBodyWriteHTML. You may also use _IEDocInsertHTML, _IEDocInsertText and the innerHTML, innerText, outerHTML and outerText features of _IEPropertyGet and _IEPropertySet to control specific elements without rewriting large blocks of text.
NELyon Posted May 29, 2008 Posted May 29, 2008 The HOSTS file is exactly what you need. Just set up a tiny server on your PC with an index file saying "Advertisement Blocked", and then redirect the ads to 127.0.0.1
Innovative Posted May 29, 2008 Author Posted May 29, 2008 from the autoit helpfileUmm.. those might works.. But only in Embedded browser (self-created browser instead of IE).. I 'would like to program a script that will read the current accessed webpage in IE and read the HTML , replace the ads (e.g. : ad.yieldmanager.com) with a image.
Innovative Posted May 29, 2008 Author Posted May 29, 2008 (edited) The HOSTS file is exactly what you need. Just set up a tiny server on your PC with an index file saying "Advertisement Blocked", and then redirect the ads to 127.0.0.1I own a web server.. Can i redirect it to http://127.0.0.1/ads? Edited May 29, 2008 by xVivoCity
NELyon Posted May 29, 2008 Posted May 29, 2008 I own a web server.. Can i redirect it to http://127.0.0.1/ads?I don't know... Maybe you could actually try it? That's what I do if I want to figure out of something works.
Innovative Posted May 29, 2008 Author Posted May 29, 2008 Should i add like :http://127.0.0.1/ads/image.jpg ad.yieldmanager.com
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now