Guest User

скрипт для выкачивания монстродевок

a guest
Dec 5th, 2014
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.74 KB | None | 0 0
  1. <html>
  2. <head>
  3. </head>
  4. <body>
  5. <script>
  6.  
  7. var getExtention = function (url) {
  8. var regexp = /(?:\.([^.]+))?$/gim;
  9. var extend = regexp.exec(url)[1];
  10. return extend;
  11. };
  12.  
  13. var buildImage = function (v, src, i) {
  14. var img = "<img" +
  15. " width = 600" +
  16. " src = '" + src + "'" +
  17. " title = '" + v + "_" + (i < 10 ? "0" + i : i) + "." + getExtention(src) + "'" +
  18. " alt = '" + v + "_" + (i < 10 ? "0" + i : i) + "." + getExtention(src) + "'" +
  19. "'>";
  20. return img;
  21. };
  22.  
  23. var content = [];
  24.  
  25.  
  26. content.push("<h1>vol. 1-1</h1>");
  27. for (var i = 1; i < 78; i++) {
  28. content.push(buildImage('1-1', "http://hh.adultmanga.ru/auto/03/74/86/" + (i < 10 ? "0" + i : i) + ".jpeg'", i));
  29. }
  30.  
  31. content.push("<h1>vol. 1-2</h1>");
  32. var urls = [
  33. "http://hi.adultmanga.ru/auto/05/16/63/0000.png_res.jpg",
  34. "http://hl.adultmanga.ru/auto/05/16/63/000.png_res.jpg",
  35. "http://hh.adultmanga.ru/auto/05/16/63/00.png",
  36. "http://hj.adultmanga.ru/auto/05/16/63/01.png",
  37. "http://hi.adultmanga.ru/auto/05/16/63/02.png",
  38. "http://he.adultmanga.ru/auto/05/16/63/03.png",
  39. "http://hc.adultmanga.ru/auto/05/16/63/04.png",
  40. "http://hk.adultmanga.ru/auto/05/16/63/05.png",
  41. "http://hk.adultmanga.ru/auto/05/16/63/06.png_res.jpg",
  42. "http://hl.adultmanga.ru/auto/05/16/63/07.png_res.jpg",
  43. "http://hl.adultmanga.ru/auto/05/16/63/08.png_res.jpg",
  44. "http://hc.adultmanga.ru/auto/05/16/63/09.png",
  45. "http://hd.adultmanga.ru/auto/05/16/63/10.png_res.jpg",
  46. "http://hi.adultmanga.ru/auto/05/16/63/11.png_res.jpg",
  47. "http://hk.adultmanga.ru/auto/05/16/63/12.png_res.jpg",
  48. "http://hk.adultmanga.ru/auto/05/16/63/13.png_res.jpg",
  49. "http://hl.adultmanga.ru/auto/05/16/63/14.png_res.jpg",
  50. "http://hj.adultmanga.ru/auto/05/16/63/15.png_res.jpg",
  51. "http://hg.adultmanga.ru/auto/05/16/63/16.png_res.jpg",
  52. "http://hg.adultmanga.ru/auto/05/16/63/17.png_res.jpg",
  53. "http://hi.adultmanga.ru/auto/05/16/63/18.png_res.jpg",
  54. "http://hc.adultmanga.ru/auto/05/16/63/19.png_res.jpg",
  55. "http://hl.adultmanga.ru/auto/05/16/63/20.png_res.jpg",
  56. "http://hj.adultmanga.ru/auto/05/16/63/21.png_res.jpg",
  57. "http://hj.adultmanga.ru/auto/05/16/63/22.png_res.jpg",
  58. "http://hg.adultmanga.ru/auto/05/16/63/23.png_res.jpg",
  59. "http://hi.adultmanga.ru/auto/05/16/63/24.png_res.jpg",
  60. "http://hd.adultmanga.ru/auto/05/16/63/25.png_res.jpg",
  61. "http://hd.adultmanga.ru/auto/05/16/63/26.png_res.jpg",
  62. "http://he.adultmanga.ru/auto/05/16/63/27.png_res.jpg",
  63. "http://hf.adultmanga.ru/auto/05/16/63/28.png_res.jpg",
  64. "http://he.adultmanga.ru/auto/05/16/63/29.png_res.jpg",
  65. "http://hi.adultmanga.ru/auto/05/16/63/30.png_res.jpg",
  66. "http://hi.adultmanga.ru/auto/05/16/63/31.png_res.jpg",
  67. "http://hd.adultmanga.ru/auto/05/16/63/32.png_res.jpg",
  68. "http://he.adultmanga.ru/auto/05/16/63/33.png_res.jpg",
  69. "http://hf.adultmanga.ru/auto/05/16/63/34.png_res.jpg",
  70. "http://hf.adultmanga.ru/auto/05/16/63/35.png_res.jpg",
  71. "http://hd.adultmanga.ru/auto/05/16/63/36.png_res.jpg",
  72. "http://hd.adultmanga.ru/auto/05/16/63/37.png_res.jpg",
  73. "http://hj.adultmanga.ru/auto/05/16/63/38.png",
  74. "http://hg.adultmanga.ru/auto/05/16/63/39.png_res.jpg",
  75. "http://he.adultmanga.ru/auto/05/16/63/40.png_res.jpg",
  76. "http://hf.adultmanga.ru/auto/05/16/63/41.png_res.jpg",
  77. "http://hb.adultmanga.ru/auto/05/16/63/42.png_res.jpg",
  78. "http://hc.adultmanga.ru/auto/05/16/63/43.png_res.jpg"
  79. ];
  80. for (var i in urls) {
  81. if (!urls.hasOwnProperty(i)) {
  82. continue;
  83. }
  84. content.push(buildImage('1-2', urls[i], i));
  85. }
  86.  
  87. content.push("<h1>vol. 1-3</h1>");
  88. var urls2 = [
  89. "http://hk.adultmanga.ru/auto/05/33/60/00.jpg",
  90. "http://hf.adultmanga.ru/auto/05/33/60/01.png_res.jpg",
  91. "http://hb.adultmanga.ru/auto/05/33/60/02.png_res.jpg",
  92. "http://hc.adultmanga.ru/auto/05/33/60/03.png_res.jpg",
  93. "http://hh.adultmanga.ru/auto/05/33/60/04.png_res.jpg",
  94. "http://hh.adultmanga.ru/auto/05/33/60/05.png_res.jpg",
  95. "http://hk.adultmanga.ru/auto/05/33/60/06.png_res.jpg",
  96. "http://hj.adultmanga.ru/auto/05/33/60/07.png_res.jpg",
  97. "http://hl.adultmanga.ru/auto/05/33/60/08.png_res.jpg",
  98. "http://hk.adultmanga.ru/auto/05/33/60/09.png_res.jpg",
  99. "http://hc.adultmanga.ru/auto/05/33/60/10.png_res.jpg",
  100. "http://hh.adultmanga.ru/auto/05/33/60/11.png_res.jpg",
  101. "http://hk.adultmanga.ru/auto/05/33/60/12.png_res.jpg",
  102. "http://hl.adultmanga.ru/auto/05/33/60/13.png_res.jpg",
  103. "http://hl.adultmanga.ru/auto/05/33/60/14.png_res.jpg",
  104. "http://hj.adultmanga.ru/auto/05/33/60/15.png_res.jpg",
  105. "http://hk.adultmanga.ru/auto/05/33/60/16.png_res.jpg",
  106. "http://hh.adultmanga.ru/auto/05/33/60/17.png_res.jpg",
  107. "http://hc.adultmanga.ru/auto/05/33/60/18.png_res.jpg",
  108. "http://hb.adultmanga.ru/auto/05/33/60/19.png_res.jpg",
  109. "http://hl.adultmanga.ru/auto/05/33/60/20.png_res.jpg",
  110. "http://hj.adultmanga.ru/auto/05/33/60/21.png_res.jpg",
  111. "http://he.adultmanga.ru/auto/05/33/60/22.jpg_res.jpg"
  112. ];
  113. for (var i in urls2) {
  114. if (!urls.hasOwnProperty(i)) {
  115. continue;
  116. }
  117. var extend = getExtention(urls2[i]);
  118. content.push(buildImage('1-3', urls2[i], i));
  119. }
  120.  
  121. content.push("<h1>vol. 1-4</h1>");
  122. var urls3 = [
  123. "http://hf.adultmanga.ru/auto/05/76/13/00_copy.png_res.jpg",
  124. "http://hk.adultmanga.ru/auto/05/76/13/01_copy.png",
  125. "http://hl.adultmanga.ru/auto/05/76/13/02_copy.png",
  126. "http://hl.adultmanga.ru/auto/05/76/13/03_copy.png",
  127. "http://hc.adultmanga.ru/auto/05/76/13/04_copy.png_res.jpg",
  128. "http://hh.adultmanga.ru/auto/05/76/13/05_copy.png_res.jpg",
  129. "http://hi.adultmanga.ru/auto/05/76/13/06_copy.png_res.jpg",
  130. "http://hh.adultmanga.ru/auto/05/76/13/07_copy.png",
  131. "http://hc.adultmanga.ru/auto/05/76/13/08_copy.png",
  132. "http://hd.adultmanga.ru/auto/05/76/13/09_copy.png_res.jpg",
  133. "http://hf.adultmanga.ru/auto/05/76/13/10_copy.png",
  134. "http://hi.adultmanga.ru/auto/05/76/13/11.png_res.jpg"
  135. ];
  136. for (var i in urls3) {
  137. if (!urls.hasOwnProperty(i)) {
  138. continue;
  139. }
  140. var extend = getExtention(urls3[i]);
  141. content.push(buildImage('1-4', urls3[i], i));
  142. }
  143.  
  144. document.write(content.join("<br />"));
  145. </script>
  146. </body>
  147. </html>
Advertisement
Add Comment
Please, Sign In to add comment