User Tools

Site Tools


actions:Execute_a_JavaScript_in_Browser

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
actions:Execute_a_JavaScript_in_Browser [2021/03/24 20:10]
JMichaelTX Blue Icon
actions:Execute_a_JavaScript_in_Browser [2021/10/14 06:24]
peternlewis [Using Keyboard Maestro Variables]
Line 2: Line 2:
 ====== Execute JavaScript in Browser Actions ====== ====== Execute JavaScript in Browser Actions ======
  
-There are several *Execute a JavaScript in Browser* actions let you execute a JavaScript in a web browser page:+There are several *Execute a JavaScript in Browser* actions ​that let you execute a JavaScript in a web browser page:
  
 *  _Execute a JavaScript in **[[action:​Custom_HTML_Prompt|Custom HTML Prompt]]**_ *  _Execute a JavaScript in **[[action:​Custom_HTML_Prompt|Custom HTML Prompt]]**_
Line 12: Line 12:
 *  _Execute a JavaScript in **Google Chrome**_ *  _Execute a JavaScript in **Google Chrome**_
 *  _Execute a JavaScript in **Safari**_ *  _Execute a JavaScript in **Safari**_
 +
 +**Front Browser** supports these bundle IDs:
 +
 +* com.apple.Safari
 +* com.apple.SafariTechnologyPreview
 +* com.google.Chrome
 +* com.google.Chrome.canary
 +* com.brave.Browser
 +* com.vivaldi.Vivaldi
  
 All of these Actions work the same.  The difference is in which Web Browser the JavaScript will be executed. All of these Actions work the same.  The difference is in which Web Browser the JavaScript will be executed.
Line 41: Line 50:
 var myData = document.kmvar.My_KM_Data var myData = document.kmvar.My_KM_Data
 ``` ```
-  ​+ 
 +(!) Note that because your variables are passed to the web page, any other scripts running on that web page will have access them, and this could be a privacy issue if the information is misused by the web page. 
 + 
 ===== Saving Results to Keyboard Maestro Variables ===== ===== Saving Results to Keyboard Maestro Variables =====
   ​   ​
actions/Execute_a_JavaScript_in_Browser.txt · Last modified: 2024/01/24 22:06 by peternlewis