1

I want execute this user script without tampermonkey or another. already that i use Chromium Embedded Framework and i can't use a tampermonkey for this.

window.stop(),document.documentElement.innerHTML=null,GM_xmlhttpRequest({method:"GET",url:"http://extension.agarplus.io",onload:function(e){document.open(),document.write(e.responseText),document.close()}});

so I need to run this code how that you run a common javascript

2

1 Answer 1

1

May be this will help you:

The simplest way to execute JS from a client application is using the CefFrame::ExecuteJavaScript() function

https://bitbucket.org/chromiumembedded/cef/wiki/JavaScriptIntegration

Sign up to request clarification or add additional context in comments.

1 Comment

I don't have idea how execute it in c# normally i use Browser.ExecuteScriptAsync(); Like this: string script = "javascript code here"; Browser.ExecuteScriptAsync(script);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.