I've loaded a page and am looking for all the <script> with type=text/javascript, but no matter what I do I get an exception
webView.evaluateJavaScript("document.querySelectorAll('script[type=text\\/javascript]').length;)
The string did not match the expected pattern.
webView.evaluateJavaScript("document.querySelectorAll('script[type=text/javascript]').length;)
The string did not match the expected pattern.
webView.evaluateJavaScript("document.querySelectorAll('script').length;)
19
Got no clue how to add a type filter in there, it works in the Console in Safari
text/javascript. This works for me on FIrefoxdocument.querySelectorAll('script[type="text/javascript"]')