dm5.com image list cn

Lists all images in a chapter/volume

目前為 2018-04-07 提交的版本,檢視 最新版本

// ==UserScript==
// @name               dm5.com image list cn
// @description        Lists all images in a chapter/volume
// @name:zh-CN         DM5 漫画列表
// @description:zh-CN  列出章节内所有图片。原作者willy_sunny,原脚本https://greasyfork.org/zh-CN/scripts/25513-dm5-com-image-list。由于原脚本在网站更新后失效,因此在其基础上进行了修正。
// @version            1.0.0
// @include            /^http\:\/\/.*?\.dm5\.com\//
// @author             slinerd
// @license            GPL version 2 or any later version; http://www.gnu.org/licenses/gpl-2.0.txt

// @namespace https://greasyfork.org/users/165071
// ==/UserScript==
//
// ************************
// Own Variable Declaration
// ************************
// imgList: the output result
//
var imgList = "";
function lp(p, list, count, callback) {
    $.ajax({
        url: 'chapterfun.ashx',
        data: {
            cid: DM5_CID,
            page: p,
            key: $("#dm5_key").val(),
            language: 1,
            gtk: 6,
            _cid: DM5_CID,
            _mid: DM5_MID,
            _dt: DM5_VIEWSIGN_DT,
            _sign: DM5_VIEWSIGN
        },
        type: 'GET',
        success: function(data) {
            eval(data);
            if (p > count) {
                callback(list);
            } else {
                document.body.innerHTML = "Loading Page " + p + "/" + count;
                lp(p+1, list+'<div align="center"><img src="' + d[0] + '" ><br><br></div>', count, callback);
            }
        }
    })
}
imgList = lp(1, "", DM5_IMAGE_COUNT,
function(data) {
    document.body.innerHTML = data;
});