MangaHub: Patch extension (#15403)

* fix: patch manga hub extension

* chore: future-proof removal of nofollow
This commit is contained in:
Scyu_ 2023-02-19 17:02:02 +00:00 committed by GitHub
parent e6f26da39d
commit 9448b2afe8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -213,7 +213,7 @@ abstract class MangaHub(
private fun chapterFromElement(element: Element, head: Element): SChapter {
val chapter = SChapter.create()
val potentialLinks = element.select("a[href*='$baseUrl/chapter/']:not([rel=nofollow])")
val potentialLinks = element.select("a[href*='$baseUrl/chapter/']:not([rel*=nofollow]):not([rel*=noreferrer])")
var visibleLink = ""
potentialLinks.forEach { a ->
val className = a.className()

View File

@ -9,7 +9,7 @@ class MangaHubGenerator : ThemeSourceGenerator {
override val themeClass = "MangaHub"
override val baseVersionCode: Int = 16
override val baseVersionCode: Int = 17
override val sources = listOf(
// SingleLang("1Manga.co", "https://1manga.co", "en", isNsfw = true, className = "OneMangaCo"),