DTikTok
COMMENT
DTikTok — 4.3.1
Made by github.com/heismauri
Get it on RoutineHub
routinehub.co/shortcut/5870
DICTIONARY

Dictionary
NETWORK
Get contents of
https://shortcuts.heismauri.com/api/
id
/latest.json
Options Under Construction

Contents of URL
SCRIPTING
Get
Value
for
version
in
Contents of URL

Dictionary Value
SCRIPTING
If
latestversion
is not
version
TEXT
An update is available for "
Contents of URL
"
Release notes:
version
name
→
latestversion

Text
SCRIPTING
Choose from Menu

Menu Result
SCRIPTING
Update now

Menu Result
SAFARI
Open
Contents of URL
SCRIPTING
Exit shortcut with
Result
SCRIPTING
Not now

Menu Result
SCRIPTING
End Menu

Menu Result
SCRIPTING
End If

If Result
VARIABLES
Set variable
URL
to
Shortcut Input
TEXT
Match
www\.tiktok\.com\/t\/|v[mt]\.tiktok\.com
in
URL

Matches
SCRIPTING
If
Matches
has any value
WEB
Expand
URL

Expanded URL
VARIABLES
Set variable
URL
to
Expanded URL
SCRIPTING
End If

If Result
TEXT
Match
https:\/\/www\.tiktok\.com\/@[^\/]+\/video\/\d+
in
URL

Matches
SCRIPTING
If
URL Validator
has any value
NETWORK
Get contents of
dtiktok.api
Options Under Construction

Contents of URL
SCRIPTING
If
Contents of URL
contains
error
NOTIFICATIONS
Show notification
Input
Options Under Construction
SCRIPTING
Otherwise
SCRIPTING
Repeat with each item in
Contents of URL

Repeat Results
NETWORK
Get contents of
Repeat Item
Options Under Construction

Contents of URL
SCRIPTING
End Repeat

Repeat Results
PHOTOS
Save
Repeat Results
to
Recents

Saved Photo Media
NOTIFICATIONS
Show notification
Saved Photo Media
Options Under Construction
SCRIPTING
End If

If Result
SCRIPTING
Otherwise
NOTIFICATIONS
Show notification
Input
Options Under Construction
SCRIPTING
End If

If Result
MATHS
Random number between
and
3

Random Number
SCRIPTING
If
Random Number
is
0
SCRIPTING
Choose from Menu

Menu Result
SCRIPTING
Donate

Menu Result
SAFARI
Open
https://ko-fi.com/heismauri
SCRIPTING
Not now

Menu Result
SCRIPTING
End Menu

Menu Result
SCRIPTING
End If

If Result
Showcuts