mirror of
https://github.com/fumiama/copymanga.git
synced 2026-06-09 01:10:28 +08:00
1.4.2
update deps
This commit is contained in:
@@ -19,14 +19,20 @@ if (typeof (loaded) == "undefined"){
|
||||
window.scroll({ top: document.body.scrollHeight, left: 0, behavior: 'smooth' });
|
||||
setTimeout(() => {
|
||||
window.scroll({ top: document.body.scrollHeight, left: 0, behavior: 'smooth' });
|
||||
var imglist = document.getElementsByClassName("container-fluid comicContent")[0].getElementsByTagName("li");
|
||||
var nextChapter = document.getElementsByClassName("comicContent-next")[0].getElementsByTagName("a")[0].href;
|
||||
var prevChapter = document.getElementsByClassName("comicContent-prev")[1].getElementsByTagName("a")[0].href;
|
||||
if(nextChapter == location.href) nextChapter = "null";
|
||||
if(prevChapter == location.href) prevChapter = "null";
|
||||
var liststr = document.title.split(" - ")[1] + " " + location.href.substring(location.href.lastIndexOf("/")+1) + "\n" + nextChapter + "\n" + prevChapter;
|
||||
for(var i = 0; i < imglist.length; i++) liststr += "\n" + imglist[i].getElementsByTagName("img")[0].dataset.src;
|
||||
GM.loadChapter(liststr);
|
||||
setTimeout(() => {
|
||||
window.scroll({ top: document.body.scrollHeight, left: 0, behavior: 'smooth' });
|
||||
setTimeout(() => {
|
||||
window.scroll({ top: document.body.scrollHeight, left: 0, behavior: 'smooth' });
|
||||
var imglist = document.getElementsByClassName("container-fluid comicContent")[0].getElementsByTagName("li");
|
||||
var nextChapter = document.getElementsByClassName("comicContent-next")[0].getElementsByTagName("a")[0].href;
|
||||
var prevChapter = document.getElementsByClassName("comicContent-prev")[1].getElementsByTagName("a")[0].href;
|
||||
if(nextChapter == location.href) nextChapter = "null";
|
||||
if(prevChapter == location.href) prevChapter = "null";
|
||||
var liststr = document.title.split(" - ")[1] + " " + location.href.substring(location.href.lastIndexOf("/")+1) + "\n" + nextChapter + "\n" + prevChapter;
|
||||
for(var i = 0; i < imglist.length; i++) liststr += "\n" + imglist[i].getElementsByTagName("img")[0].dataset.src;
|
||||
GM.loadChapter(liststr);
|
||||
}, 500);
|
||||
}, 500);
|
||||
}, 500);
|
||||
}, 500);
|
||||
} else {
|
||||
|
||||
@@ -50,7 +50,6 @@ class DlActivity : Activity() {
|
||||
private lateinit var mangaDlTools: MangaDlTools
|
||||
var multiSelect = false
|
||||
|
||||
@ExperimentalStdlibApi
|
||||
@SuppressLint("SetTextI18n")
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
@@ -105,7 +104,6 @@ class DlActivity : Activity() {
|
||||
handler.sendEmptyMessage(8) //set dl card color to blue
|
||||
}
|
||||
|
||||
@ExperimentalStdlibApi
|
||||
@SuppressLint("SetTextI18n")
|
||||
fun setLayouts() {
|
||||
ttitle.text = comicName
|
||||
@@ -184,7 +182,6 @@ class DlActivity : Activity() {
|
||||
if(!(jsonFile.exists() && intent.getBooleanExtra("callFromDlList", false))) json?.let { jsonFile.writeText(it) }
|
||||
}
|
||||
|
||||
@ExperimentalStdlibApi
|
||||
private fun downloadChapterPages(i: ChapterToggleButton) {
|
||||
mangaDlTools.onDownloadedListener =
|
||||
object : MangaDlTools.OnDownloadedListener {
|
||||
|
||||
@@ -73,7 +73,6 @@ class ViewMangaActivity : Activity() {
|
||||
field = getPageNumber()
|
||||
}
|
||||
|
||||
@ExperimentalStdlibApi
|
||||
@SuppressLint("SetTextI18n")
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
@@ -121,7 +120,6 @@ class ViewMangaActivity : Activity() {
|
||||
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) window.setDecorFitsSystemWindows(false)
|
||||
}
|
||||
|
||||
@ExperimentalStdlibApi
|
||||
override fun onKeyDown(keyCode: Int, event: KeyEvent?): Boolean {
|
||||
var flag = false
|
||||
if(volTurnPage) when(keyCode) {
|
||||
|
||||
@@ -19,7 +19,6 @@ class DlHandler(activity: DlActivity, looper: Looper) : Handler(looper) {
|
||||
private var size = 0
|
||||
private var refreshSize = true
|
||||
|
||||
@ExperimentalStdlibApi
|
||||
@SuppressLint("SetTextI18n")
|
||||
override fun handleMessage(msg: Message) {
|
||||
super.handleMessage(msg)
|
||||
|
||||
@@ -12,13 +12,10 @@ class PagesManager(w: WeakReference<ViewMangaActivity>) {
|
||||
val v = w.get()
|
||||
private var isEndL = false
|
||||
private var isEndR = false
|
||||
@ExperimentalStdlibApi
|
||||
fun toPreviousPage(){ toPage(v?.r2l==true) }
|
||||
@ExperimentalStdlibApi
|
||||
fun toNextPage(){ toPage(v?.r2l!=true) }
|
||||
private fun judgePrevious() = v?.pageNum?:0 > 1
|
||||
private fun judgeNext() = v?.pageNum?:0 < v?.count?:0
|
||||
@ExperimentalStdlibApi
|
||||
private fun toPage(goNext:Boolean){
|
||||
if (v?.clicked == false) {
|
||||
if (if(goNext)judgeNext() else judgePrevious()) {
|
||||
|
||||
@@ -640,7 +640,6 @@ class ScaleImageView : ImageView {
|
||||
*
|
||||
* 在onTouchEvent末尾被执行.
|
||||
*/
|
||||
@ExperimentalStdlibApi
|
||||
private val mGestureDetector =
|
||||
GestureDetector(this.context, object : SimpleOnGestureListener() {
|
||||
override fun onFling(
|
||||
@@ -697,7 +696,6 @@ class ScaleImageView : ImageView {
|
||||
private val isBig: Boolean
|
||||
get() = getMatrixScale(mOuterMatrix)[0] > 1f
|
||||
|
||||
@ExperimentalStdlibApi
|
||||
@SuppressLint("ClickableViewAccessibility")
|
||||
override fun onTouchEvent(event: MotionEvent): Boolean {
|
||||
super.onTouchEvent(event)
|
||||
|
||||
Reference in New Issue
Block a user