Login About Gallery
Reddit Image To Wallpaper
COMMENT
This is a shortcut to select the 2nd most popular image post (or most popular image if the top post is not an image), and set the Lock Screen and Wallpaper to it with an optional title and snarky comment to make you want to go see the top post.
COMMENT
Do you want the image mapped to a blurred version of itself? Do you want the title of the subreddit or the post on the image? Snarky text? Do you want the text only showing up on the Lock Screen (not on the wallpaper? Note: these options require additional shortcuts.
DICTIONARY
AddSubreddit
True
AddTitle
True
AddSnark
False
RemoveText4Wallpaper
True
AddBluredBackground
True
Check4Updates
True
VARIABLES
Set variable
Script Settings
to
Default Settings
COMMENT
Here is a spot to list sub-Reddits. You can then set the index of the one you would like to use, or set it to random if you want.
LIST
Oddlysatisfying
iphonewallpapers
Puppies
Cats
Aww
Foodporn
SCRIPTING
Get
Random Item
from
Subreddits
COMMENT
You can overwrite the default settings for the script if you want for specific subreddits.
SCRIPTING
If
Subreddit
is
iphonewallpapers
DICTIONARY
AddSubreddit
False
AddTitle
False
AddSnark
False
RemoveText4Wallpaper
True
AddBluredBackground
False
Check4Updates
True
VARIABLES
Set variable
Script Settings
to
Default Settings
Otherwise
End If
NOTHING
Nothing
COMMENT
Let’s see if there is an update available.
SCRIPTING
Get
Value
for
Check4Updates
in
Script Settings
DOCUMENTS
Get text from
Dictionary Value
SCRIPTING
If
Text
is not
No
DICTIONARY
RHID
7982
Version
0.7
Name
Reddit Image To Wallpaper
URL
https://routinehub.co/api/v1/shortcuts/
RHID
/versions/latest
NETWORK
Get contents of
URL
Options Under Construction
SCRIPTING
Get dictionary from
Contents of URL
NUMBER
SCRIPTING
TEXT
'
Number
' has an updated to version
Name
. Here is what's new:
Notes
LIST
👍 Lets get the new version.
👎 Nope, lets just continue. You can turn off this check in the shortcut.
SCRIPTING
Choose from
List
Prompt
Select Multiple
SCRIPTING
If
Chosen Item
contains
version
URL
routinehub.co/download/
id
SAFARI
Open
URL
SCRIPTING
Exit shortcut with
URL
Otherwise
End If
Otherwise
End If
Otherwise
End If
NOTHING
Nothing
COMMENT
Enter comment...
NETWORK
Get contents of
https://www.reddit.com/r/
Subreddit
/top/.json?limit=50
Options Under Construction
SCRIPTING
Get dictionary from
Contents of URL
SCRIPTING
Get
Value
for
data.children
in
Dictionary
VARIABLES
Set variable
Children
to
Dictionary Value
COMMENT
Some lower volume subs do not have enough images for the ‘top’ list. If so we get the ‘hot’ list, which usually has more. Not perfect, but this fixed most of the problems I saw.
DOCUMENTS
Get text from
Dictionary Value
SCRIPTING
If
Text
does not contain
"Post hint": "image"
NETWORK
Get contents of
https://www.reddit.com/r/
Subreddit
/hot/.json?limit=50
Options Under Construction
SCRIPTING
Get dictionary from
Contents of URL
SCRIPTING
Get
Value
for
data.children
in
Dictionary
VARIABLES
Set variable
Children
to
Dictionary Value
Otherwise
End If
SCRIPTING
Get dictionary from
Children
SCRIPTING
Get
First Item
from
Dictionary
SCRIPTING
Get
Value
for
data.ups
in
Item from List
SCRIPTING
Repeat with each item in
Dictionary
SCRIPTING
Get
Value
for
data.post_hint
in
Repeat Item
DOCUMENTS
Get text from
Dictionary Value
SCRIPTING
If
Text
is
image
VARIABLES
Add
Repeat Item
to
Images
Otherwise
End If
End Repeat
COMMENT
Let’s grab the up-votes for the top post, in case we want to use it in the snarky comments section, and to make sure we don’t have the top vote getter.
SCRIPTING
Get
First Item
from
Images
SCRIPTING
Get
Value
for
data.ups
in
Item from List
NUMBER
SCRIPTING
Get
Item At Index
2
from
Images
VARIABLES
Set variable
BestPost
to
Item from List
Otherwise
SCRIPTING
Get
First Item
from
Images
VARIABLES
Set variable
BestPost
to
Item from List
End If
SCRIPTING
Get
Value
for
data.ups
in
BestPost
MATHS
Options Under Construction
NOTHING
Nothing
COMMENT
Grab the url of the image, and pull it down.
SCRIPTING
Get
Value
for
data.url_overridden_by_dest
in
BestPost
NETWORK
Get contents of
Dictionary Value
Options Under Construction
VARIABLES
Set variable
Images
to
Contents of URL
VARIABLES
Set variable
BackgroundImage
to
Images
NOTHING
Nothing
COMMENT
Check which modifications were requested, and do them. The text items are gathered together so that they line up.
SCRIPTING
Get
Value
for
AddSubreddit
in
Script Settings
DOCUMENTS
Get text from
Dictionary Value
SCRIPTING
If
Text
is
Yes
VARIABLES
Add
Text
to
OverlayText
Otherwise
End If
SCRIPTING
Get
Value
for
AddTitle
in
Script Settings
DOCUMENTS
Get text from
Dictionary Value
SCRIPTING
If
Text
is
Yes
SCRIPTING
Get
Value
for
data.title
in
BestPost
DOCUMENTS
Get text from
Dictionary Value
TEXT
Title:
Text
VARIABLES
Add
Text
to
OverlayText
Otherwise

Showcuts

Magic Vars

Screenshot

Submitted Anonymously 2 years ago

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

0

45 more actions