dm5.com image list

Lists all images in a chapter/volume

目前为 2016-12-08 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name dm5.com image list
  3. // @description Lists all images in a chapter/volume
  4. // @name:zh-TW DM5 漫畫列表
  5. // @description:zh-TW 列出章節內所有圖片
  6. // @version 1.0.0
  7. // @include /^http\:\/\/.*?\.dm5\.com\//
  8. // @author willy_sunny
  9. // @license GPL version 2 or any later version; http://www.gnu.org/licenses/gpl-2.0.txt
  10. // @namespace https://greasyfork.org/users/9968
  11. // ==/UserScript==
  12. //
  13. // ************************
  14. // Own Variable Declaration
  15. // ************************
  16. // imgList: the output result
  17. //
  18.  
  19. var imgList="";
  20. function lp(p, list, count, callback) { $.ajax( { url: 'chapterfun.ashx', data: { cid: DM5_CID, page: p, key: $("#dm5_key").val(), language: 1, gtk: 4 }, type: 'GET', success: function (data) { eval(data); if(p>count) { callback(list); } else { document.body.innerHTML = "Loading Page " + p + "/" + count; lp(p+1, list+'<img src="' + d[0] + '"><br>', count, callback); } } }) } imgList=lp(1,"",DM5_IMAGE_COUNT, function(data) { document.body.innerHTML = data; });