Gay
What's New
Version 1.1
?delete?
What it does
2 actions-
Show AlertKolz
-
Run JavaScript on Web Page
View as code
Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.
#include 'actions/web'
#define color orange
confirm("", "Kolz")
runJavaScriptOnWebpage("var result = [];\n// Get all links from the page\nvar elements = document.querySelectorAll(\"a\");\nfor (let element of elements) {\n result.push({\n \"url\": element.href,\n \"lol\": element.innerText\n });\n}\n\n// Call completion to finish\ncompletion(result);")
Open in Cherri Playground
Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.
Ratings & Reviews
Write a Review–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings
No reviews yet. Be the first to share what you think!
Advertisement
More by coolboy
You Might Also Like
Advertisement