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
  7. // @include /^http\:\/\/.*?\.8comic\.com\/\d+\/$/
  8. // @include /^http\:\/\/.*?\.comicvip\.com\/show\d+\/$/
  9. // @author willy_sunny
  10. // @license GPL version 2 or any later version; http://www.gnu.org/licenses/gpl-2.0.txt
  11. // @namespace https://greasyfork.org/users/9968
  12. // ==/UserScript==
  13. //
  14. // ************************
  15. // Own Variable Declaration
  16. // ************************
  17. // imgList: the output result
  18. //
  19. // ***********************************
  20. // Site function/variable Declearation
  21. // many can be found in the nview.js
  22. // http://new.comicvip.com/js/nview.js
  23. // ***********************************
  24. //
  25. // ps: total page count, it's also auto stored when nview.js was done loading
  26. //
  27. // The imgList code is a direct modification on the above mentioned js file
  28. // "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';"
  29. // 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
  30. //
  31.  
  32. var imgList = "";
  33. for (var p = 1; p <= ps; p++) {
  34. 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>';
  35. }
  36. 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
  37. document.write(imgList); // outputs the list