Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
120 views

I am able to demonstrate my issue using the below simple example. I basically need to use the addUserScript to load different scripts based upon which website the web view has navigated to. This works ...
sudoExclamationExclamation's user avatar
0 votes
1 answer
48 views

I am using Jquery and Jquery-UI 1.7.2. The code itself is a tampermonkey script with the grants necessary for GM_setValue and GM_getValue already written. The part of the code that has the issue is ...
deniz's user avatar
  • 1
2 votes
0 answers
162 views

I am create html page with HTML5 IMA SDK player and then load this page to WKWebView, all work fine pause, playing content etc, but I want "pause" content when app goes to background for ...
Ice's user avatar
  • 787
-1 votes
1 answer
532 views

Crash while executing this init method in ios 14 Use of unimplemented initializer init(source:injectionTime:forMainFrameOnly:in:) class MyScript: WKUserScript { init(source: String) { super.init(...
Saqib2235's user avatar
2 votes
0 answers
86 views

I have included my function and the way im calling it it does print "injecting" in console but the javascript dosent seem to be injected i have tested the js in safari console and chrome console it ...
kishan's user avatar
  • 57
1 vote
2 answers
1k views

I'm using addUserScript() to add a user script to my WKWebView's WKUserContentController. I noticed that even if call loadRequest() the script stays around. For certain use cases I may need to ...
Locksleyu's user avatar
  • 5,463
2 votes
2 answers
1k views

For work, I spend a lot of time on domain-specific forums. Throughout the day, I check those forums to see if there are any questions and answers relevant to what I am working on. However, the ...
Arik Rundquist's user avatar
0 votes
1 answer
1k views

WKUserScript has this init init(source: String, injectionTime: WKUserScriptInjectionTime, forMainFrameOnly: Bool) Simply what is meant by 'MainFrame' ?
RyanTCB's user avatar
  • 8,296
0 votes
1 answer
801 views

I'm having code which perfectly works in iOS 9, but not working in iOS 10, specifically doBar() not called. Here in WKWebView I'm injecting javascript code. let jsFoo = "function doFoo() { window....
Jurasic's user avatar
  • 1,957
7 votes
2 answers
10k views

I want to inject a script using WKWebview API. For some reason it isn't working and I can't figure it out. I've tried debugging in Safari developer console and I can't find the JavaScript code in ...
Avba's user avatar
  • 15.4k