如何在vb.net中删除此脚本标签?
<script type="text/javascript" src="https://d2nasxlktxv6tm.cloudfront.net/webclient-next/manifest-5d1034b834d8851f0991.js"></script>
我已经尝试过使用此代码,但还是没有运气。
Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click
If WebBrowser1.ReadyState = WebBrowserReadyState.Complete Then
For Each ele As HtmlElement In WebBrowser1.Document.All
If ele.OuterHtml.Contains("https://d2nasxlktxv6tm.cloudfront.net/webclient-next/manifest-5d1034b834d8851f0991.js") Then
ele.OuterHtml = ""
End If
Next
End If
End Sub