[HELP] Blocking Ads
Hey MPGH
I'm currently making a Runescape Bot but I was just wondering how would i remove ADS from WeBrowser1

I have tried certain codes like
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
If anyone can help it will be much appreciated
Cheers Jàzzà
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
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
Cheers Jàzzà

and the game provably wont even go after that