js-lib
COMMENT
/ ************************************
* This a shortcut module for *
* PocketPageMonitor iOS Shortcut *
************************************/
COMMENT
Credits : u/gluebyte (JavaScript tip)
reddit.com/r/shortcuts/comments/xs5xtm/
Big thank you for sharing, PPM would not exists without this 😀
COMMENT
/ **********************************
* CONSTANTS *
**********************************/
COMMENT
JS_KEY
TEXT
js

Text
COMMENT
ARGS
TEXT
Shortcut Input

Text
SCRIPTING
Get
Value
for
JS_KEY
in
ARGS

Dictionary Value
COMMENT
We concatenate here the necessary code to return the JS as text
TEXT
JS
document.body.textContent = encodeURIComponent(JSON.stringify(result))

Text
URL
data:text/html;charset=utf-8,<body/><script>
JSON
</script>

URL
SCRIPTING
URL
Decode
encURL

URL Encoded Text
Showcuts