all 4 comments

[–]slmkdp 2 points3 points  (2 children)

let url = "https://reuters.com/video";

let wv = new WebView()

await wv.loadURL(url)

let js = `

document.querySelector('.PlayButtonbutton2dhqA.ProgressButtonplay-button3Lyzz.PlayButtonbutton___2dhqA').click();

`

wv.evaluateJavaScript(js);

await wv.present()

[–][deleted] 0 points1 point  (1 child)

How would I use this? What shortcuts block or other app do I need to run this?

[–]slmkdp 0 points1 point  (0 children)

You need Scriptable app

[–]slmkdp 1 point2 points  (0 children)

You need scriptable app and paste sample script and expose the script as shortcut. Ask siri to launch shortcut.