8Comic.com image list

Lists all images in a chapter/volume

当前为 2015-03-26 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name 8Comic.com image list
  3. // @description Lists all images in a chapter/volume
  4. // @name:zh-TW 8Comic 漫畫列表
  5. // @description:zh-TW 列出章節內所有圖片
  6. // @version 1.1.1
  7. // @include /^http\:\/\/.*?\.comicvip\.com\/show\/cool-/
  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. // Site function/variable Declearation
  20. // many can be found in the nview.js
  21. // http://new.comicvip.com/js/nview.js
  22. // ***********************************
  23. //
  24. // ps: total page count, it's also auto stored when nview.js was done loading
  25. //
  26. // The imgList code is a direct modification on the above mentioned js file
  27. // "ge('TheImg').src='http://img'+ss(c,4,2)+'.8comic.com/'+ss(c,6,1)+'/'+ti+'/'+ss(c,0,4)+'/'+nn(p)+'_'+ss(c,mm(p)+10,3,f)+'.jpg';"
  28. // 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
  29. //
  30.  
  31. var imgList = "";
  32. for (var p = 1; p <= ps; p++) {
  33. imgList = imgList + '<img src="http://img' + ss(c, 4, 2) + '.8comic.com/' + ss(c, 6, 1) + '/' + ti + '/' + ss(c, 0, 4) + '/' + nn(p) + '_' + ss(c, mm(p) + 10, 3, f) + '.jpg"><br><br>';
  34. }
  35. 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
  36. document.write(imgList); // outputs the list