* Add support to better internationalization with a new lib.
* Add info about `lib-i18n` in the contributing guide.
* Use lib-i18n in M+ as well.
* Change properties files to UTF-8.
* use the assets/ folder instead of the res/ folder
files under assets/ are addressible by name
* mangadex: add string invalid_manga_id
* M+: Add translations for Vietnamese
* m+: Add Vietnamese to list of available languages
* mangadex: remove duplicate declarations
---------
Co-authored-by: Alessandro Jean <14254807+alessandrojean@users.noreply.github.com>
* Update Japscan.kt
I completely changed the way to find the keys allowing the decryption of the base64 which contains the information of the images to be recovered. Before there was a recovery by regex, but this was not reliable because the location of these strings changes places and the order is important because it allows to reconstitute the two decryption keys. To succeed in recovering them correctly and in the right order, I debugged the javascript, which allowed me to understand how obfuscation works.
I understood that the base64 encryption file, the zjs, was not the same file when we had a mobile useragent and a PC useragent, it is however the same key, just that they are placed at different other place
at the end of the file we have the JS which assembles the keys directly as parameters of a function:
a0_0x39cacb('0x13d') + a0_0x39cacb('0x130') + a0_0x39cacb('0x118') + '6N', a0_0x39cacb('0x145') + a0_0x39cacb('0x116') + a0_0x39cacb('0x10f') + 'oe'
we have another function here:
return a0_0x46c1 = function(_0x46c1ab, _0x5a3fac) {
_0x46c1ab = _0x46c1ab - 0x105;
let _0x5c76b5 = _0xd80153[_0x46c1ab];
return _0x5c76b5;
}
which call string array which contains the key chunks
0 : "laretiLesrap"
1 : "gnp.600/sgmi/"
2 : "atad"
3 : "daol"
4 : "8ceABpX"
..
_0x46c1ab = _0x46c1ab - 0x105;
this operation allows to know the shift in the table, for example
By subtracting 0x105 from '0x13d', we get:
317 - 261 = 56
at location 56, so at index 55 of the array we have: "ohcVEMDTYO7FpBA20zRg"
so here: a0_0x39cacb('0x13d') + a0_0x39cacb('0x130') + a0_0x39cacb('0x118') + '6N'
we replace a0_0x39cacb('0x13d')
by this chain
"ohcVEMDTYO7FpBA20zRg" + a0_0x39cacb('0x130') + a0_0x39cacb('0x118') + '6N'
and that gives us the beginning of the key
and then reverse it
and that gives us the right key
* Update build.gradle
Update build version
* Update Japscan.kt - Completely reverse JavaScript
My modification was missing part of the javascript code to reverse, this modification brings greater stability.
In the JS is decrypts the data, there is a table of character string, this table is the most important element of the decryption because it is used in almost all the functions.
What the algorithm does in a nutshell:
- he shuffles the board until he arrives at a precise position, he pushes all the elements backwards until he finds the right combination. The correct combination is determined by the sum of the digits in the character strings with a more or less complex calculation.
- It calls the table in a "hidden" way with a function that takes a hexadecimal as a parameter (which corresponds to the index in the table)
- once all the keys have been retrieved from the character string table, it assembles them, then reverses them to give the complete key
How I proceeded:
- For the correct position in the table I perform almost the same calculation as the JS but I simplify, this to a tiny margin of error. In the calculation in the JS it parses the INTs in the chain and makes calculations with it, to simplify my task I only check if ALL the elements used contain INTs, I did several debug tests and they are obliged to contain them when the position is good. So starting from this principle I would almost certainly fall on the right position.
- Once my array is correctly sorted, I can with a simple calculation managed to recover the requested element with the hexadecimal
- I reverse the keys and I test the two positions of the keys to decipher the base64
* Update Japscan.kt
Added the possibility to have the parseInt in negative
* Update Japscan.kt
Modification needed to take into account the wider possibility of script changes
* Update Japscan.kt - Add comments
Ajout des commentaires
* latisbooks: fix page parsing
Likely from a preprocessor change on the site's end, the element
containing the images had changed.
* latisbooks: fix cover art
The cover art being used for the comic is pulled from the "latest page"
preview on the archive page, which is a square image that tends to not
represent the comic very well. Additionally, recently it has failed to
load properly for whatever reason. As a remedy, I chose page 198 to be
the proper cover. I chose it as it is an interstitial cover page
featuring the main character, with no text or elements that tie it to a
specific arc.
* latisbooks: version bump
* lib-randomua
* NHentai: Random mobile ua
* Madara random UA overhaul
* MangaThemesia random UA overhaul
* MangaHub random UA overhaul
* build errors and warnings
* remove preference from Constellar
* change to singleton object
* network.client
* fix copy paste and chapter deep link
* exit early
* use data class and enum options
* missing import
* suggested changes
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
* re-add empty check to filters
* convert to interceptor
* update comment
Co-authored-by: Alessandro Jean <14254807+alessandrojean@users.noreply.github.com>
* update error message
* initialize client by lazy
* dont check on excluded Filters
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
* newlines
* move preference helper function into lib
* move preference helper function into lib x2
* move check to lib too
* move defaultRandomUserAgentType to constructor
* rename the interceptor
* organize the interceptor and preference stuff in different files
* hide custom ua setting when random ua is enabled
* English
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
* catch specific exception
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
* setVisible()
fresh stuff
* setVisible()
fresh stuff
* change summary
* workaround
* Update error message
Co-authored-by: Alessandro Jean <14254807+alessandrojean@users.noreply.github.com>
* Update comment
Co-authored-by: Alessandro Jean <14254807+alessandrojean@users.noreply.github.com>
---------
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
Co-authored-by: Alessandro Jean <14254807+alessandrojean@users.noreply.github.com>
* Update BacaKomik.kt
change target document.select for fix page not found
* update extVersionCode to 5
* update bacakomik from document.select to document.getElementsByTag with cdnUrl
* Add support to better internationalization with a new lib.
* Add info about `lib-i18n` in the contributing guide.
* Use lib-i18n in M+ as well.
* Change properties files to UTF-8.
* fix RS
Co-authored-by: Henrik <22085664+henrik9999@users.noreply.github.com>
* fake cf turnstile key
* use Beerpsi's algorithm for random key
* bruh
* use imgAttr
---------
Co-authored-by: Henrik <22085664+henrik9999@users.noreply.github.com>
* Add an UserAgent on headersBuilder() to bypass Cloudflare error
* Add choice to set a custom UA
* Update header for imageRequest function
* Fix headers setup + remove function on setupPreferenceScreen
* [Mangadex] Add setting to show alternative titles in manga description
Uses same-language and romanized titles only
* [Mangadex] Bump build.gradle for previous
* Only include romanized version of originalLanguage
* Optimize
* Miskey
* Use BigDecimal.stripTrailingZeros
* Use JsonPrimitive instead Float
* Set token on init
* Remove init due to app don't recognize extension
* Creation/modification of the japanread source which became
bentomanga
I left the name and the image because it's the same source
with a new interface and name (people know japanread)
* rename and udpate lib of the japanread source which became
bentomanga
+
update of build.gradle
* add old id of japanread
* Update src/fr/japanread/build.gradle
Co-authored-by: Alessandro Jean <14254807+alessandrojean@users.noreply.github.com>
* Update src/fr/japanread/build.gradle
Co-authored-by: Alessandro Jean <14254807+alessandrojean@users.noreply.github.com>
* Update src/fr/japanread/src/eu/kanade/tachiyomi/extension/fr/japanread/bentomanga.kt
Co-authored-by: Alessandro Jean <14254807+alessandrojean@users.noreply.github.com>
* Update src/fr/japanread/src/eu/kanade/tachiyomi/extension/fr/japanread/bentomanga.kt
Co-authored-by: Alessandro Jean <14254807+alessandrojean@users.noreply.github.com>
* renaming file to BentoManga
* Attempt to avoid triggering cloudflare
Can make the source slower.
* Attempt to avoid triggering cloudflare
Can make the source slower.
---------
Co-authored-by: Alessandro Jean <14254807+alessandrojean@users.noreply.github.com>
* Fixed ShingekiNoShoujo
Changed url
Fixed the code for the new site
* Changed build.gradle
* Fixed ShingekiNoShoujo
Modified the endpoints and the selectors because they modified the website
* Fixes to the code
* Tachidesk: Implement pagination
* Added pagination to improve performance on large libraries
* Route `popular` functions through `search`
* Avoids significant code duplication
* * Implemented sorting
* Can now sort by title, author/artist, date added, no. of chapters
* Issues with unread chapters and date updated
* Server doesn't seem to return a last updated time
* Server returns unread regardless of local read status
* * Added "All" category
* Added a category that shows all manga across all categories
* Removed "toggle global search" button (now redundant)
* Search now more intuitive as a result
* * Added tag-based filtering
* * Stop using reflection to get the property to sort by
* Comment cleanup
* [RU]Remanga fix sorting tome 10+
* fix detect last exmanga chapter individual branches
* alt selector for alt free servers
* just hidden content
* WebView = 🌎
* Updated Kavita to pass apiKey for image apis as this is required in v0.7.1.33+. Non-breaking change for Stable branch users.
* Updated Kavita to pass apiKey for image apis as this is required in v0.7.1.33+. Non-breaking change for Stable branch users.
* Bumped version number
* Updated the Changelog with changes and corrected a dupe version number
* Crossover-events handle, chapter naming cleanup
* Crossover-events handle, chapter naming cleanup
* Add reading order numbers to all comics events, add a note to the comic description.
* [RU]Remanga optional User-Agent - fix 403 again
* optimization settings
* more
* fix no change // changes state to opposite (no static true > false)
* detect status setting
* full clear
* no one understands what the settings hiding under ⚙ in basic tachi
* 403 can be as 500
* current domain
* description layout
* setting indicate
* change condition setting indicate
* simple solution to bypass captcha that occurs only on the api
* simple solution addition
* precaution more domain
* Hentaidexy: rebuild with new api
* small changes
* image url patch
* bunch of refactoring
* remove from Madara
* lint
* add alternative names
* make some things nullable
* revert some eff7f06 changes
still keeping the cookiestuff
* Update build.gradle
* remove commented out code
* Revert indentation changes. and readd back comma
* [RU]Remanga native exclude_bookmarks
* string
* popularMangaRequest and latestUpdatesRequest
* no empty manga
* priority to the main source
* fix unnecessary requests
* User-Agent Tachiyomi
* update User-Agent
* IOException
* saved no successful url
* notification about the obsolescence of the list of chapters
* no redirect
* [RU]Remanga alt free img server
* right injecting
* minFix
* fix header load
* LimitHost
* authorization breaks exManga
* separation of paid and ex manga chapters + crutch for search rus chapters
* do not disrupt the operation of the main source
* alt domain exmanga
* fix bookmarks
* callback request for update outside the library
* no need fixLink
* exremanga icon
* notify - no hide chapters
* notify long
* fix mangaID
* low ping low stress
* getChapterUrl
* notify of non-availability
* Fix
* Use body.string()
Co-authored-by: Alessandro Jean <14254807+alessandrojean@users.noreply.github.com>
* Use data() instead html()
Co-authored-by: Alessandro Jean <14254807+alessandrojean@users.noreply.github.com>
* Use selectFirst()
* Migrate MhwLatino to Madara
* Add ID
* Remove ID xd
---------
Co-authored-by: Alessandro Jean <14254807+alessandrojean@users.noreply.github.com>
* Tachidesk (Suwayomi): Implement search
* Update extVersionCode
* Tachidesk: Move search logic
* Move retrieval and filtering from searchMangaRequest to searchMangaParse
* Remove fetchSearchManga override
* Tachidesk: Implement PR suggestions
* Import and use proper json encode method for search results
* Removed redundant gzip handling
* Moved query from header to fragment
* Switched to extension-lib GET instead of Request.Builder
* Improved and reduced null/empty checks
* Tachidesk: Toggle global search
* Adds an option to search only the current category
* Default behaviour is to search whole catalog
* Switched from URL fragment to query params for search info embed
* Minor cleanup
* Tachidesk: Clean up
* Removed redundant code path in `searchMangaRequest`
* Moved search/filter stuff to the "Filters & Search" section
* Creation/modification of the japanread source which became
bentomanga
I left the name and the image because it's the same source
with a new interface and name (people know japanread)
* rename and udpate lib of the japanread source which became
bentomanga
+
update of build.gradle
* add old id of japanread
* Update src/fr/japanread/build.gradle
Co-authored-by: Alessandro Jean <14254807+alessandrojean@users.noreply.github.com>
* Update src/fr/japanread/build.gradle
Co-authored-by: Alessandro Jean <14254807+alessandrojean@users.noreply.github.com>
* Update src/fr/japanread/src/eu/kanade/tachiyomi/extension/fr/japanread/bentomanga.kt
Co-authored-by: Alessandro Jean <14254807+alessandrojean@users.noreply.github.com>
* Update src/fr/japanread/src/eu/kanade/tachiyomi/extension/fr/japanread/bentomanga.kt
Co-authored-by: Alessandro Jean <14254807+alessandrojean@users.noreply.github.com>
* renaming file to BentoManga
---------
Co-authored-by: Alessandro Jean <14254807+alessandrojean@users.noreply.github.com>
* 1.Add rate limit 2. Add filter search all 3. Add page filters author, 4. Add search elements so that when using search filters and search ids do not show thumbnails and name 5. Update version ext
* Update PageListparse
* Code formating
* Remove brackets
Co-authored-by: beerpsi <92439990+beerpiss@users.noreply.github.com>
Co-authored-by: beerpsi <92439990+beerpiss@users.noreply.github.com>
Co-authored-by: Carlos <2092019+CarlosEsco@users.noreply.github.com>
* [BlogTruyen] Clean title from chapter name, add manga metadata to description
* add intent processing for author and team
* add uploader
* only accept what we can process
* undelete url activity
* [Japscan] Rate limit
* idk
* handle cloudflare shenanigans leading to not finding zjs strings
* translate exceptions
* add number of lookup strings found
* Mangaku rewrite
* fix: trim chapter names that start with -
* replace android.net.Uri.decode with something simpler
* small fixes + found culprit of lag
* fix: decryption not taking 20 seconds anymore
* use different hyphen character
* in case they start changing around stuff now that tachi got their nose
* BlogTruyen rewrite
- feat: Added URL intent filter
- feat: count chapter views
- fix: use the `title` attr to prevent stuff like "One Piece chap 1020"
in the title
- fix: multi-paragraph descriptions are processed properly
* move to ajax endpoint for latest updates
* script.html() -> script.data()
* tweak fetching images from script
* fix: return original response if cannot parse as ErrorResponseDto
* fix: make YuriNekoUrlActivity not die from lack of kotlin
* fix: add trailing slash to referer
* accept suggestion
Co-authored-by: stevenyomi <95685115+stevenyomi@users.noreply.github.com>
Co-authored-by: stevenyomi <95685115+stevenyomi@users.noreply.github.com>
* unyeet MangaFox
* change string concat to template strings
* I SPENT ONE MORNING FOR NOTHING BECAUSE I FORGOT THEY HAD A MOBILE PAGE
* remove trailing slash from mobile url
* simplify pagelistrequest
* chore: remove dependency on :lib-unpacker
* Update issue_moderator.yml
* Update MangaFox.kt
* update genres
Co-authored-by: Carlos <2092019+CarlosEsco@users.noreply.github.com>
* unyeet
* make regex lazy
* what was that
* remove from autocloser and removed_sources.md
* add filters
* suggestions
* chore: bump version code
* more selectFirsts
* QManga
* move to ParsedHttpSource
* chore: format androidmanifest
* I DIDN'T REALIZE THEY WERE TABS 😭
* more shenanigans
* Update AndroidManifest.xml
* move TextInterceptor to `lib`
to be used for author notes, image alt texts and what not
* refactor Tapastic to use `lib:extensions-lib`
* Refactor Webtoons to use `:lib-textinterceptor`
this turned out to be more complicated than I thought it'd be
TextInterceptor was used for Author Notes which, looking at previous messages,
was only intended to be added to Webtoons Source and not the entire webtoons
multisrc (i.e. WebtoonsTranslate and DongmanManhua don't seem to be making use
of the Show Author's Notes setting). This was in my favor, since having
to deal with additional.gradle to add dependencies to multisrc files doesn't
seem to work... I'll ask previous contributors just in case
* Fix `json` access
missed this while copying over code from `generated-src` to `multisrc/{overrides,src}`
* remove unused import
* make HOST name more clear
couldve used a better schema but that's something for some other time
also put the HOST in the lib itself so that one doesn't lose track of it in the extensions
* use android provided methods instead of hardcoding
based on https://github.com/tachiyomiorg/tachiyomi-extensions/pull/13859/files#r996276738
that suggested the following SO answer: https://github.com/tachiyomiorg/tachiyomi-extensions/pull/13859/files
* remove unused import
* move url generation to helper function
* fix error
oops sorry for that
happened when I was copy pasting back and forth between two sources and one generated source
Co-authored-by: Navaneeth M Nambiar <nmnambiar@hornbill>
* Updated ComickFun API URL
Addresses #14788 . Does not yet implement the slug and hid changes
* Filters out null urls from the API
Fixes#14786
* Bumped version
* Updated to new API search and hid
Will need to be re-visited to change the internal url stored by tachiyomi to use the hid instead of slugs once ext-lib 1.4 is released.
* Reverted a bug in fetchMangaDetails
* Updated to use kotlinx.serialization
* Renamed the slug fetching method
* new multisrc theme: A3MangaTheme
* move NgonPhong into A3MangaTheme
* fix: ignore scanlation groups from search result
* chore: fix lint issues
* rename A3MangaTheme to A3Manga, resolve a bunch of suggestions
* fix: remove references of theme in the configuration
* fix: change the activity name in manifest
* fix: final newline
* chore: remove gradle file (not used)
* fix: rename ngonphong icons
* chore: add ocumeo icons
* LXHentai
* fix: wrong sort state for latestUpdatesRequest
* fix: manga description selector
* remove random newline
* Revert "remove random newline"
This reverts commit b1f0202aea80b37f524944b8dad8be5d78602235.
* Update LxHentai.kt
* New source: Cứu Truyện
* chore: add more background info on `coordinates`
* Add UrlActivity
* more documentation on cuudrm_bg shenanigans
* fix: close evaluation contexts to prevent memory leak
* that wasnt needed
most data in dex should be more stable than when this code was written
this is also how their Front-end does it
next refactor will be when the alt-title/title rework
* LANraragi: 0.8.8 support
Basic fix for API key change while supporting pre-0.8.8. In the future this could be done with the Archive model.
Remove irrelevant draw key.
* LANraragi: Improve var usage
* LANraragi: Consolidate New Only's default value
* LANraragi: Encode the API Key once
* LANraragi: Refactor checkbox + Clear New toggle
Previous behavior was always clear. Now it can be toggled.
* Revert "LANraragi: Encode the API Key once"
This reverts commit 17128421cf7754cffd143a80cebbdf48281112d7.
* LANraragi: Redundant comment