Scanne avec ton iPhone pour installer
- Download Images/Videos on Pinterest
Nouveautés
Version 1.1
Fixed an issue where a replace action was not using regex
Ce qu’il fait
43 actions-
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
Afficher en tant que code
Chaque action de ce raccourci écrite en Cherri, un langage de programmation pour Raccourcis. Idéal pour comprendre son fonctionnement.
#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)
Ouvrir dans Cherri Playground
Décompilé avec cherri 2.3.0 (GPL-2.0). Quelques corrections peuvent être nécessaires avant la compilation.
Notes et avis
Écrire un avis–
sur 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Aucun avis pour le moment. Sois le premier à partager ton avis !
Publicité
Plus de wopson
Ça pourrait aussi te plaire
Publicité