How to secretly copy to clipboard JavaScript function in Chrome and Firefox?

JavascriptObject Oriented ProgrammingFront End Technology

To secretly copy JavaScript function to clipboard, use any of the following method: clear() and profile(). These functions work on JavaScript console as well, 

For clear(),

InjectedScriptHost.clearConsoleMessages();

For profile(),

console.profile.apply(console, arguments)

For copy(),

InjectedScriptHost.copyText(object);
raja
Published on 01-Mar-2018 10:16:43
Advertisements