Force Enable JavaScript in Chrome Incognito

1.5k views Asked by At

Is it possible to force a JavaScript to run using code (c#) in Chrome Incognito?

Cause when I tried to run certain JS in normal Chrome, it works normally. But once I switch to Chrome Incognito, the JavaScript is no longer working.

*Note: I do not want to make changes to settings in Chrome

1

There are 1 answers

0
EqualsGains On

You can't control the browser from the server side, but you may do that in the client's side with the JavaScript function windows.create(), it accepts an optional incognito parameter, see MDN web docs.

Example: windows.create({"url": url, "incognito": true});