Mit dem iPhone scannen, um zu installieren
- Download Images/Videos on Pinterest
Neue Funktionen
Version 1.1
Fixed an issue where a replace action was not using regex
Was er macht
43 Aktionen-
CommentMade by /u/wet250 ( ͡° ͜ʖ ͡°)
-
If
-
Expand URL
-
If
-
Get Clipboard
-
Match Text
-
Count
-
If
-
Expand URL
-
Match Text
-
Count
-
If
-
Expand URL
-
If
-
Show Alert
-
Stop This Shortcut
-
If
-
Show Alert
-
Stop This Shortcut
-
Replace Text
-
Get Contents of URL…
-
Make HTML from Rich Text
-
Match Text
-
Replace Text
-
Replace Text
-
Get Dictionary Value
-
Get Item from List
-
Get Dictionary Value
-
Set VariableTitle
-
Get Dictionary Value
-
Count
-
If
-
Get Contents of URL…
-
Set Name
-
Quick Look
-
Stop This Shortcut
-
Get Dictionary Value
-
Filter Files
-
Choose from List
-
Get Dictionary Value
-
Get Contents of URL…
-
Set Name
-
Quick Look
Als Code ansehen
Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.
#include 'actions/web'
#define color red
#define glyph locationPin
/*
Made by /u/wet250
( ͡° ͜ʖ ͡°)
*/
if ShortcutInput contains ShortcutInput {
expandURL(ShortcutInput)
} else {
getClipboard()
const Matches = containsText(, "http")
const Count = count(Matches)
if Count == 1 {
expandURL()
const Matches1 = containsText(, "https?\:\/\/www.pinterest.com/pin/[0-9]+")
const Count1 = count(Matches1)
if Count1 == 1 {
expandURL()
} else {
confirm("Not a Pinterest link!")
stop()
}
} else {
confirm("Not a link!")
stop()
}
}
replaceText("/sent.*", "", true)
const ContentsOfURL = downloadURL()
makeHTML(ContentsOfURL)
containsText(, "<script id=\"initial-state\" type=\"application\/json\">.*?<\/script>")
replaceText("<script id=\"initial-state\" type=\"application/json\">", "")
const UpdatedText = replaceText("</script>", "")
const DictionaryValue = getValue(UpdatedText, "resourceResponses")
const ItemFromList = getRandomItem(DictionaryValue)
const DictionaryValue1 = getValue(ItemFromList, "response.data")
@Title = DictionaryValue1['page_metadata.metatags.title']
const DictionaryValue2 = getValue(DictionaryValue1, "videos")
const Count2 = count(DictionaryValue2)
if Count2 != 0 {
const ContentsOfURL1 = downloadURL(DictionaryValue2['video_list.V_720P.url'])
const RenamedItem = setName(ContentsOfURL1, @Title)
quicklook(RenamedItem)
stop()
}
const DictionaryValue3 = getKeys(DictionaryValue1['images'])
const Files = filterFiles(DictionaryValue3, "Name", "A to Z")
chooseFromList(Files, "Choose Image Size")
const ContentsOfURL2 = downloadURL()
const RenamedItem1 = setName(ContentsOfURL2, @Title)
quicklook(RenamedItem1)
In Cherri Playground öffnen
Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.
Bewertungen und Rezensionen
Rezension schreiben–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings
No reviews yet. Be the first to share what you think!
Werbung
Mehr von wopson
Das gefällt dir vielleicht auch
Werbung