ShareShortcuts

ReadComicOnline

Created by request

wopson
Fork “ReadComicOnline”

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 wopson 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
53K
Saved
2
Actions
47
Category
Utilities
Version
1.1
Language
EN

Created by request.

Download/view comics from readcomiconline.to

What's New

Version 1.1

Added option to save comic as CBZ.

Version History
1.1 Mar 15, 2021

Added option to save comic as CBZ.

1.0 Mar 14, 2021

First release

What it does

47 actions
  1. Text
  2. Ask for Input
    Comic Name?
  3. Text
  4. URL
    https://readcomiconline.to/Search/SearchSuggest
  5. Get Contents of URL
    …
  6. Make HTML from Rich Text
  7. Replace Text
  8. Replace Text
  9. Replace Text
  10. Split Text
  11. Repeat with Each
  12. Split Text
  13. Get Item from List
  14. Get Item from List
  15. Set Name
  16. Add to Variable
  17. Choose from List
  18. Set Variable
    ComicName
  19. Get Contents of URL
    …
  20. Make HTML from Rich Text
  21. Base64 Encode
  22. Text
  23. URL
    data:text/html,…
  24. Get Contents of Web Page
  25. Split Text
  26. Repeat with Each
  27. Split Text
  28. Get Item from List
  29. Get Item from List
  30. Set Name
  31. Add to Variable
  32. Choose from List
  33. Set Variable
    IssueName
  34. Get Contents of URL
    …
  35. Make HTML from Rich Text
  36. Match Text
  37. Replace Text
  38. Get Contents of URL
    …
  39. Choose from Menu
    Save as
  40. Choose from Menu
    PDF
  41. Make PDF
  42. Set Name
  43. Quick Look
  44. Choose from Menu
    CBZ
  45. Make Archive
  46. Set Name
  47. Quick Look

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'
#define color red
#define glyph openBook

prompt("Comic Name?")
url("https://readcomiconline.to/Search/SearchSuggest")
const ContentsOfURL = formRequest(, "POST", {
	"keyword": "{}",
	"type": "Comic"
})
makeHTML(ContentsOfURL)
replaceText("<a href=\"", "")
replaceText("\">", "•")
const UpdatedText = replaceText("</a>")
const SplitText = splitText(UpdatedText)

for _ in SplitText {
	const SplitText1 = splitText(@RepeatItem, "•")
	getListItem(SplitText1, 0)
	const ItemFromList = getFirstItem(SplitText1)
	setName(ItemFromList)
	@ComicList
}
chooseFromList(@ComicList)
@ComicName = ['Name']
const ContentsOfURL1 = downloadURL()
const HTMLFromRichText = makeHTML(ContentsOfURL1)
base64Encode(HTMLFromRichText)
url("data:text/html,{}")
const ContentsOfWebPage = getWebpageContents()
const SplitText2 = splitText(ContentsOfWebPage)

for _ in SplitText2 {
	const SplitText3 = splitText(@RepeatItem, ">")
	getListItem(SplitText3, 0)
	const ItemFromList1 = getListItem(SplitText3, 0)
	setName(ItemFromList1)
	@IssueList
}
chooseFromList(@IssueList)
@IssueName = ['Name']
const ContentsOfURL2 = downloadURL()
makeHTML(ContentsOfURL2)
containsText(, "lstImages.push\(\"([^\"]*)")
replaceText("lstImages.push(\"", "")
const ContentsOfURL3 = downloadURL()

menu "Save as" {
item "PDF":
	const PDF = makePDF(ContentsOfURL3)
	const RenamedItem = setName(PDF, "{@ComicName} - {@IssueName}")
	quicklook(RenamedItem)
item "CBZ":
	const Archive = makeArchive(ContentsOfURL3, "")
	const RenamedItem1 = setName(Archive, "{@ComicName} - {@IssueName}.cbz")
	quicklook(RenamedItem1)
}
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 wopson

See All

You Might Also Like

See All
Advertisement