Add enhanced features to the comic site for optimized experience, including dual-page reading and translation. E-Hentai (Associate nhentai, Quick favorite, Colorize tags, Floating tag list, etc.) | nhentai (Totally block comics, Auto page turning) | hitomi | hdoujin | SchaleNetwork | nude-moon | HentaiZap | IMHentai | HentaiEra | HentaiEnvy | kemono | nekohouse | MangaDex | welovemanga
const getImgList = async () => {
const [, , name, , id] = window.location.pathname.split('/');
return window.fetch(`/api/v3/comic/${name}/chapter2/${id}?platform=3`).then(res => res.json()).then(json => {
const imgList = [];
const {
words,
contents
} = json.results.chapter;
for (let i = 0; i < contents.length; i++) {
imgList[words[i]] = contents[i].url.replace('.c800x.', '.c1500x.');
}
return imgList;
});
};
上面的代碼不適用移動端,手機要用GM_xmlhttpRequest修改成PC User-Agent或COPY User-Agent。
換用window.fetch可以秒獲取,但用GM_xmlhttpRequest重寫也能秒獲取。
不知道為什麼腳本封裝的xmlHttpRequest現在在copymanga會卡一段時間
上面的代碼要替換,在腳本8.10.0的9183~9185行附近。
已更新修复。
@tony0809 非常感谢!之前用的都是 api.copymanga.net 这样的域名,应该是因为现在改成用正常域名后的重定向导致的延时吧
copymanga自動進入閱讀模式失效
一定要自己手動點了再等30秒才會生效