Login About Gallery
ShortcutNLP
VARIABLES
Set variable
Input_Var
to
Input
VARIABLES
Get
Input_Var
SCRIPTING
If
Input
Condition
VARIABLES
Get
Input_Var
TEXT
Split
Text
by
Custom
;
SCRIPTING
Decode
Dictionary
with base64
VARIABLES
Set variable
Passaround
to
Input
SCRIPTING
Count
Items
in
Input
SCRIPTING
If
Input
Condition
VARIABLES
Get
Passaround
SCRIPTING
Set name of
Input
to
Passthrough.txt
Otherwise
VARIABLES
Get
Passaround
End If
VARIABLES
Set variable
ShortcutInput
to
Input
Otherwise
VARIABLES
Get
Input_Var
SCRIPTING
Mode
Dictionary
with base64
TEXT
Combine
Text List
with
Custom
;
VARIABLES
Set variable
PassthroughData
to
Input
TEXT
{"Name": "Natural Language Processor", "isRecursive":"true", "Passthrough":"
VARIABLES
Set variable
PassthroughPayload
to
Input
VARIABLES
Get
PassthroughData
VARIABLES
Add
Input
to
PassthroughPayload
TEXT
"}
VARIABLES
Add
Input
to
PassthroughPayload
TEXT
Combine
Text List
with
Custom
Text
SHORTCUTS
Run
ShortcutNLP
Input
Choose Variable
Show While Running
SCRIPTING
Exit shortcut with
Result
End If
VARIABLES
Get
Input_Var
SCRIPTING
Get dictionary from
Input
VARIABLES
Get
Name
SCRIPTING
If
Input
Condition
VARIABLES
Get
ShortcutInput
TEXT
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <style> body{ font-family: 'Open Sans', sans-serif; } h1 { color: #F90B6D; font-family: 'Open Sans', sans-serif; font-size: 54px; font-weight: 300; line-height: 60px; margin: 0 0 16px; } h2 { color: #F90B6D; font-family: 'Open Sans', sans-serif; font-size: 34px; font-weight: 300; line-height: 42px; margin: 0 0 14px; } p, li { color: #222; font-family: 'Open Sans', sans-serif; font-size: 25px; font-weight: 400; line-height: 34px; margin: 0 0 14px; } a { background: #fff; color: #222; text-decoration: none; } * { max-width:100% } code { overflow-wrap: normal; overflow-wrap: break-word; } </style>
VARIABLES
Get
ShortcutInput
SCRIPTING
Set name of
Input
to
Markdown.md
DOCUMENTS
Make rich text from
Markdown Text
DOCUMENTS
Make HTML from
Rich Text
Make Full Document
TEXT
HTML from Rich Text
<title>Document</title>
Text
SCRIPTING
Set name of
Input
to
Document.html
SAFARI
Show web page at
URL
Enter Safari Reader
SCRIPTING
Exit shortcut with
Result
End If
VARIABLES
Get
Name
SCRIPTING
If
Input
Condition
VARIABLES
Get
ShortcutInput
SCRIPTING
Get dictionary from
Input
VARIABLES
Set variable
Input
to
Input
VARIABLES
Get
Input
SCRIPTING
Repeat with each item in
Input
TEXT
<script type="text/javascript" src="
Repeat Item
"></script>
VARIABLES
Add
Input
to
Imports
End Repeat
VARIABLES
Get
Imports
TEXT
Combine
Text List
with
New Lines
TEXT
.loader{ position:absolute; top:0px; bottom:0px; left:0px; right:0px; background:#000; } .loaded .lds-grid { margin-top:-52px; margin-left: -52px; } .lds-grid { display: inline-block; position: absolute; width: 64px; height: 64px; top:50%; left:50%; margin-top:-32px; margin-left: -32px; } .lds-grid button { display:none} .loaded .lds-grid button { display:block; height:104px; width:104px; font-size:20px; } .loaded.done .lds-grid button { display:block; height:104px; background:#fff; border-radius:2px } .loaded .lds-grid div { display:none} .lds-grid div { position: absolute; width: 13px; height: 13px; border-radius: 50%; background: #fff; animation: lds-grid 1.2s linear infinite; } .lds-grid div:nth-child(1) { top: 6px; left: 6px; animation-delay: 0s; } .lds-grid div:nth-child(2) { top: 6px; left: 26px; animation-delay: -0.4s; } .lds-grid div:nth-child(3) { top: 6px; left: 45px; animation-delay: -0.8s; } .lds-grid div:nth-child(4) { top: 26px; left: 6px; animation-delay: -0.4s; } .lds-grid div:nth-child(5) { top: 26px; left: 26px; animation-delay: -0.8s; } .lds-grid div:nth-child(6) { top: 26px; left: 45px; animation-delay: -1.2s; } .lds-grid div:nth-child(7) { top: 45px; left: 6px; animation-delay: -0.8s; } .lds-grid div:nth-child(8) { top: 45px; left: 26px; animation-delay: -1.2s; } .lds-grid div:nth-child(9) { top: 45px; left: 45px; animation-delay: -1.6s; } @keyframes lds-grid { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } body{background:#000;}
TEXT
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <title></title> <style>
Text
</style>
Input
</head> <body> <div class=loader> <div class="lds-grid"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><button id=button onclick="copyIt();this.innerHTML = 'Tap Done'"></button></div> </div> <input id=Passthrough /> <script> function iosCopyToClipboard(el) { var oldContentEditable = el.contentEditable, oldReadOnly = el.readOnly, range = document.createRange(); el.contentEditable = true; el.readOnly = false; range.selectNodeContents(el); var s = window.getSelection(); s.removeAllRanges(); s.addRange(range); el.setSelectionRange(0, 999999); // A big number, to cover anything that could be inside the element. el.contentEditable = oldContentEditable; el.readOnly = oldReadOnly; document.execCommand('copy'); } function copyIt() { document.body.className ="loaded done"; iosCopyToClipboard(document.getElementById("Passthrough")); } function shortcutResult(result){ document.getElementById("button").innerHTML = "Tap Here"; document.getElementById("Passthrough").value = JSON.stringify(result) document.body.className = "loaded"; } try {
Combined Text
} catch (e) { document.write(e.message); } </script> </body> </html>
SCRIPTING
Mode
Dictionary
with base64
SCRIPTING
URL
Encode
Text
URL
data:text/html;base64,
URL Encoded Text
VARIABLES
Get
Input
SCRIPTING
If
Input
Condition
SHARING
Get clipboard
VARIABLES
Set variable
Original clipboard
to
Input
VARIABLES
Get
URL
NETWORK
Get contents of
URL
Options Under Construction
SAFARI
Show web page at
URL
Enter Safari Reader
SHARING
Get clipboard
VARIABLES
Set variable
Passthrough
to
Input
VARIABLES
Get
Original clipboard
SHARING
Copy
Content
to clipboard
Local Only
Expire At
Today at 3 pm
VARIABLES
Get
Passthrough
Otherwise
VARIABLES
Get
URL
SAFARI
Get contents of web page at
URL
DOCUMENTS
Get text from
Input
End If
SCRIPTING
Exit shortcut with
Result
End If
VARIABLES
Get
Name
SCRIPTING
If
Input
Condition
VARIABLES
Get
ShortcutInput
COMMENT
Based on / utilizing the NLP library Compromise https://github.com/spencermountain/compromise
VARIABLES
Set variable
Input
to
Input
DICTIONARY
Name
ShortcutNLP
Version
1.0.9
RH ID
3260
VARIABLES
Set variable
Config
to
Input
VARIABLES
Get
Input
SCRIPTING
Get dictionary from
Input
SCRIPTING
If
Input
Condition
DICTIONARY
VARIABLES
Set variable
Patterns
to
Input
DICTIONARY
VARIABLES
Set variable
Words
to
Input
VARIABLES
SCRIPTING
Get
All Keys
in
Dictionary
SCRIPTING
Repeat with each item in
Input
VARIABLES
SCRIPTING
Get
Value
for
Repeat Item
in
Dictionary

Showcuts

Magic Vars

Screenshot

Submitted Anonymously a month ago

This is an old shortcut, so some variables might be missing!

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

0

50 more actions