Jump to content

Recommended Posts

Posted

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.

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

Posted

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

Posted

from the autoit helpfile

  Quote

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.

Posted

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

Posted

  nobbe said:

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.

Posted (edited)

  KentonBomb said:

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...