Sign in to follow this  
Followers 0
Innovative

Remove Ads

13 posts in this topic

How do i do this ?

Posted Image

How can i create a script that will search the html of the webpage accessed and remove advertisements like the picture on top.

Share this post


Link to post
Share on other sites

Any ways to do that in autoit FOR IE 7 ?

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 by TomTJ

Share this post


Link to post
Share on other sites

#5 ·  Posted (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 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

Share this post


Link to post
Share on other sites

@ 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 ?

Share this post


Link to post
Share on other sites

from the autoit helpfile

Remarks

You 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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

from the autoit helpfile

Umm.. 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.

Share this post


Link to post
Share on other sites

#10 ·  Posted (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.1

I own a web server.. Can i redirect it to http://127.0.0.1/ads?

Edited by xVivoCity

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Doesn't works.. Any one knows how ?

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0