8Comic 漫畫列表

列出章節內所有圖片

目前為 2017-09-10 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name               8Comic.com image list
// @description        Lists all images in a chapter/volume
// @name:zh-TW         8Comic 漫畫列表
// @description:zh-TW  列出章節內所有圖片
// @version            1.4
// @include            /^http\:\/\/.*?\.comicvip\.com\/show\//
// @include            /^http\:\/\/.*?\.comicbus\.com\//
// @include            /^http\:\/\/.*?\.nowcomic\.com\//
// @author             willy_sunny
// @license            GPL version 2 or any later version; http://www.gnu.org/licenses/gpl-2.0.txt
// @namespace https://greasyfork.org/users/9968
// ==/UserScript==
//
// ************************
// Own Variable Declaration
// ************************
// imgList: the output result
// 
// ***********************************
// Site function/variable Declearation
// many can be found in the nview.js
// http://new.comicvip.com/js/nview.js
// ***********************************
//
// ps: total page count, it's also auto stored when nview.js was done loading
//
// The imgList code is a direct modification on the above mentioned js file
// "ge('TheImg').src='http://img' + su(rlhoh, 0, 1) + '.8comic.com/' + su(rlhoh, 1, 1) + '/' + ti + '/' + xsvpq + '/' + nn(p) + '_' + su(xeabe, mm(p), 3) + '.jpg';"
// since we can tell that's the line the server use to extract image, all you need to do is just fiddle with it so that into a loop
// 

var imgList = ""; 
for (var p = 1; p <= ps; p++) {
    var picUrl = 'http://img' + su(rlhoh, 0, 1) + '.8comic.com/' + su(rlhoh, 1, 1) + '/' + ti + '/' + xsvpq + '/' + nn(p) + '_' + su(xeabe, mm(p), 3) + '.jpg';
    imgList = imgList + '<a href="'+picUrl+'"><img src="'+picUrl+'"></a><br>';
}
imgList += '<a href="#" onClick="jv(ni)">Next >>'; // this enables the user to click the next chapter link on the bottom to follow to the next chapter
document.write("<center>"+imgList+"</center>"); // outputs the list