Scan med din iPhone for at installere
Download manga from Mangakakalot.
Features:
- Ability to search
- Ability to download multiple chapters
- Ability to visit the recent manga you've seen
- Ability to make your most recent search
- Ability to clear your manga history (recent search/manga)
- Ability to choose the default app
Nyheder
Version 1.3
Default App Questions added
Hvad den gør
257 handlinger-
CommentMade with love /u/wet250 ( ͡° ͜ʖ ͡°)
-
If
-
Set VariablePassthrough
-
If
-
List
-
Set VariableList
-
Get File
-
If
-
Get Text from Input
-
Match Text
-
Set VariableManga&URL
-
Get Item from List
-
Replace Text
-
Text
-
Add to Variable
-
If
-
Create Folder
-
Get File
-
If
-
Get Text from Input
-
Replace Text
-
Text
-
Add to Variable
-
Text
-
Add to Variable
-
If
-
Choose from List
-
If
-
Ask for InputWhich manga?
-
Save File
-
Replace Text
-
Set VariableSearchTerms
-
URLhttps://mangakakalot.com/search/story/…
-
If
-
If
-
Get Item from List
-
Get URLs from Input
-
Replace Text
-
Run ShortcutMangaDown
-
Stop This Shortcut
-
If
-
If
-
Delete Files
-
Delete Files
-
Stop This Shortcut
-
If
-
URLhttps://mangakakalot.com/search/story/…
-
Run ShortcutMangaDown
-
Stop This Shortcut
-
CommentIf If result contains https://mangakakalot.com/manga or https://mangakakalot.com/read
-
Match Text
-
Count
-
If
-
Get File
-
Match Text
-
Set VariableLastMangaTemp
-
Get Item from List
-
Replace Text
-
Replace Text
-
Set VariableChosenManga
-
Get Item from List
-
Set VariableMangaURL
-
If
-
Get Contents of URL…
-
Make HTML from Rich Text
-
Match Text
-
Set VariableCheckPage
-
Match Text
-
Replace Text
-
Get Item from List
-
Set VariableTempSearchTerm
-
Replace Text
-
Set VariableSearchPage
-
Replace Text
-
Replace Text
-
Match Text
-
Get Group from Matched Text
-
Replace Text
-
Set VariableLatestChapter
-
Count
-
If
-
If
-
Show Result
-
Nothing
-
Run ShortcutMangaDown
-
Stop This Shortcut
-
Match Text
-
Set VariableGroupedResults
-
Get Group from Matched Text
-
Set VariableNameResults
-
Get Group from Matched Text
-
Set VariableImageResults
-
Get URLs from Input
-
Get Contents of URL…
-
Repeat with Each
-
Resize Image
-
Base64 Encode
-
Count
-
Calculate
-
If
-
Get Item from List
-
If
-
Text
-
Set VariableSetLatest
-
Get Item from List
-
Text
-
Set VariableVcardList
-
Get Variable
-
If
-
Match Text
-
Count
-
If
-
Get URLs from Input
-
Set VariableNext
-
Text
-
Add to Variable
-
If
-
Match Text
-
Count
-
If
-
Get URLs from Input
-
Set VariablePrevious
-
Text
-
Add to Variable
-
If
-
Text
-
Add to Variable
-
If
-
Combine Text
-
Set Name
-
Match Text
-
Get Group from Matched Text
-
Set VariableCurrent
-
Set VariableDisplayCurrent
-
Count
-
If
-
Number
-
Set VariableDisplayCurrent
-
If
-
Match Text
-
Match Text
-
Count
-
If
-
Number
-
Set VariableLastPageNum
-
If
-
Set VariableLastPageNum
-
CommentBelow action chooses the from list of manga
-
Choose from List
-
Get Details of Contacts
-
Set VariableName
-
If
-
Run ShortcutMangaDown
-
Stop This Shortcut
-
If
-
If
-
Run ShortcutMangaDown
-
Stop This Shortcut
-
If
-
If
-
Match Text
-
Match Text
-
Ask for InputPages 1-…
-
If
-
Show Result
-
URLhttps://mangakakalot.com/search/story/…?page=…
-
Run ShortcutMangaDown
-
Stop This Shortcut
-
If
-
If
-
Show Result
-
URLhttps://mangakakalot.com/search/story/…
-
Run ShortcutMangaDown
-
Stop This Shortcut
-
If
-
URLhttps://mangakakalot.com/search/story/…?page=…
-
Run ShortcutMangaDown
-
Stop This Shortcut
-
If
-
Replace Text
-
Replace Text
-
Set VariableChosenManga
-
Replace Text
-
Set VariableNon-EscapedMangaName
-
Match Text
-
Get URLs from Input
-
Get Item from List
-
Set VariableMangaURL
-
Text
-
Save File
-
Get URLs from Input
-
Get Contents of URL…
-
Make HTML from Rich Text
-
Wait
-
Match Text
-
Set VariableChapterPage
-
CommentBelow regex could be improved Crashes for manga with 100s of chapters UPDATE: Uses JavaScript to get chapters instead of shortcut actions
-
Base64 Encode
-
Text
-
URLdata:text/html,…
Vis som kode
Alle genvejens handlinger skrevet ud i Cherri, et programmeringssprog til genveje. Perfekt til at lære, hvordan den virker.
#include 'actions/web'
#include 'actions/text'
#define color orange
#define glyph openBook
/*
Made with love /u/wet250
( ͡° ͜ʖ ͡°)
*/
if ShortcutInput contains ShortcutInput {
@Passthrough = ShortcutInput
} else {
list("New Search")
@List
const File = getFileFromFolder(, "MangaDown/LastMangaRead.txt", false)
if File contains File {
getText(File)
containsText(, "(.*)\n")
@MangaURL
getListItems(@MangaURL, 0, 0)
replaceText("\n", "", true)
@List += "Recent Manga ({})"
} else {
createFolder("MangaDown")
}
const File1 = getFile("MangaDown/LastSearch.txt", false)
if File1 contains File1 {
getText(File1)
replaceText(" ", "_")
@List += "Recent Search ({})"
@List += "Clear History"
} else {
}
const SelectedItem = chooseFromList(@List)
if SelectedItem == "New Search" {
const AskForInput = prompt("Which manga?")
saveFile("MangaDown/LastSearch.txt", AskForInput, true)
replaceText("\s", "_", AskForInput, true)
@SearchTerms
url("https://mangakakalot.com/search/story/{@SearchTerms}")
} else {
if SelectedItem contains "Recent Manga" {
getRandomItem(@MangaURL)
getURLs()
const UpdatedText = replaceText("manganelo", "mangakakalot")
const ShortcutResult = run("MangaDown", UpdatedText)
stop()
} else {
if SelectedItem contains "Clear History" {
deleteFiles(File)
deleteFiles(File1)
stop()
} else {
const URL = url("https://mangakakalot.com/search/story/{}")
const ShortcutResult1 = run("MangaDown", URL)
stop()
}
}
}
}
// If If result contains https://mangakakalot.com/manga or https://mangakakalot.com/read
const Matches = containsText(@Passthrough, "https://mangakakalot.com/(read|manga)")
const Count = count(Matches)
if Count == 1 {
getFile("MangaDown/LastMangaRead.txt")
containsText(, "(.*)\n")
@LastMangaTemp
getListItems(@LastMangaTemp, 0, 0)
replaceText("\s$", "", true)
replaceText("^ ", "", true)
@ChosenManga
getListItems(@LastMangaTemp, 0, 0)
@MangaURL
} else {
const ContentsOfURL = formRequest(, "GET", {
"searchword": "{@SearchTerms}"
}, {})
makeHTML(ContentsOfURL)
containsText(, "<div class=\"panel_story_list\">(.*\n)*")
@CheckPage
containsText(@CheckPage, "https://mangakakalot.com/search/([^\?]*)")
const UpdatedText1 = replaceText("https://mangakakalot.com/search/story/", "")
getLastItem(UpdatedText1)
@TempSearchTerm
replaceText("<div style=\"clear: both\">(.*\n)*", "", @CheckPage, true)
@SearchPage
replaceText("</em>\n\s?<em class=\"story_chapter\">\n<a href=\".*\n.*", "", @SearchPage, true)
replaceText("</em>\n\s?<em class=\"story_chapter\">\n<a rel=\"nofollow\" href=\".*\n.*", "", true)
const Matches1 = containsText(, "<em class=\"story_chapter\">\n.*?<a.*\n(.*)")
getMatchGroup(Matches1, 0)
replaceText(" </a>", "")
@LatestChapter
const Count1 = count(@LatestChapter, "Items")
if Count1 > 0 {
} else {
show("No results found for \"{@SearchTerms}\"!")
nothing()
const ShortcutResult2 = run("MangaDown", nil)
stop()
}
containsText(@SearchPage, "<img src=\"([^\"]*)\" alt=\"([^\"]*)")
@GroupedResults
getMatchGroup(@GroupedResults, 2)
@NameResults
getMatchGroup(@GroupedResults, 0)
@ImageResults
getURLs(@ImageResults)
const ContentsOfURL1 = downloadURL()
for _ in ContentsOfURL1 {
const ResizedImage = resizeImage(@RepeatItem, 132, 132)
base64Encode(ResizedImage)
const Count2 = count(@LatestChapter, "Items")
const CalculationResult = Count2 + 1
if @RepeatIndex < CalculationResult {
getListItem(@LatestChapter, @RepeatIndex)
} else {
}
@SetLatest = "N/A"
getListItem(@NameResults, @RepeatIndex)
}
@VcardList = "BEGIN:VCARD\rVERSION:3.0\rN;CHARSET=utf-8:{};;;;\rORG:Latest: {@SetLatest};\rPHOTO;ENCODING=b:{}\rEND:VCARD"
// TODO: Get Variable not supported: Assign variable here to '@CheckPage'.
if @CheckPage contains "group_page" {
const Matches2 = containsText(@CheckPage, "<a class=\"page_select\">\d+</a><a href=\"([^\"]*)\">")
const Count3 = count(Matches2, "Items")
if Count3 > 0 {
getURLs(Matches2)
@Next
@VcardList += "BEGIN:VCARD\rVERSION:3.0\rN;CHARSET=utf-8:➡️ Next Page;;;;\rEND:VCARD"
} else {
}
const Matches3 = containsText(@CheckPage, "<a href=\"([^\"]*)\">\d+</a><a class=\"page_select\">")
const Count4 = count(Matches3, "Items")
if Count4 > 0 {
getURLs(Matches3)
@Previous
@VcardList += "BEGIN:VCARD\rVERSION:3.0\rN;CHARSET=utf-8:⬅️ Previous Page;;;;\rEND:VCARD"
} else {
}
@VcardList += "BEGIN:VCARD\rVERSION:3.0\rN;CHARSET=utf-8:📄 Enter Page Number;;;;\rEND:VCARD"
} else {
}
const CombinedText = joinText(@VcardList, "
")
const SetName = setName(CombinedText, "Results.vcf")
const Matches4 = containsText(@CheckPage, "<a class=\"page_select\">(\d+)<")
getMatchGroup(Matches4, 0)
@Current
@DisplayCurrent = @Current
const Count5 = count(@DisplayCurrent, "Items")
if Count5 < 1 {
@DisplayCurrent = 1
} else {
}
containsText(@CheckPage, "Last\(\d+\)")
const Matches5 = containsText(, "\d+")
const Count6 = count(Matches5)
if Count6 == 0 {
@LastPageNum = 1
} else {
@LastPageNum = Matches5
}
// Below action chooses the from list of manga
const SelectedItem1 = chooseFromList(SetName, "Search Results (Page #: {@DisplayCurrent} of {@LastPageNum}) ")
const Name = getContactDetail(SelectedItem1, "Name")
@Name = Name
if Name == "➡️ Next Page" {
const ShortcutResult3 = run("MangaDown", @Next)
stop()
} else {
if Name == "⬅️ Previous Page" {
const ShortcutResult4 = run("MangaDown", @Previous)
stop()
} else {
if Name == "📄 Enter Page Number" {
containsText(@CheckPage, "Last\(\d+\)")
const TextMatches = containsText(, "\d+")
const AskForInput1 = prompt("Pages 1-{TextMatches}", "Number")
if AskForInput1 > TextMatches {
show("Invalid Page Number!")
const URL1 = url("https://mangakakalot.com/search/story/{@TempSearchTerm}?page={@Current}")
const ShortcutResult5 = run("MangaDown", URL1)
stop()
} else {
if AskForInput1 < 1 {
show("Invalid Page Number!")
const URL2 = url("https://mangakakalot.com/search/story/{@SearchTerms}")
const ShortcutResult6 = run("MangaDown", URL2)
stop()
} else {
const URL3 = url("https://mangakakalot.com/search/story/{@TempSearchTerm}?page={AskForInput1}")
const ShortcutResult7 = run("MangaDown", URL3)
stop()
}
}
} else {
}
}
}
replaceText("(", "\(", @Name)
replaceText(")", "\)")
@ChosenManga
replaceText("\", "", @ChosenManga)
@NonEscapedMangaName
containsText(@SearchPage, "<a rel=\"nofollow\" href=\"https://(mangakakalot|manganelo).com/([^\"]*)\">\n<img src=\"https://([^\"]*)\" alt=\"{@ChosenManga}\"")
const URLs = getURLs()
getFirstItem(URLs)
@MangaURL
const Text = "{@MangaURL}\n{@NonEscapedMangaName}\n"
saveFile("MangaDown/LastMangaRead.txt", Text, true)
}
getURLs(@MangaURL)
const ContentsOfURL2 = downloadURL()
makeHTML(ContentsOfURL2)
wait(0)
containsText(, "(<div class=\"chapter-list\">|<div class=\"panel-story-chapter-list\">)(.*\n)*(<div class=\"comment-info\">|<div class=\"panel-story-comment panel-fb-comment a-h\">)")
@ChapterPage
/*
Below regex could be improved
Crashes for manga with 100s of chapters
UPDATE: Uses JavaScript to get chapters instead of shortcut actions
*/
base64Encode(@ChapterPage)
url("data:text/html,{}")
getWebpageContents()
const UpdatedText2 = replaceText("\s*\|\s*$", "", true)
splitText(UpdatedText2, "|")
@Chapters
count(@Chapters, "Items")
wait(0)
const ChosenItem = chooseFromList(@Chapters, "{} Chapters ", true)
for _ in ChosenItem {
replaceText("(", "\(", @RepeatItem)
replaceText(")", "\)")
replaceText("[", "\[")
replaceText("]", "\]")
@ChosenChapter
nothing()
showNotification("Downloading...", "{@ChosenManga} - {@ChosenChapter}")
const ScreenWidth = getDeviceDetail("Screen Width")
@Width = ScreenWidth * 2
containsText(@ChapterPage, "<a( rel=\"nofollow\" class=\"chapter-name text-nowrap\" |\s)?href=\"https://(mangakakalot|manganelo).com/chapter/([^\"]*)\"( title=\"[^\"]*\" |\s)?title=\"([^\"]*)\">{@ChosenChapter}<")
getURLs()
const ContentsOfURL3 = downloadURL()
// Get content may return a 404
makeHTML(ContentsOfURL3)
containsText(, "(<div class=\"container-chapter-reader\">|<div class=\"vung-doc\" id=\"vungdoc\">).*\n.*")
containsText(, "<img src=\"([^\"]*)")
replaceText("<img src=\"", "")
getURLs()
const ContentsOfURL4 = downloadURL(, {
"Referer": "https://manganelo.com/"
})
// Action above downloads images of the chapter. Another thing to consider is that I had to add a Referer header to “https://manganelo.com/“ or image links would direct me to an error 1040 page, preventing image download.
for _ in ContentsOfURL4 {
const Width = getImageDetail(@RepeatItem2, "Width")
if Width > @Width {
resizeImage(@RepeatItem2, @Width)
@Images
} else {
@Images = @RepeatItem2
}
}
const PDF = makePDF(@Images)
setName(PDF, "{@ChosenManga} - {@ChosenChapter}")
@MangaChapters
@Images = "nil"
}
menu "What would you like to do?" {
item "Preview Files":
quicklook(@MangaChapters)
menu "Would you like to open all chapters in a single app?" {
item "Yes":
// Change app here
for _ in @MangaChapters {
openFile(@RepeatItem, false)
}
stop()
item "No":
stop()
}
item "Open All Files in a Single App":
for _ in @MangaChapters {
// Change app here
openFile(@RepeatItem, false)
}
stop()
}
Dekompileret med cherri 2.3.0 (GPL-2.0). Kan kræve små rettelser, før den kan kompileres.
Bedømmelser og anmeldelser
Skriv en anmeldelse–
ud af 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Ingen anmeldelser endnu. Vær den første!
Annonce
Mere fra wopson
Du vil måske også kunne lide
Annonce