[HELP] Blocking Ads

Posts 16 of 6 · Page 1 of 1
[HELP] Blocking Ads
Hey MPGH
I'm currently making a Runescape Bot but I was just wondering how would i remove ADS from WeBrowser1
How I got the ad URL is from making a browser thingy with a Listbox:
I have my ad URL just getting to to block is a problem the AD i want disappeared is

I have tried certain codes like
Code:
  Private Sub WebView1_BeforeNavigate2(ByVal pDisp As Object, ByVal URL As Object, ByVal Flags As Object, ByVal TargetFrameName As Object, ByVal PostData As Object, ByVal Headers As Object, ByVal Cancel As Boolean)
        'Change ads to what ever you can to cancel out eg doubleclick
        If InStr(1, URL, "http://www.runescape.com/img/advert/advert.png", vbTextCompare) Then 
            Cancel = True
        Else
            Cancel = False
        End If
    End Sub
Also
This code is suppose to change the "click=99" at the end of the url to nothing so the ad wont show but still hasn't worked
Code:
   Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        If (WebBrowser1.Document.Url = New Uri("http://view.atdmt.com/2D1/iview/134671869/direct;wi.728;hi.90/01?click=")) Then
        End If
    End Sub
If anyone can help it will be much appreciated
Cheers Jàzzà
Just scrape the HTML and replace the HTML inside of your webbrowser

Real simple.
Quote Originally Posted by NextGen1 View Post
Just scrape the HTML and replace the HTML inside of your webbrowser

Real simple.
ya but that will make everything look crappy and the game provably wont even go after that

OP add me on MSN ill help you alot im good with this kinda stuff, i program automated bots all the time
Can you please give me an example sorry I don't quiet understand what you ment about the HTML part like what to scrape out :/
He can't its all java script the html code of the page is nothing but a java object

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html style="width:100%;height:100%;">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Content-Language" content="en-gb, English" />
<meta name="keywords" content="Runescape, Jagex, free, games, online, multiplayer, magic, spells, java, MMORPG, MPORPG, gaming" />
<meta name="description" content="Join the world's most popular free MMO RuneScape by Jagex Games Studio. Complete quests and win enormous treasures in a 3D world full of magic and monsters.">
<title>RuneScape - The Number 1 Free Multiplayer Game</title>
</head>
<frameset cols="*" rows="*">
<frame style="width:100%;height:100%;margin:0;padding:0;" src="http://world45.runescape.com/,f4" width="100%" height="100%" scrolling="auto" frameborder="0" marginwidth="0" marginheight="0" />
</frameset>
</html>
It wouldn't look crappy at all, it would look the same, only without advertisements.

I'm gonna trust Mr. Helicopter and say that since it's a Java application, you can't really remove the ad.

Unless it's Jscript.
Posts 16 of 6 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?