ShareShortcuts
Fork “DTikTok”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so uitx301 gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
119K
Saved
8
Actions
37
Category
Photos and videos
Version
1.0
Language
EN

Preview

DTikTok يتيح لك تحميل TikToks بدون علامة مائية مباشرة من ورقة حصتك بدون تثبيت أي برنامج إضافي.

What's New

Version 1.0

First release

Version History
1.0 May 18, 2021

First release

What it does

37 actions
  1. Comment
    DTikTok — 3.0.8 Made by user/heismauri on RoutineHub Get it on RoutineHub routinehub.co/shortcut/5870
  2. Dictionary
  3. URL
    data:text/html,<script> let xhr = new XMLHttpRequest() xhr.open('GET', 'https://routinehub.co/api/v1/shortcuts/…/versions/latest', false) xhr.send() document.write(xhr.responseText) </script>
  4. Get Text from Input
  5. If
  6. Get Dictionary Value
  7. If
  8. Text
  9. Choose from Menu
    …
  10. Choose from Menu
    Update now
  11. URL
    https://routinehub.co/download/…
  12. Open URLs
  13. Stop This Shortcut
  14. If
  15. Get Variable
  16. If
  17. Get Clipboard
  18. If
  19. Ask for Input
    TikTok URL
  20. If
  21. Get Contents of URL
    …
  22. If
  23. Show Notification
    Error - This TikTok cannot be downloaded
  24. If
  25. Get URLs from Input
  26. Match Text
  27. Get Contents of URL
    …
  28. Save to Photo Album
  29. Show Notification
    Media saved to your gallery
  30. If
  31. Show Notification
    URL not supported
  32. Get Latest Photos
  33. Get Details of Images
  34. Get Images from Input
  35. Convert Image
  36. Make Archive
  37. Send Email

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#include 'actions/web'
#include 'actions/text'
#define color red
#define glyph filmstrip

/*
DTikTok — 3.0.8
Made by user/heismauri on RoutineHub

Get it on RoutineHub
routinehub.co/shortcut/5870
*/
const Main = {
	"dtiktok": {
		"api": "https://snaptik.app/action.php",
		"token": "383111043052"
	},
	"id": 5870,
	"name": "DTikTok",
	"version": "3.0.8"
}
const URL = url("data:text/html,<script>\nlet xhr = new XMLHttpRequest()\nxhr.open('GET', 'https://routinehub.co/api/v1/shortcuts/{Main['id']}/versions/latest', false)\nxhr.send()\ndocument.write(xhr.responseText)\n</script>")
const Response = getText(URL)

if Response {
	const latestversion = getValue(Response, "Version")
	if latestversion != Main['version'] {
		const UpdatePrompt = "An update is available for \\"{Main['name']}\\"\n\nRelease notes: \n{Response['Notes']}\n\n{Main['version']} → {Response['Version']}"
		menu UpdatePrompt {
		item "Update now":
			const URL1 = url("https://routinehub.co/download/{Response['id']}")
			openURL(URL1)
			stop()
		}
	}
}

if ShortcutInput {
	// TODO: Get Variable not supported: Assign variable here to 'ShortcutInput'.
} else {
	getClipboard()
	if  !contains "tiktok.com" {
		prompt("TikTok URL", "URL")
	}
}

if InputURL contains "tiktok.com" {
	const ContentsOfURL = formRequest(Main['dtiktok.api'], "POST", {
		"token": "{Main['dtiktok.token']}",
		"url": "{InputURL}"
	}, {})
	if ContentsOfURL contains "error" {
		showNotification("Error - This TikTok cannot be downloaded", Main['name'])
	} else {
		getURLs(ContentsOfURL)
		containsText(, ".*tiktok.*")
		const ContentsOfURL1 = downloadURL(, {
			"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0 Safari/605.1.15"
		})
		const SavedPhotoMedia = savePhoto(ContentsOfURL1)
		showNotification("Media saved to your gallery", Main['name'], SavedPhotoMedia)
	}
} else {
	showNotification("URL not supported", Main['name'])
	const  = getLatestPhotos(170)
	getImageDetail(, "")
	const 1 = getImages()
	const 2 = convertImage(1, "", 0, false)
	makeArchive(2)
	sendEmail(, "", "❔❔", false)
}
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

More by uitx301

See All

You Might Also Like

See All
Advertisement