Handy Image

Shows just fullsize Image with hotkeys & without pop-ups on many image-hosting sites

À partir de 2020-11-18. Voir la dernière version.

  1. // ==UserScript==
  2. // @name Handy Image
  3. // @version 2020.11.18
  4. // @author Owyn
  5. // @contributor ubless607, bitst0rm
  6. // @namespace handyimage
  7. // @description Shows just fullsize Image with hotkeys & without pop-ups on many image-hosting sites
  8. // @homepage https://github.com/Owyn/HandyImage
  9. // @supportURL https://github.com/Owyn/HandyImage/issues
  10. // @icon https://images2.imgbox.com/f0/e8/W9zirOUG_o.png
  11. // @run-at document-start
  12. // @grant GM.getValue
  13. // @grant GM.setValue
  14. // @grant GM_registerMenuCommand
  15. // @grant GM_unregisterMenuCommand
  16. // @grant GM_getValue
  17. // @grant GM_setValue
  18. // @grant unsafeWindow
  19. // @match https://gist.github.com/Owyn/8553d7953d948228e312
  20. // @match http://www.imagebam.com/image*
  21. // @match http://imgchili.net/show*
  22. // @match *://imgbox.com/*
  23. // @match *://*.imagetwist.com/*
  24. // @match https://*.imagevenue.com/*
  25. // @match *://*.imageshack.com/i/*
  26. // @match *://*.imageshack.com/f/*
  27. // @match *://*.image2you.ru/*/*/
  28. // @exclude *://image2you.ru/cabinet/*
  29. // @exclude *://www.image2you.ru/cabinet/*
  30. // @match https://imageban.ru/show*
  31. // @match *://fastpic.ru/view*
  32. // @match *://fastpic.ru/fullview*
  33. // @match *://pixhost.to/show/*
  34. // @match http://*.picpicture.com/image/*
  35. // @match http://*.pic5you.ru/*/*/
  36. // @match http://*.tinypic.com/view*
  37. // @match http://radical-foto.ru/*
  38. // @match http://radikal-foto.ru/*
  39. // @match https://radikal.ru/*
  40. // @exclude https://radikal.ru/video/*
  41. // @match http://f-page.ru/*
  42. // @match http://f-picture.net/*
  43. // @match https://*.pimpandhost.com/image*
  44. // @match https://*.pixroute.com/*.html
  45. // @match http://*.picforall.ru/*/*/
  46. // @match *://*.imagecurl.com/view*
  47. // @match *://*.imagecurl.org/view*
  48. // @match http://*.euro-pic.eu/*share*
  49. // @match http://*.xxxhost.me/view*
  50. // @match http://*.imadul.com/?*
  51. // @match *://postimg.org/image/*
  52. // @match *://postimg.cc/*
  53. // @match http://*.niceimage.pl/*.html
  54. // @match http://*.pics-money.ru/*
  55. // @match http://*.freeimgup.com/*.*
  56. // @match http://imgtiger.com/view*
  57. // @match https://*.imgspice.com/*/*
  58. // @match http://*.picage.ru/*/*
  59. // @match http://*.imgserve.net/img*
  60. // @match http://*.images-host.biz/*/*
  61. // @match http://*.imgfantasy.com/*
  62. // @match http://*.platimzafoto.ru/full/
  63. // @match http://*.platimzafoto.ru/*.html
  64. // @match http://imgdino.com/view*
  65. // @match http://*.pic-money.ru/*.html
  66. // @match http://*.pic-money.ru/full/
  67. // @match http://*.imgcandy.net/img*
  68. // @match http://*.imagefolks.com/img*
  69. // @match *://*.pzy.be/v*
  70. // @match https://www.turboimagehost.com/p*
  71. // @match http://*.subirimagenes.com/*.html
  72. // @match http://*.screenlist.ru/details.php?image_id=*
  73. // @match http://qrrro.com/images*
  74. // @match http://imgmade.com/images*
  75. // @match http://www.pic-upload.de/view*
  76. // @match http://picshare.geenza.com/pics*
  77. // @match https://www.imgbabes.com/*/*.htm*
  78. // @match http://ibunker.us/f*
  79. // @match http://ichan.org/image.php?path=*
  80. // @match http://*.imagearn.com/*
  81. // @match http://www.dumppix.com/view*
  82. // @match http://www.bilder-upload.eu/show*
  83. // @match http://www.bilder-hochladen.net/file*
  84. // @match http://www.bild.me/bild.php?*
  85. // @match *://www.imagesnake.com/show*
  86. // @match *://www.imagesnake.com/img*
  87. // @match *://www.imagesnake.com/view*
  88. // @match http://www.imagesnake.org/show*
  89. // @match http://www.imagesnake.org/img*
  90. // @match http://www.imagesnake.org/view*
  91. // @match https://www.freebunker.com/show*
  92. // @match https://www.freebunker.com/img*
  93. // @match https://www.freebunker.com/view*
  94. // @match http://bayimg.com/*
  95. // @match http://*.directupload.net/file*
  96. // @match http://*.imagecherry.com/*
  97. // @match https://funkyimg.com/view*
  98. // @match http://*.abload.de/image.php?*
  99. // @match http://*.picfox.org/share*
  100. // @match http://*.pixup.us/img-*
  101. // @match http://*.imagecarry.com/*/*
  102. // @match http://*.imagedunk.com/*/*
  103. // @match http://*.imageswitch.com/*/*
  104. // @match http://*.piclambo.net/*/*
  105. // @match http://*.picleet.com/*/*
  106. // @match http://*.yankoimages.net/*/*
  107. // @match http://*.picturedip.com/*/*
  108. // @match http://*.croftimage.com/img-*
  109. // @match https://*.imagedecode.com/img-*
  110. // @match http://*.imagefruit.com/img*
  111. // @match http://*.imagefruit.com/show*
  112. // @match http://*.miragepics.com/view*
  113. // @match http://*.freeimagehosting.net/*
  114. // @match http://*.keptarolo.hu/*
  115. // @match http://www.uploadhouse.com/view*
  116. // @match http://*.dumpt.com/img/view*
  117. // @match http://imagezilla.net/show/*
  118. // @match http://*.imageup.ru/img*
  119. // @match http://*.casimages.com/photos/*/*/*
  120. // @match http://*.casimages.com/img*
  121. // @match http://*.cyberpics.net/p*
  122. // @match *://vvcap.com/*
  123. // @match https://*.freeimage.us/share*
  124. // @match http://*.pix-x.net/*/*
  125. // @match http://*.shareimages.com/image*
  126. // @match http://www.xtremeshack.com/image/*
  127. // @match http://*.mrjh.org/gallery.php?entry=*
  128. // @match http://*.itmages.ru/image/view*
  129. // @match http://shrani.najdi.si/*
  130. // @match http://*.iv.pl/view*
  131. // @match http://*.image18.org/show/*
  132. // @match http://*.pic4you.ru/*
  133. // @match http://picload.org/view*
  134. // @match http://*.thebestpichost.com/picture/*
  135. // @match *://*.lostpic.net/image/*
  136. // @match http://subefotos.com/ver/*
  137. // @exclude http://subefotos.com/ver/*#codigos
  138. // @match http://*.pixsor.com/share*
  139. // @match http://*.pixsor.com/XXX/share*
  140. // @match http://*.image-share.com/i*html
  141. // @match http://*.npicture.net/share-*
  142. // @match http://*.overpic.net/view*
  143. // @match http://*.imagecross.com/*
  144. // @match http://*.mojoimage.com/*
  145. // @match http://www.use.com/*
  146. // @match http://www.hostingpics.net/view*
  147. // @match http://*.pictureshoster.com/view*
  148. // @match http://*.imageshost.ru/photo*
  149. // @match http://*.imagestime.com/show*
  150. // @match http://sharenxs.com/view*
  151. // @match http://sharenxs.com/gallery/*/*
  152. // @match http://img4.imagetitan.com/img*
  153. // @match http://*.imagenpic.com/*
  154. // @match http://*.stuffed.ru/images*
  155. // @match http://*.wstaw.org/w/*
  156. // @match http://www.imagesocket.com/photos*
  157. // @match http://www.imagesocket.com/social*
  158. // @match http://imageban.net/show*
  159. // @match http://*.otofotki.pl/*
  160. // @match http://*.imgsin.com/view*
  161. // @match http://*.imagenetz.de/*
  162. // @match http://pix.toile-libre.org/?img*
  163. // @match http://www.servimg.com/image*
  164. // @match http://*.upix.me/files/*
  165. // @match http://*.upix.me/i/v/?q=*
  166. // @match http://*.pixelup.net/image*
  167. // @match http://*.pixelup.net/image*
  168. // @match http://*.picsee.net/*
  169. // @match http://www.fotosik.pl/pokaz_obrazek/pelny*
  170. // @match http://*.depic.me/*
  171. // @match http://www.xup.in/dl*
  172. // @match http://*.hotchyx.com/d*
  173. // @match http://*.imageupper.com/i/*
  174. // @match *://beeimg.com/view*
  175. // @match http://www.noelshack.com/*.*
  176. // @match http://www.turbopix.fr/v/*
  177. // @match http://thumbsnap.com/*
  178. // @match http://deffe.com/image/*
  179. // @match http://*.imageno.com/*.html
  180. // @match http://*.imagehousing.com/image*
  181. // @match http://www.picfront.org/d/*
  182. // @match http://*.imagehost.thasnasty.com/?*
  183. // @match http://*.imagilive.com/*.htm*
  184. // @match http://*.thepornfeeds.com/?*
  185. // @match http://*.picturevip.com/*
  186. // @exclude http://*.picturevip.com/x/clean/
  187. // @match http://img.3ezy.net/*.htm
  188. // @match http://*.xximg.net/img-*
  189. // @match http://*.zaslike.com/view*
  190. // @match http://www.zimagez.com/zimage*
  191. // @match http://*.pictureturn.com/*.html
  192. // @match http://*.cubeupload.com/im/*
  193. // @match http://www.photo-host.org/view-image/*
  194. // @match http://www.fotoszok.pl/show*
  195. // @match http://*.imglink.ru/show*
  196. // @match http://zapodaj.net/*.html
  197. // @match http://www.pixic.ru/view*
  198. // @match http://www.imagesup.de/picture.php?code=*
  199. // @match https://www.pornbus.org/show*
  200. // @match http://www.bilder-space.de/bild-*
  201. // @match *://www.imgcarry.com/show*
  202. // @match http://*.saveimg.ru/show*
  203. // @match http://www.fotos-hochladen.net/view*
  204. // @match http://simplest-image-hosting.net/*
  205. // @match http://jpegbay.com/gallery/*.html
  206. // @match http://www.hostpic.org/view*
  207. // @match *://imagik.fr/image/*
  208. // @match http://www.image-load.net/show*
  209. // @match http://*.sxpics.nl/img-*
  210. // @match http://*.gallerycloud.net/image/*
  211. // @match http://tryimg.com/image/*
  212. // @match http://bilder.nixhelp.de/display-*
  213. // @match http://*.funextra.hostzi.com/view*
  214. // @match http://*.freakimage.com/view*
  215. // @match http://*.fotoo.pl/show.php?img=*.html
  216. // @match http://*.rapid-img.de/img.php?f=*
  217. // @match http://*.1pics.ru/view-*
  218. // @match http://*.1pics.ru//view-*
  219. // @match http://*.upload.djmaster.fr/?v=*
  220. // @match http://img.pereslavl.ru/share*
  221. // @match http://*.dwimg.com/view*
  222. // @match http://www.imageurlhost.com/view*
  223. // @match http://*.imagesup.net/*
  224. // @match http://*.superkipje.com/view*
  225. // @match https://*.2i.sk/i/*
  226. // @match https://imgadult.com/img-*
  227. // @match http://imagebic.com/?v=*
  228. // @match http://www.picshot.pl/public/view*
  229. // @match http://*.imagesmax.de/display-*
  230. // @match http://*.ifotos.pl/zobacz/*
  231. // @match http://www.zimage.fr/photo.php?id=*
  232. // @match http://www.zimage.fr/taillereel.php?id=*
  233. // @match http://ngarko.online.fr/view*
  234. // @match http://*.b4he.com/?v=*
  235. // @match http://*.oxily.com/?*
  236. // @match http://ghanaimages.co/?*
  237. // @match http://*.imgplus.info/view*
  238. // @match http://firepic.org/?v=*
  239. // @match http://savepic.org/*.htm
  240. // @match http://*.fastimages.ru/p*
  241. // @match http://ipic.su/?page=img&pic=*
  242. // @match http://*.jpegshare.net/*.html
  243. // @match http://*.overdream.cz/*
  244. // @match http://*.fastpics.net/?v=*
  245. // @match http://www.ii4.ru/image-*
  246. // @match http://*.picuploader.de/*
  247. // @match http://*.rupict.ru/share*
  248. // @match http://bildr.no/view*
  249. // @match http://www.subeimagenes.com/img*
  250. // @match http://screenshot.ru/*
  251. // @match http://*.hostpix.de/show.php?img*
  252. // @match http://*.freeuploadimages.org/view*
  253. // @match http://smages.com/?v=*
  254. // @match https://*.hostingkartinok.com/show-image.php?id=*
  255. // @match http://*.4put.ru/*max*
  256. // @match http://www.pictureshack.ru/view*
  257. // @match http://*.host99.byethost4.com/share.php?id=*
  258. // @match http://*.eazypics.net/share*
  259. // @match http://xtupload.com/share.php?id=*
  260. // @match http://t.williamgates.net/share*
  261. // @match http://photosex.biz/v.php?id=*
  262. // @match http://*.imageteam.org/img-*
  263. // @match http://*.hostimage.ru/photo*
  264. // @match http://www.loaditup.de/*.html
  265. // @match http://*.imgbox.de/show/img*
  266. // @match http://*.picszone.net/view*
  267. // @match http://*.images.share-films.net/view*
  268. // @match http://www.uploadking.biz/show*
  269. // @match http://foto.xhost.lv/show.php?img=*
  270. // @match http://*.imagefile.org/view*
  271. // @match http://*.onimage.net/show*
  272. // @match http://*.uploadagent.de/show*
  273. // @match http://*.bildjunkies.de/view*
  274. // @match http://*.foto.hcfor.pl/view*
  275. // @match http://*.pic.tooptarinha.com/view*
  276. // @match http://*.poopr.org/view*
  277. // @match http://*.xp-images.hi2.ro/view*
  278. // @match http://*.dayzeddesigns.com/view*
  279. // @match http://*.freeimghosting.co.uk/view*
  280. // @match http://*.123poze.3x.ro/view*
  281. // @match http://*.upload.removed.us/view*
  282. // @match http://*.ximg.co.uk/view*
  283. // @match http://sl-images.ath.cx/view*
  284. // @match http://*.picatom.com/*
  285. // @match http://www.picshare.ru/view*
  286. // @match http://*.pikczery.pl/view*
  287. // @match http://*.imghost.pl/index.php?id=*
  288. // @match http://*.udostepniaj.pl/view*
  289. // @match http://*.hosting-zdjec.pl/view*
  290. // @match http://*.zapisz.net/view*
  291. // @match http://www.imagehosting.cz/?v=*
  292. // @match http://www.dumparump.com/view*
  293. // @match http://*.myxpic.com/showpic*
  294. // @match http://*.picness.com/image/*
  295. // @match http://h4z.it/View*
  296. // @match http://*.freeamateurteens.net/view*
  297. // @match http://*.fotoshack.us/foto*
  298. // @match http://*.image-server.ru/view*
  299. // @match https://*.imagebin.ca/v/*
  300. // @match http://*.loadpix.de/*.html
  301. // @match http://www.public-pic.de/image/show/*
  302. // @match http://*.9foto.ru/photo/*
  303. // @match http://uploads.ru/*
  304. // @match http://*.storepic.com/show*
  305. // @match http://www.myimg.de/?img=*
  306. // @match http://*.root-space.eu/file*
  307. // @match http://*.hot-file.org/p*
  308. // @match http://*.hostarea.de/show*
  309. // @match http://mepic.ru/view/?id=*
  310. // @match http://*.upislam.com/view*
  311. // @match http://*.ngarko.free.fr/view*
  312. // @match http://*.add-screen.com/view*
  313. // @match http://image.siroro.co.uk/p*
  314. // @match http://thaisharing.online.fr/view*
  315. // @match http://*.images.collectiontricks.it/view*
  316. // @match http://*.my-collection.ru/view*
  317. // @match http://img.schattorie.nl/view*
  318. // @match http://*.forexrainbow.com/view*
  319. // @match http://*.imgupload.pl/view*
  320. // @match http://*.1y9y.com/view*
  321. // @match http://*.addpix.net/view*
  322. // @match http://www.myuploadedimages.com/view*
  323. // @match http://multihoster.saxonia-fighter.de/view*
  324. // @match http://knecht.novarata.net/?*
  325. // @match http://*.img.irandeliver.com/?*
  326. // @match http://*.xferz.com/?*
  327. // @match http://*.up.kfesfahan.com/?*
  328. // @match http://*.image.alesher.com/?*
  329. // @match http://upload.khontai.com/?*
  330. // @match http://*.image.pantyhosemania.info/?*
  331. // @match http://*.addyourpics.com/image*
  332. // @match http://*.imgnext.com/img-*
  333. // @match http://*.qattach.com/p*
  334. // @match http://*.host4images.com/view*
  335. // @match http://*.imgbank.cz/*
  336. // @match http://*.nyanimg.com/*
  337. // @match http://*.geekpics.in/*
  338. // @match http://*.imagesloading.altervista.org/?*
  339. // @match http://*.showmyimage.com/*
  340. // @match http://*.phpbbmods.it/immaggini*
  341. // @match http://*.mynameismiz.com/*
  342. // @match http://upload.supreme-elite.fr/?*
  343. // @match http://*.fotohelp.kz/image*
  344. // @match https://*.myimg.me/*
  345. // @match http://*.heberg-hush.org/?*
  346. // @match http://*.oltaciyukle.com/*
  347. // @match http://*.pichost.name/*
  348. // @match *://*.fsfiles.org/flightsimshotsv2/image/*
  349. // @match http://*.imagend.com/*
  350. // @match http://*.imagerocket.com/*
  351. // @match http://*.hyyathost.com/*
  352. // @match http://images.reptilescanada.com/*
  353. // @match http://*.lakhdaria.net/imagebank/?*
  354. // @match http://*.webjardiner.com/hebergement_images_photos/image*
  355. // @match http://*.intergranada.com/images/?*
  356. // @match http://*.partizansk.eu/foto/image*
  357. // @match http://*.xenopix.com/?*
  358. // @match http://*.wepic.ru/*
  359. // @match http://*.imgup.com/images*
  360. // @match http://*.picturepush.com/public*
  361. // @match http://*.upload-image.fr/*
  362. // @match http://*.iezz.com/?*
  363. // @match http://*.fileaimage.com/?*
  364. // @match https://*.images.baconbits.org/?*
  365. // @match http://*.kuvajako.com/*
  366. // @match http://*.upanh.ovo.vn/*
  367. // @match http://*.imagesaur.com/*
  368. // @match http://*.wrzucaj.net/*
  369. // @match http://*.heberge-images.com/?*
  370. // @match http://www.image.kg/*
  371. // @match http://*.picshome.ru/?*
  372. // @match http://*.savemyimage.com/*
  373. // @match http://*.img.dramacafe.tv/*
  374. // @match http://*.hosturimage.com/img-*
  375. // @match http://*.pic-mir.ru/*/*
  376. // @match http://*.244pix.com/view*
  377. // @match http://*.uploadimage.ro/view*
  378. // @match https://*.imgflare.com/*/*
  379. // @match https://www.imagefap.com/photo/*
  380. // @match http://filefap.com/view*
  381. // @match *://*.imgur.com/*
  382. // @exclude *://imgur.com/*,*
  383. // @exclude *://*.imgur.com/*,*
  384. // @exclude *://*.imgur.com/*.gifv
  385. // @match https://motherless.com/*
  386. // @match http://*.xpic.biz/*/view*
  387. // @match https://*.tumblr.com/image/*
  388. // @match https://*.media.tumblr.com/*.*
  389. // @match http://*.imageporter.com/*
  390. // @match http://*.damimage.com/img-*
  391. // @match https://fapping.empornium.sx/image/*
  392. // @match http://*.bulkimg.info/img-*
  393. // @match http://imgboxxx.com/view*
  394. // @match http://*.imghere.net/view*
  395. // @match http://*.sharepic.biz/show-image.php?id=*
  396. // @match http://f-lite.ru/*
  397. // @match http://*.picturescream.com/*
  398. // @match http://*.imgdone.com/view*
  399. // @match https://*.2i.cz/i/*
  400. // @match http://awesomescreenshot.com/*
  401. // @match https://www.flickr.com/photos/*/*/
  402. // @exclude https://www.flickr.com/photos/*/galleries/*
  403. // @exclude https://www.flickr.com/photos/sets/*
  404. // @exclude https://www.flickr.com/photos/tags/*
  405. // @exclude https://www.flickr.com/photos/page*
  406. // @exclude https://www.flickr.com/photos/with*
  407. // @exclude https://www.flickr.com/photos/favorites*
  408. // @match http://www.amateri.cz/g*/*
  409. // @match http://*.imgshow.me/*
  410. // @match *://*.wikipedia.org/wiki/*:*.jp*
  411. // @match *://*.wikipedia.org/wiki/*:*.png
  412. // @match *://*.wikimedia.org/wiki/*:*.jp*
  413. // @match *://*.wikimedia.org/wiki/*:*.pn*
  414. // @match *://*.xxxscreens.com/img-*
  415. // @match http://avenuexxx.com/*-*
  416. // @match http://avenuexxx.com/archives/*/*
  417. // @exclude http://avenuexxx.com/archives/category/*
  418. // @match http://www.bilderhoster.net/*.html
  419. // @match http://*.xxxscreens.com/img-*
  420. // @match http://*.imgdope.com/view*
  421. // @match http://*.imagehost.eu/*
  422. // @match http://*.aveimage.com/view*
  423. // @match *://*.fappic.com/*
  424. // @match http://*.imagenimage.com/*/*
  425. // @match http://*.adultur.com/img-*
  426. // @match http://*.imageshimage.com/*/*
  427. // @match http://*.imgswift.com/*/*
  428. // @match http://*.imageporn.eu/?v=*
  429. // @match https://*.500px.com/photo/*
  430. // @match http://*.greenpiccs.com/images/*.html
  431. // @match http://*.hostmat.eu/view*
  432. // @match http://*.photobucket.com/user/*/media/*.htm*
  433. // @match https://www.imgshots.com/img*
  434. // @match https://www.imgshots.com/show/*
  435. // @match http://*.3xplanet.com/view*
  436. // @match http://*.imgmega.com/*.html
  437. // @match *://img.yt/img-*
  438. // @match http://*.payforpic.ru/*/*/
  439. // @match http://*.keep4u.ru/full/*
  440. // @match http://*.pic.re/*.html
  441. // @match http://*.freshpics.ru/*/*/
  442. // @match http://*.sexyimg.eu/img-*
  443. // @match *://*.imgseeds.com/img-*
  444. // @match http://*.pronpic.org/*/*
  445. // @match https://prnt.sc/*
  446. // @match http://*.imgdream.net/view*
  447. // @match http://*.imgtab.net/*
  448. // @match http://*.kephost.com/image/*
  449. // @match http://i.ruspotting.net/image/*
  450. // @match http://*.gifyu.com/image/*
  451. // @match https://*.picr.ws/image/*
  452. // @match https://www.linkmypic.com/image/*
  453. // @match http://celebimg.com/image/*
  454. // @match http://*.sharepic.org/image/*
  455. // @match http://*.zuly.de/image/*
  456. // @match http://upload.vstanced.com/image/*
  457. // @match http://*.thro.bz/image/*
  458. // @match http://*.qoou.net/image/*
  459. // @match http://brightpic.tk/image/*
  460. // @match http://*.cweb-pix.com/image/*
  461. // @match http://hosting.webspell.fr/image/*
  462. // @match http://*.i-pict.ru/image/*
  463. // @match http://*.images.woh.to/image/*
  464. // @match http://*.imghaze.com/image/*
  465. // @match http://*.imgup.nl/image/*
  466. // @match http://*.kuvapankki.in/image/*
  467. // @match http://*.myimageshare.com/image/*
  468. // @match http://*.nium.co/image/*
  469. // @match http://pix.hostux.net/image/*
  470. // @match http://*.pixoload.de/image/*
  471. // @match http://*.primeimg.co/image/*
  472. // @match http://pic.xtream-reallife.de/image/*
  473. // @match http://*.ultraimg.com/image/*
  474. // @match http://demo.chevereto.com/image/*
  475. // @match *://imgclick.net/*/*
  476. // @match http://*.gogoimage.org/img-*
  477. // @match http://imgmoney.ru/*.html
  478. // @match http://imgmoney.ru/full/
  479. // @match http://*.imglooks.com/img-*
  480. // @match http://*.you-logo.ru/show*
  481. // @match http://*.uploadimagex.com/view*
  482. // @match http://*.powerlogo.ru/show*
  483. // @match http://youpicture.org/?v=*
  484. // @match http://*.all-poster.ru/?v=*
  485. // @match http://*.picbug.ru/share*
  486. // @match http://*.sxpix.nl/img-*
  487. // @match http://*.hotflick.net/u/v/?q=*
  488. // @match http://*.hotflick.net/f/v/?q=*
  489. // @match http://vavvi.com/images/*.html
  490. // @match https://www.deviantart.com/*/art/*
  491. // @match http://*.myceleb.net/u/v/?q=*
  492. // @match http://*.imageblinks.com/img-*
  493. // @match *://*.gelbooru.com/index.php?page=post&s=view&id=*
  494. // @match *://*.youhate.us/index.php?page=post&s=view&id=*
  495. // @match https://danbooru.donmai.us/posts/*
  496. // @match http://konachan.com/post/show/*
  497. // @match http://konachan.net/post/show/*
  498. // @match https://yande.re/post/show/*
  499. // @match https://chan.sankakucomplex.com/*post/show/*
  500. // @match https://yande.re/post/show/*
  501. // @match http://www.zerochan.net/*
  502. // @match https://*.imgrock.pw/*.php
  503. // @match http://imgzap.com/view*
  504. // @match http://*.funimg.net/img*
  505. // @match http://*.olivepix.com/view/*
  506. // @match http://*.ocaload.com/img-*
  507. // @match http://*.imghit.com/img-*
  508. // @match http://*.imageon.org/img-*
  509. // @match http://*.imgcentral.com/view*
  510. // @match http://*.chronos.to/*
  511. // @match http://picspornfree.me/img-*
  512. // @match http://*.pic-you.com/p*
  513. // @match http://*.image-bugs.com/*mage/*
  514. // @match https://*.imgdrive.net/img-*
  515. // @match https://www.pixiv.net/*/artworks/*
  516. // @match http://*.scrin.org/?v=*
  517. // @match http://*.thumbnailus.com/img-*
  518. // @match http://*.nimplus.com/img-*
  519. // @match https://*.imgtaxi.com/img-*
  520. // @match http://*.imgstudio.org/img-*
  521. // @match http://goimge.com/img-*
  522. // @match http://*.safeimage.biz/image/*
  523. // @match http://*.imgbase.online/*/*/
  524. // @match http://*.picpays.ru/*/*/
  525. // @match http://*.imgclover.com/image/*
  526. // @match http://*.imgz.pw/share-*
  527. // @match http://*.imgz.pw/ch/image/*
  528. // @match *://*.imgking.co/img*
  529. // @match http://ask.fm/*/photo/original
  530. // @match http://*.newimagepost.com/img-*
  531. // @match http://*.imageho.me/img-*
  532. // @match http://myimg.club/*
  533. // @match http://*.imgease.re/img-*
  534. // @match https://www.hotimage.uk/*mg-*
  535. // @match *://imgview.pw/*.php
  536. // @match http://*.10.imageleon.com/i-*
  537. // @match https://www.dropbox.com/s/*/*
  538. // @match http://imgor.net/img-*
  539. // @match http://*.imagedax.net/*/*.html
  540. // @match https://*.imgmonkey.com/*/*.html
  541. // @match http://*.fapat.me/img-*
  542. // @match http://photo.weibo.com/*/large/photo_id/*
  543. // @match http://*.crazyimg.com/images/*.html
  544. // @match http://imgbe.com/img-*
  545. // @match https://*.imgextra.uk/image/*
  546. // @match http://*.extraimago.com/image/*
  547. // @match http://*.fireimg.cc/img-*
  548. // @match http://www.pornimagex.com/image/*
  549. // @match http://*.imgboom.net/*
  550. // @match http://*.img24.org/*.html
  551. // @match http://*.img24.org/full/
  552. // @match http://*.pic-maniac.com/*
  553. // @match https://*.instagram.com/p/*
  554. // @exclude https://instagram.com/p/*/embed/*
  555. // @exclude https://*.instagram.com/p/*/embed/*
  556. // @match http://*.imgsay.com/?v=*
  557. // @match http://*.imgsmile.com/?v=*
  558. // @match http://*.balkanelite.org/MultiHoster/view*
  559. // @match https://twitter.com/*/photo/*
  560. // @match http://*.icezap.com/img-*
  561. // @match *://*.rapidimg.net/img-*
  562. // @match http://foxyimg.link/*
  563. // @match http://*.imgtornado.com/img-*
  564. // @match http://*.daily-img.com/image/*
  565. // @match http://*.imageab.com/image/*
  566. // @match http://*.erimge.com/img-*
  567. // @match http://*.imgtrial.com/img-*
  568. // @match https://imgtown.net/*.php
  569. // @match http://ameblo.jp/*/image-*
  570. // @match http://*.loftlm.ru/img-*
  571. // @match http://*.imgdragon.com/*/*.html
  572. // @match http://ftop.ru/*/*
  573. // @match http://*.imgurx.net/share*
  574. // @match http://savepic.ru/*.htm
  575. // @match http://*.imgmaid.net/*
  576. // @match http://*.imggold.org/*/*.html
  577. // @match http://*.imgcredit.xyz/img-*
  578. // @match http://*.imgcredit.xyz/p/img-*
  579. // @match http://*.imgcredit.xyz/image/*
  580. // @match http://*.dimtus.com/img-*
  581. // @match http://*.coreimg.net/*
  582. // @match http://sfwimg.com/image/*
  583. // @match http://*.imgtiger.org/*/*
  584. // @match http://*.img3x.com/image/*
  585. // @match http://*.imguniversal.com/*
  586. // @match http://*.imagepearl.com/view/*
  587. // @match http://*.imagepearl.com/verify/*
  588. // @match http://*.tinizo.com/img-*
  589. // @match *://*.imgkings.com/img*
  590. // @match http://*.imagerar.com/img*
  591. // @match http://*.sendpic.org/view/*
  592. // @match *://www.porncomix.info/*/*/
  593. // @exclude *://www.porncomix.info/gallery/*
  594. // @exclude *://www.porncomix.info/artist/*
  595. // @match *://*.picclock.ru/*/*/
  596. // @match http://*.svetmonet.ru/*.html
  597. // @match http://*.svetmonet.ru/full/
  598. // @match http://*.imgpix.net/*
  599. // @match https://*.imgzulu.com/img-*
  600. // @match http://*.freeimagehostin.com/img-*
  601. // @match http://www.mixbase.net/gallery/image.*
  602. // @match https://www.adultimages.xyz/*/image*.html
  603. // @match http://*.pic4share.ru/*.html
  604. // @match http://*.pic4share.ru/full/
  605. // @match http://*.sximg.nl/img-*
  606. // @match http://*.0img.net/?v=*
  607. // @match https://ss.movierls.net/image/*
  608. // @match http://www.xxximagetpb.org/image/*
  609. // @match http://www.pixsense.net/site/v/*
  610. // @match http://www.imgsky.net/*
  611. // @match http://www.imagespicy.site/site/v/*
  612. // @match https://imgoutlet.pw/*.php
  613. // @match http://*.pix.ac/image/*
  614. // @match *://*.imgmak.com/image/*
  615. // @match http://*.freephotohostin.com/img-*
  616. // @match http://*.imgcat.pw/img-*
  617. // @match http://*.levinpic.org/*.html
  618. // @match https://www.sparrowpics.com/image/*
  619. // @match http://*.imgmax.com/image/*
  620. // @match http://lostpix.com/?v=*
  621. // @match https://extraimago.com/image/*
  622. // @match http://*.imgroute.com/?v=*
  623. // @match http://www.joblo.com/hollywood-celebrities/hottie-profile/*/image-gallery/*.jpg
  624. // @match *://extraimage.net/image/
  625. // @match *://www.bellazon.com/main/attachment/*
  626. // @match *://extraimage.net/image/*
  627. // @match https://www.artstation.com/artwork/*
  628. // @match http://bcy.net/illust/detail/*
  629. // @match http://*.imgpics.nl/img-*
  630. // @match http://*.imagexxx18.com/image/*
  631. // @match http://*.imagepics.xyz/img-*
  632. // @match *://*.imagesouls.net/img*
  633. // @match *://postto.me/*
  634. // @match http://*.imgskull.xyz/image/*
  635. // @match http://*.imgskull.com/image/*
  636. // @match *://*.ninjaimages.com/*.html
  637. // @match *://*.imgprime.com/img*
  638. // @match *://*.imgmaze.pw/*.php
  639. // @match *://*.piccash.net/*/*/
  640. // @exclude *://piccash.net/cabinets/*
  641. // @exclude *://www.piccash.net/cabinets/*
  642. // @match http://imgwo.com/img-*
  643. // @match http://luxpic.ru/images/*.html
  644. // @match http://*.pic-images.ru/full/
  645. // @match http://*.pic-images.ru/*.html
  646. // @match http://*.imgbun.ru/full/
  647. // @match http://*.imgbun.ru/*.html
  648. // @match http://*.imgspic.ru/full/
  649. // @match http://*.imgspic.ru/*.html
  650. // @match http://imgleveret.com/img-*
  651. // @match http://porn84.org/img-*
  652. // @match http://*.jpgstore.ru/full/
  653. // @match http://*.jpgstore.ru/*.html
  654. // @match https://*.ima.gy/i/*
  655. // @match http://moonpix.ru/full/
  656. // @match http://moonpix.ru/*.html
  657. // @match http://*.0img.ws/*
  658. // @match http://picpower.ru/full/
  659. // @match http://picpower.ru/*.html
  660. // @match http://piccloud.ru/full/
  661. // @match http://piccloud.ru/*.html
  662. // @match http://imgbase.ru/*/*/
  663. // @match http://*.sexybabepics.net/img-*.html
  664. // @match http://*.sexybabepics.net/x/image/*
  665. // @match http://*.imagecrest.com/verify/*
  666. // @match http://*.imagecrest.com/view/*
  667. // @match https://*.picz.site/img-*.html
  668. // @match http://*.allxpix.com/img-*.html
  669. // @match http://pixxss.ru/full/
  670. // @match http://pixxss.ru/*.html
  671. // @match http://pixxsees.ru/full/
  672. // @match http://pixxsees.ru/*.html
  673. // @match http://imgblank.com/img-*.html
  674. // @match http://imgtrex.com/*/*
  675. // @match https://imgwallet.com/img-*.html
  676. // @match http://2picsun.ru/full/
  677. // @match http://2picsun.ru/*.html
  678. // @match http://picpie.org/image/*
  679. // @match *://*.xeimg.yt/img-*.html
  680. // @match *://*.imagedisco.net/?v=*
  681. // @match http://*.imgmain.com/img-*.html
  682. // @match http://*.imgvisits.com/*
  683. // @match *://pixxxels.org/image/*
  684. // @match http://img-pika.ru/full/
  685. // @match http://img-pika.ru/*.html
  686. // @match http://pic2x.ru/full/
  687. // @match http://pic2x.ru/*.html
  688. // @match http://imgcach.ru/*/*/
  689. // @match http://*.2pixxsee.ru/*.html
  690. // @match http://*.2pixxsee.ru/full/
  691. // @match https://*.xhamster3.com/photos/gallery/*/*
  692. // @match https://*.xhamster.com/photos/gallery/*/*
  693. // @match https://*.xhamster.desi/photos/gallery/*/*
  694. // @exclude /^https://(.*\.)?xhamster3?\.(com|desi)/photos/gallery/.*/\d{1,3}$/
  695. // @match http://*.imghall.com/?v=*
  696. // @match https://*.acidimg.cc/img-*
  697. // @match https://imgcloud.pw/image/*
  698. // @match https://z4a.net/image/*
  699. // @match https://t.hogor.net/?pm=*
  700. // @match http://1pic2x.ru/*.html
  701. // @match http://1pic2x.ru/full/
  702. // @match http://1pics1img.ru/*.html
  703. // @match http://1pics1img.ru/full/
  704. // @match http://xxxwebdlxxx.org/*.html
  705. // @match https://www.sizzlingclicks.com/image/*
  706. // @match http://wwxxww.ru/*.html
  707. // @match http://wwxxww.ru/full/
  708. // @match http://pikoclick.ru/*/*/
  709. // @match http://passpix.com/images/*
  710. // @match http://*.sexyimg.eu/*/*.html
  711. // @match http://*.imgseed.com/img-*.html
  712. // @match http://img.folluo.me/image/*
  713. // @match *://imgpart.com/img-*
  714. // @match https://picstate.com/view/full/*
  715. // @match https://jerking.empornium.ph/image/*
  716. // @match http://p0xpicmoney.ru/*/*/
  717. // @match http://picker-click.ru/*/*/
  718. // @match https://truepic.org/*
  719. // @match https://www.jiopic.com/image/*
  720. // @match https://imx.to/img-*
  721. // @match https://imx.to/i/*
  722. // @match https://pixxxels.cc/*
  723. // @match http://picpic.online/*/*/
  724. // @match http://imgking.xyz/*.html
  725. // @match http://moreimage.pw/image/*
  726. // @match https://imgsha.com/i/*
  727. // @match https://www.pic-upload.de/view-*/*.html
  728. // @match http://pic3you.org/*.html
  729. // @match http://pic3you.org/full/
  730. // @match *://*.vipix.pw/images/*.html
  731. // @match http://*.imgchilibum.ru/v.php?id=*
  732. // @match https://*.imgazure.com/*.html
  733. // @match https://*.imgazure.com/full/
  734. // @match *://*.dpic.me/*
  735. // @match *://*.picmoza.com//img-*.html
  736. // @match *://suckmypic.net/*
  737. // @match *://pic.hotimg.site/img-*.html
  738. // @match http://*.shaggyimg.pro/*.html
  739. // @match http://*.shaggyimg.pro/full/
  740. // @match http://*.imgjazz.com/img-*.html
  741. // @match https://22pixx.xyz/i*-*/*.html
  742. // @match https://22pixx.xyz/i-*/*.html
  743. // @match https://22pixx.xyz/x-*/*.html
  744. // @match *://trueimg.xyz/u-*/*.html
  745. // @match *://imgsmarts.info/*.html
  746. // @match *://imgsmarts.info/full/
  747. // @match *://www.keepimg.com/image/*
  748. // @match https://ibb.co/*
  749. // @match http://*.imgsee.net/*
  750. // @match *://*.picbaron.com/*/*.html
  751. // @match *://*.imgbaron.com/*/*
  752. // @match https://kvador.com/*/*.html
  753. // @match http://picshost.info//img-*.html
  754. // @match *://imagescanner.cc/images/*.html
  755. // @match http://batpic.com/image/*
  756. // @match http://*.1pic.org/view/*.html
  757. // @match *://lookimg.com/image/*
  758. // @match http://*.xfap.fun/img-*.html
  759. // @match *://*.hdmoza.com//img-*.html
  760. // @match *://trans.firm.in/images/*.html
  761. // @match http://*.imgtorrnt.in/view.php?id=*
  762. // @match https://*.dailyimages.xyz/*.html
  763. // @match https://*.dailyimages.xyz/full/
  764. // @match http://*.petrovixxxjav.com//img-*.html
  765. // @match *://*.placeimg.net/img-*.html
  766. // @match https://subefotos.com/ver/?*
  767. // @match http://*.imageshtorm.com/img-*.html
  768. // @match https://*.blameless.work/img-*.html
  769. // @match https://trumbhost.com/images/*.html
  770. // @match http://*.xxx.kodiak.top/img-*.html
  771. // @match *://*.your-pictures.net/p*/*.html
  772. // @match https://*.xaoutchouc.live/img-*.html
  773. // @match https://*.picusha.net/?v=*
  774. // @match https://e621.net/posts/*
  775. // @match https://rule34.xxx/index.php?page=post&s=view&id=*
  776. // @match https://rule34hentai.net/post/view/*
  777. // @match https://pixs.cx/*
  778. // @match *://mshelxxx.ru.com//img-*.html
  779. // @match *://www.hentai-foundry.com/pictures/*
  780. // @exclude *://www.hentai-foundry.com/pictures/user/*/page/*
  781. // @match *://imgcredit.xyz/image/*
  782. // @match https://imgdew.pw/*.php
  783. // @match *://drlink.online/*/*/
  784. // @match https://savepice.ru/full/*.html
  785. // @match https://kropic.com/*/*.html
  786. // @match http://*.imgzong.xyz/*
  787. // @match https://www.furaffinity.net/view/*/
  788. // @match http://imageking.xyz/*
  789. // @match http://imgxx.xyz/*
  790. // @match http://imgao.xyz/*
  791. // @match http://imgweng.xyz/*
  792. // @match https://*.imgsto.com/*/*.html
  793. // @match https://*.pics4you.net/*/*.html
  794. // @match https://vipr.im/*
  795. // ==/UserScript==
  796.  
  797. "use strict";
  798.  
  799. if (typeof unsafeWindow === "undefined")
  800. {
  801. unsafeWindow = window;
  802. }
  803.  
  804. if (typeof GM_registerMenuCommand !== "undefined")
  805. {
  806. GM_registerMenuCommand("Handy Image Configuration", cfg, "C");
  807. }
  808.  
  809. if(window.location.href.lastIndexOf(window.location.hostname) + window.location.hostname.length + 1 == window.location.href.length)
  810. {
  811. console.warn("we are on website's main page, aren't we?");
  812. return false;
  813. }
  814. if (document.images.length == 1 && document.images[0].src == window.location.href)
  815. {
  816. console.warn("handy isn't needed for directly opened images");
  817. return false;
  818. }
  819. if(document.referrer)
  820. {
  821. if(document.referrer.lastIndexOf(window.location.hostname) != -1 && document.referrer.lastIndexOf(window.location.hostname) +1 == document.referrer.length - window.location.hostname.length)
  822. {
  823. console.warn("you have just uploaded a picture, haven't you?");
  824. return false;
  825. }
  826. }
  827. if(document.cookie.indexOf("hji=") != -1)
  828. {
  829. if(document.cookie.indexOf("hji=" + window.location.href) != -1)
  830. {
  831. console.warn("you just don't want the script to run now, do you?");
  832. document.cookie = "hji=; expires=Thu, 01 Jan 1970 00:00:01 GMT;";
  833. return false;
  834. }
  835. else if(document.cookie.indexOf("backhji=") != -1)
  836. {
  837. console.warn("you have found a time machine, now you are traveling back in history");
  838. window.history.go(-1);
  839. document.cookie = "hji=; expires=Thu, 01 Jan 1970 00:00:01 GMT;";
  840. return false;
  841. }
  842. console.warn("found a weird cookie, let's eat it");
  843. document.cookie = "hji=; expires=Thu, 01 Jan 1970 00:00:01 GMT;"; // stealth mode
  844. }
  845. //else{ console.warn("no hji cookie found");}
  846.  
  847. function q(s){if(document.body){return document.body.querySelector(s);}return null;}
  848. var cfg_direct = false;
  849. var cfg_bgclr ="grey";
  850. var cfg_fitWH = true;
  851. var cfg_fitB = false;
  852. var cfg_fitS = true;
  853. var cfg_js;
  854. var dp = false;
  855. var rescaled = false;
  856. var tb;
  857. var timeout = 1000;
  858. var FireFox = ((navigator.userAgent.indexOf('Firefox') != -1) ? true : false);
  859. var i;
  860. var j;
  861. var ext_list = ['webm', 'mp4', 'ogg', 'zip', '7z', 'rar', 'psd', 'swf', 'doc', 'rtf', 'pdf'];
  862. var iurl = window.location.hostname;
  863. if(!iurl.indexOf("www."))
  864. {
  865. iurl = iurl.substr(4);
  866. }
  867. var host = iurl;
  868. if(window.location.pathname.indexOf("//") == 0)
  869. {
  870. iurl += "/";
  871. }
  872.  
  873. function ws()
  874. {
  875. if(!FireFox) // NOT firefox
  876. {
  877. window.stop();
  878. }
  879. }
  880.  
  881. function sanitize() // lol I'm such a hacker
  882. {
  883. unsafeWindow.document.createElement = unsafeWindow.console.log;
  884. let lasttask = setTimeout(function() {},0);
  885. for(let n = lasttask; n > 0; n--)
  886. {
  887. clearTimeout(n);
  888. }
  889. removeAllListeners();
  890. }
  891.  
  892. const protected_createElement = document.createElement.bind(document);
  893.  
  894. var _eventHandlers = {};
  895. var origAdd = document.addEventListener;
  896.  
  897. function protected_addEventListener (event, handler, capture = false)
  898. {
  899. //console.error(event);
  900. if (!(event in _eventHandlers)) {
  901. _eventHandlers[event] = [];
  902. }
  903. _eventHandlers[event].push({ node: this || window, handler: handler, capture: capture });
  904. return origAdd.call(this, event, handler, capture);
  905. }
  906.  
  907. function removeAllListeners ()
  908. {
  909. //console.warn(_eventHandlers);
  910. for(let event in _eventHandlers)
  911. {
  912. _eventHandlers[event].forEach(({ node, handler, capture }) => node.removeEventListener(event, handler, capture));
  913. delete _eventHandlers[event];
  914. }
  915. }
  916.  
  917. function onVisibilityChange()
  918. {
  919. if (document.visibilityState === 'visible')
  920. {
  921. if(i)
  922. {
  923. autoresize();
  924. document.removeEventListener('visibilitychange', onVisibilityChange);
  925. }
  926. }
  927. }
  928. document.addEventListener("visibilitychange", onVisibilityChange);
  929.  
  930. unsafeWindow.addEventListener = protected_addEventListener;
  931. unsafeWindow.document.addEventListener = protected_addEventListener;
  932.  
  933. function DeleteAllCookies()
  934. {
  935. document.cookie.split(";").forEach(function(c) {
  936. document.cookie = c.replace(/^ +/, "").replace(/=.*/, "=;expires=" + new Date().toUTCString() + ";path=/");
  937. });
  938. }
  939.  
  940. function onscript(e)
  941. {
  942. //console.warn( "STOPPED: " + e.target.src + e.target.innerHTML);
  943. e.preventDefault();
  944. e.stopPropagation();
  945. }
  946.  
  947. function onbeforeunload() // back helper
  948. {
  949. //console.warn("setting hji cookie before unloading page");
  950. let now = new Date();
  951. let time = now.getTime();
  952. time += 2000; // 2 sec to help quit double-pages
  953. now.setTime(time);
  954. now.toGMTString();
  955. document.cookie = 'backhji=; expires=' + now.toGMTString() + '; path=/';
  956. }
  957.  
  958. function makeimage()
  959. {
  960. if(typeof cfg_js !== "string") {setTimeout(function() { makeimage(); }, 11); return false;} // lets wait for stupd async
  961. if(cfg_direct === true){unsafeWindow.location.href = i.src;return false;}
  962. if(cfg_bgclr){document.body.bgColor = cfg_bgclr;}
  963. document.body.style.margin = "0px";
  964. document.body.innerHTML = "<style>img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; image-orientation: from-image; }</style>"; // center image
  965. ws();
  966. let isrc = i.src;
  967. i = protected_createElement("img");
  968. i.src = isrc;
  969. i.style.margin = "auto"; // center image
  970. document.body.appendChild(i);
  971. i.addEventListener("click", rescale, true);
  972. window.addEventListener("keydown", onkeydown, true);
  973. if(dp){console.warn("you are on a double-page image hosting (probably)");window.addEventListener("beforeunload", onbeforeunload, true);}
  974. onVisibilityChange();
  975. }
  976.  
  977. function find_text_in_scripts(text, stopword, start_from_top, search_after_word)
  978. {
  979. let s = document.getElementsByTagName("script");
  980. for(let c=0;c<s.length;c++)
  981. {
  982. if(search_after_word && s[c].innerHTML.indexOf(search_after_word) != -1){s[c].innerHTML = s[c].innerHTML.substring(0, s[c].innerHTML.indexOf(search_after_word));}
  983. let start_pos = start_from_top ? s[c].innerHTML.indexOf(text) : s[c].innerHTML.lastIndexOf(text);
  984. if(start_pos == -1){continue;}
  985. start_pos += text.length;
  986. i = protected_createElement("img");
  987. i.src = decodeURIComponent(s[c].innerHTML.substring(start_pos,s[c].innerHTML.indexOf(stopword,start_pos)).split("\\").join("")); // split\join fix for stupidfox GreaseMonkey
  988. return true;
  989. }
  990. return false;
  991. }
  992.  
  993. function post(path, params, method)
  994. {
  995. method = method || "post";
  996. let form = protected_createElement("form");
  997. form.setAttribute("method", method);
  998. form.setAttribute("action", path);
  999. for(let key in params)
  1000. {
  1001. if(params.hasOwnProperty(key))
  1002. {
  1003. let hiddenField = protected_createElement("input");
  1004. hiddenField.setAttribute("type", "hidden");
  1005. hiddenField.setAttribute("name", key);
  1006. hiddenField.setAttribute("value", params[key]);
  1007.  
  1008. form.appendChild(hiddenField);
  1009. }
  1010. }
  1011. document.body.appendChild(form);
  1012. form.submit();
  1013. }
  1014.  
  1015. function makeworld()
  1016. {
  1017. let f;
  1018. if(i){return;}
  1019. // per-host image detection
  1020. switch (host)
  1021. {
  1022. case "gist.github.com":
  1023. if(document.body){i=1;cfg();}break;
  1024. case "simplest-image-hosting.net":
  1025. case "hostimage.ru":
  1026. case "imgchili.net":
  1027. case "adultimages.xyz":
  1028. i = q('img');
  1029. break;
  1030. case "myceleb.net":
  1031. case "depic.me":
  1032. case "dpic.me":
  1033. i = q('img#pic');
  1034. break;
  1035. case "imagebin.ca":
  1036. i = q('a img');
  1037. if(i){i.src = i.parentNode.href;}
  1038. break;
  1039. case "savepic.org":
  1040. case "savepic.ru":
  1041. i = q('a img:not([src*="/images/"])');
  1042. break;
  1043. case "motherless.com":
  1044. j = true;
  1045. i = q('div#media-media div a img');
  1046. break;
  1047. case "awesomescreenshot.com":
  1048. i = q('img#screenshot');
  1049. break;
  1050. case "dropbox.com":
  1051. j = true;
  1052. i = q('img.preview-image');
  1053. if(i)
  1054. {
  1055. i.src = i.src.replace(/(size_mode)=\d+/, '$1=5');
  1056. }
  1057. break;
  1058. case "img.3ezy.net":
  1059. case "image-bugs.com":
  1060. case "imgclover.com":
  1061. case "demo.chevereto.com":
  1062. case "daily-img.com":
  1063. case "celebimg.com":
  1064. case "sfwimg.com":
  1065. case "img3x.com":
  1066. case "imgskull.xyz":
  1067. case "imgskull.com":
  1068. case "2i.sk":
  1069. case "2i.cz":
  1070. case "deffe.com":
  1071. case "imagik.fr":
  1072. case "gallerycloud.net":
  1073. case "tryimg.com":
  1074. case "fsfiles.org":
  1075. case "picpicture.com":
  1076. case "picpie.org":
  1077. case "lostpic.net":
  1078. case "batpic.com":
  1079. //chevereto 3.x
  1080. i = document.head.querySelector('link[rel="image_src"]');
  1081. if(i)
  1082. {
  1083. i.src = i.href;
  1084. i.src = i.src.replace('_800.', '.'); //img.3ezy.net
  1085. }
  1086. break;
  1087. case "imagebam.com":
  1088. ext_list = [];
  1089. case "directupload.net":
  1090. case "bilderhoster.net":
  1091. case "noelshack.com":
  1092. case "kephost.com":
  1093. case "i.ruspotting.net":
  1094. case "gifyu.com":
  1095. case "picr.ws":
  1096. case "linkmypic.com":
  1097. case "sharepic.org":
  1098. case "zuly.de":
  1099. case "upload.vstanced.com":
  1100. case "thro.bz":
  1101. case "qoou.net":
  1102. case "brightpic.tk":
  1103. case "cweb-pix.com":
  1104. case "hosting.webspell.fr":
  1105. case "i-pict.ru":
  1106. case "images.woh.to":
  1107. case "imghaze.com":
  1108. case "imgup.nl":
  1109. case "kuvapankki.in":
  1110. case "myimageshare.com":
  1111. case "nium.co":
  1112. case "pix.hostux.net":
  1113. case "pixoload.de":
  1114. case "primeimg.co":
  1115. case "pic.xtream-reallife.de":
  1116. case "ultraimg.com":
  1117. case "safeimage.biz":
  1118. case "imgextra.uk":
  1119. case "ss.movierls.net":
  1120. case "xxximagetpb.org":
  1121. case "pix.ac":
  1122. case "sparrowpics.com":
  1123. case "prnt.sc":
  1124. case "imgmax.com":
  1125. case "extraimago.com":
  1126. case "extraimage.net":
  1127. case "imgcloud.pw":
  1128. case "z4a.net":
  1129. case "jiopic.com":
  1130. case "wwv.imgcredit.xyz":
  1131. case "moreimage.pw":
  1132. case "lookimg.com":
  1133. case "subefotos.com":
  1134. case "rule34.xxx":
  1135. case "imgcredit.xyz":
  1136. i = document.querySelector('meta[property="og:image"], [name="og:image"]');
  1137. if(i)
  1138. {
  1139. i.src = i.content;
  1140. }
  1141. else
  1142. {
  1143. i = q('a[download]');
  1144. if(i){i.src = i.href;}
  1145. }
  1146. break;
  1147. case "twitter.com":
  1148. j = true;
  1149. i = document.querySelector('meta[property="og:video:url"]');
  1150. if(!i)
  1151. {
  1152. i = document.querySelector('meta[property="og:image"]');
  1153. if(i)
  1154. {
  1155. i.src = i.content;
  1156. i.src = i.src.replace(':large', ':orig');
  1157. }
  1158. }
  1159. break;
  1160. case "m.imgur.com":
  1161. j = true;
  1162. i = q('img.Image');
  1163. break;
  1164. case "imgur.com":
  1165. j = true;
  1166. i = document.head.querySelector('meta[property="og:image"]');
  1167. if(i)
  1168. {
  1169. f = document.head.querySelector('meta[property="og:url"]');
  1170. let v = document.head.querySelector('meta[property="og:video"]');
  1171. if((f && (f.content.indexOf("/a/") != -1 || f.content.indexOf("/gallery/") != -1) ) || i.content.indexOf("/images/logo") != -1)
  1172. {
  1173. return;
  1174. }
  1175. else if(v)
  1176. {
  1177. i.src = v.content.replace('.mp4', '.gif');
  1178. }
  1179. else
  1180. {
  1181. i.src = i.content;i.src = i.src.split('?')[0];
  1182. }
  1183. }
  1184. break;
  1185. case "ameblo.jp":
  1186. j = true;
  1187. i = q('img#imgItem');
  1188. break;
  1189. case "instagram.com":
  1190. j = true;
  1191. if(find_text_in_scripts('"shortcode_media":{"__typename":"GraphImage"', '"', false))
  1192. {
  1193. //find_text_in_scripts('"display_url":"', '"');
  1194. i = q('img[decoding]');
  1195. }
  1196. break;
  1197. case "flickr.com":
  1198. case "secure.flickr.com":
  1199. find_text_in_scripts('"displayUrl":"', '"', false, '"canComment"');
  1200. break;
  1201. case "artstation.com":
  1202. j = true;
  1203. if(document.querySelectorAll("div.artwork").length == 1)
  1204. {
  1205. i = q('a[href*="&dl="]');
  1206. if(i)
  1207. {
  1208. i.src = i.href;
  1209. }
  1210. }
  1211. break;
  1212. case "pixiv.net":
  1213. j = true;
  1214. i = q('img[src*="i.pximg.net/img-"]');
  1215. if(i)
  1216. {
  1217. if(!q('div[aria-label="Preview"]'))
  1218. {
  1219. find_text_in_scripts('"original":"', '"');
  1220. }
  1221. else
  1222. {
  1223. console.warn("Manga page with multiple images, no action taken further");
  1224. return;
  1225. }
  1226. }
  1227. break;
  1228. case "chan.sankakucomplex.com":
  1229. i = q('a[itemprop="contentUrl"]');
  1230. if(i)
  1231. {
  1232. i.src = i.href;
  1233. }
  1234. break;
  1235. case "bcy.net":
  1236. f = document.querySelectorAll("img.detail_clickable");
  1237. if(f.length == 1)
  1238. {
  1239. i = f[0];
  1240. i.src = f[0].src.replace('/w650', '');
  1241. }
  1242. break;
  1243. case "imageshack.com":
  1244. i = q('input[value*="' + iurl + '/f/"]');
  1245. if(i){window.location.href = i.value.replace('/f/', '/i/');}
  1246. i = q('img[data-width]');
  1247. break;
  1248. case "22pixx.xyz":
  1249. case "trueimg.xyz":
  1250. f = window.location.href.match(/[a-z]+-([a-z].+(?:\.jpe?g|png|gif|webp))/i);
  1251. if(f)
  1252. {
  1253. i = {src : window.location.origin + "/" + f[1]};
  1254. }
  1255. break;
  1256. case "h4z.it":
  1257. i = document.images[2];
  1258. if(i){i.src = i.parentNode.href;}
  1259. break;
  1260. case "thumbsnap.com":
  1261. i = q('img#thepic');
  1262. if(i && i.parentNode.href){i.src = i.src.replace('/s/', '/i/');}
  1263. break;
  1264. case "imgbox.com":
  1265. case "imageupper.com":
  1266. case "hotflick.net":
  1267. case "upix.me":
  1268. i = q('img#img');
  1269. if(!i && window.location.hash) // upix.me
  1270. {
  1271. i = q('a');
  1272. i.src = window.location.href.replace("#","");
  1273. }
  1274. break;
  1275. case "imagesnake.com":
  1276. case "imagesnake.org":
  1277. case "freebunker.com":
  1278. case "imagefruit.com":
  1279. case "imagestime.com":
  1280. case "imgcarry.com":
  1281. case "pornbus.org":
  1282. case "fotoo.pl":
  1283. case "hostpix.de":
  1284. case "uploadking.biz":
  1285. case "foto.xhost.lv":
  1286. case "onimage.net":
  1287. case "storepic.com":
  1288. case "hostarea.de":
  1289. case "imgshots.com":
  1290. i = q('img#img_obj');
  1291. break;
  1292. case "abload.de":
  1293. i = document.body.querySelectorAll('img#image');
  1294. if(i)
  1295. {
  1296. i = i[i.length-1];
  1297. }
  1298. break;
  1299. case "imagecrest.com":
  1300. case "imagepearl.com":
  1301. i = q('#verify2');
  1302. if(i)
  1303. {
  1304. let w = screen.width;
  1305. let h = screen.height;
  1306. let u = q('#i').value;
  1307. let r = q('#r').value;
  1308. let xhttp = new XMLHttpRequest();
  1309. xhttp.onreadystatechange = function() {
  1310. if (xhttp.readyState == 4 && xhttp.status == 200) {
  1311. location.reload();
  1312. }
  1313. };
  1314. xhttp.open("GET", "verify.php?w=" + w + "&h=" + h + "&i=" + u + "&r=" + r + "", false);
  1315. xhttp.send();
  1316. break;
  1317. }
  1318. i = q('img#image');
  1319. break;
  1320. case "fastpic.ru":
  1321. i = q('img[src*="/big/"]');
  1322. break;
  1323. case "bayimg.com":
  1324. i = q('img#mainImage');
  1325. break;
  1326. case "imageban.ru":
  1327. case "imageban.net":
  1328. i = q('img[src*="' + iurl + '/out/"]');
  1329. break;
  1330. case "xup.in":
  1331. i = q('img[src*="/exec/"]');
  1332. break;
  1333. case "jpegbay.com":
  1334. i = q('a[class]');
  1335. if(i){i.src = i.href;}
  1336. break;
  1337. case "keep4u.ru":
  1338. i = q('img[src*="/b/"]');
  1339. break;
  1340. case "euro-pic.eu":
  1341. case "picfox.org":
  1342. case "freeimage.us":
  1343. case "xxx.freeimage.us":
  1344. case "pixsor.com":
  1345. case "img.pereslavl.ru":
  1346. case "rupict.ru":
  1347. case "host99.byethost4.com":
  1348. case "eazypics.net":
  1349. case "xtupload.com":
  1350. case "t.williamgates.net":
  1351. case "imgz.pw":
  1352. case "imgurx.net":
  1353. //i = q('img#iimg');
  1354. if(!find_text_in_scripts("<img src='", "'"))
  1355. {
  1356. i = q('a[download]'); // imgz.pw
  1357. if(i){i.src = i.href;}
  1358. }
  1359. break;
  1360. case "amateri.cz":
  1361. if(find_text_in_scripts('var orig_url="', '"'))
  1362. {
  1363. i.src = i.src.replace('http://www.amateri.cz/orig.php?&img=', 'http://img2.amateri.cz/users/');
  1364. }
  1365. break;
  1366. case "pixsense.net":
  1367. case "imagespicy.site":
  1368. find_text_in_scripts('"src","', '"');
  1369. break;
  1370. case "pix-x.net":
  1371. case "picclock.ru":
  1372. case "imgcach.ru":
  1373. case "pikoclick.ru":
  1374. case "p0xpicmoney.ru":
  1375. case "picker-click.ru":
  1376. case "picpic.online":
  1377. case "drlink.online":
  1378. i = q('img[onclick*="mshow"]');
  1379. if(i){i.src = i.src.replace('-thumb', '');i.src = i.src.replace('img_thumb', 'img_full');}
  1380. break;
  1381. case "pics-money.ru":
  1382. i = q('img[src*="/full/"]');if(i){break;}
  1383. case "pic5you.ru":
  1384. case "pic4you.ru":
  1385. case "picforall.ru":
  1386. case "picage.ru":
  1387. case "images-host.biz":
  1388. case "pic-mir.ru":
  1389. case "payforpic.ru":
  1390. case "freshpics.ru":
  1391. case "imgbase.online":
  1392. case "picpays.ru":
  1393. case "piccash.net":
  1394. case "imgbase.ru":
  1395. i = q('img[src*="thumb"]');
  1396. if(i){i.src = i.src.replace('-thumb', '');i.src = i.src.replace('img_thumb', 'img_full');i.src = i.src.replace('_thumb', '');}
  1397. break;
  1398. case "tinypic.com":
  1399. i = q('img#imgElement');
  1400. break;
  1401. case "picshot.pl":
  1402. i = q('img[src*="' + iurl + '/p"]');
  1403. if(i){i.src = i.src.replace('thumb', 'file');}
  1404. break;
  1405. case "sharenxs.com":
  1406. i = q('img.view_photo');
  1407. if(i){i.src = i.src.replace('/thumbnails/', '/images/');
  1408. i.src = i.src.replace('/tn-', '/');
  1409. i.src = i.src.replace('/mid/', '/wz/');
  1410. f = q('div.alert.alert-info.nomargin.photo_name span');
  1411. if(f)
  1412. {
  1413. let url = i.src;
  1414. i.src = url.substring(0,url.lastIndexOf('/')+1) + f.textContent + url.substring(url.lastIndexOf('.'));
  1415. }}
  1416. break;
  1417. case "radikal.ru":
  1418. case "radical-foto.ru":
  1419. case "radikal-foto.ru":
  1420. case "f-page.ru":
  1421. case "f-lite.ru":
  1422. case "f-picture.net":
  1423. find_text_in_scripts('"Url":"', '"');
  1424. break;
  1425. case "jerking.empornium.ph":
  1426. find_text_in_scripts(' url: "', '"', true);
  1427. break;
  1428. case "bilder-space.de":
  1429. case "imagesup.de":
  1430. i = q('img.picture');
  1431. break;
  1432. case "pix.toile-libre.org":
  1433. case "photo-host.org":
  1434. case "myxpic.com":
  1435. case "picness.com":
  1436. i = q('a[href*="original"]');
  1437. if(i){i.src = i.href;}
  1438. break;
  1439. case "pimpandhost.com":
  1440. i = q('div.main-image-wrapper');
  1441. if(i){i.src = i.dataset.src;}
  1442. break;
  1443. case "sexybabepics.net":
  1444. case "keepimg.com":
  1445. case "ibb.co":
  1446. i = document.head.querySelector('meta[property="og:image"]');
  1447. if(i){i.src = i.content; break;}
  1448. case "picsee.net":
  1449. i = q('a[href*="/upload"]');
  1450. if(i){i.src = i.href;}
  1451. break;
  1452. case "imagevenue.com":
  1453. i = q('img[style*="max-width:"]');
  1454. break;
  1455. case "hentai-foundry.com":
  1456. i = q('.boxbody img');
  1457. if(i && i.onclick)
  1458. {
  1459. i.click();
  1460. }
  1461. break;
  1462. case "rule34hentai.net":
  1463. i = q('a[download]');
  1464. if(i){i.src = i.href;}
  1465. break;
  1466. case "e621.net":
  1467. j = true;
  1468. i = q('div#image-download-link a');
  1469. if(i){i.src = i.href;}
  1470. break;
  1471. case "danbooru.donmai.us":
  1472. i = q('a[href*="/data/"]');
  1473. if(i){i.src = i.href;}
  1474. break;
  1475. case "gelbooru.com":
  1476. case "youhate.us":
  1477. j = true;
  1478. i = q('a[href*="/images/"][style]');
  1479. if(i){i.src = i.href;}
  1480. break;
  1481. case "deviantart.com":
  1482. j = true;
  1483. if(q('button[aria-label="Expand"]')) // page loaded enough
  1484. {
  1485. i = q('a[download]');
  1486. if(i && i.href.indexOf("deviantart.com/users/outgoing?") == -1){i.src = i.href;console.log("found download link");}
  1487. else
  1488. {
  1489. if(parseInt(window.location.pathname.substring(window.location.pathname.lastIndexOf("-")+1)) <= 790677560) // max resolution hax (available only for old images - sadly)
  1490. {
  1491. i = document.head.querySelector('link[rel="preload"][as="image"]');
  1492. if(i)
  1493. {
  1494. i.src = i.href;
  1495. f = i.src.search(/\/f\/[^\/]+\/[^\/]+/);
  1496. if(f !== -1)
  1497. {
  1498. i.src = i.src.substring(0,f+i.src.match(/\/f\/[^\/]+\/[^\/]+/)[0].length);
  1499. }
  1500. i.src = i.src.replace('/f/', '/intermediary/f/');
  1501. console.log("hacked image resolution to maximum");
  1502. }
  1503. }
  1504. else
  1505. {
  1506. i = q('div[role="dialog"] div img'); // zoomed in
  1507. if(i)
  1508. {
  1509. console.log("found zoomed-in image");
  1510. f = i.src.match(/,q_\d\d,/);
  1511. if(f !== null)
  1512. {
  1513. i.src = i.src.replace(f[0], ',q_100,'); // max quality hax
  1514. console.log("hacked image quality to maximum (but not resolution)");
  1515. }
  1516. break;
  1517. }
  1518. i = q('div[data-hook="art_stage"] div div div img'); // not zoomed in yet
  1519. if(i){console.log("found un-zoomed image, clicked it");i.click();i=null;break;}
  1520. }
  1521. }
  1522. }
  1523. break;
  1524. case "furaffinity.net":
  1525. i = q('div.download a');
  1526. if(i){i.src = i.href;}
  1527. break;
  1528. case "imagehost.eu":
  1529. i = q('a#image');
  1530. if(i){i.src = i.href;}
  1531. break;
  1532. case "imgplus.info":
  1533. i = q('img[src*="full"]');
  1534. break;
  1535. case "zerochan.net":
  1536. i = q('a[href*="full"]');
  1537. if(i){i.src = i.href;}
  1538. break;
  1539. case "wstaw.org":
  1540. i = q('a[href*="/m/"]');
  1541. if(i){i.src = i.href;}
  1542. break;
  1543. case "imageshost.ru":
  1544. i = q('a[href*="/img/"]');
  1545. if(i){i.src = i.href;}
  1546. break;
  1547. case "uploadimage.ro":
  1548. i = q('img[src*="img.php"]');
  1549. break;
  1550. case "imageno.com":
  1551. i = q('img[src*="image.php"]');
  1552. break;
  1553. case "loadpix.de":
  1554. i = q('img[src*="bild.php"]');
  1555. break;
  1556. case "bildr.no":
  1557. i = q('img[src*="image"]');
  1558. break;
  1559. case "iv.pl":
  1560. case "funextra.hostzi.com":
  1561. case "freakimage.com":
  1562. case "imageurlhost.com":
  1563. case "superkipje.com":
  1564. case "ximg.co.uk":
  1565. case "sl-images.ath.cx":
  1566. case "pikczery.pl":
  1567. case "hosting-zdjec.pl":
  1568. case "upislam.com":
  1569. case "add-screen.com":
  1570. case "my-collection.ru":
  1571. case "img.schattorie.nl":
  1572. case "forexrainbow.com":
  1573. case "imgupload.pl":
  1574. case "addpix.net":
  1575. case "myuploadedimages.com":
  1576. case "multihoster.saxonia-fighter.de":
  1577. case "imgdone.com":
  1578. case "greenpiccs.com":
  1579. case "balkanelite.org":
  1580. case "qrrro.com":
  1581. case "vipix.pw":
  1582. case "imagecurl.com":
  1583. case "imagecurl.org":
  1584. case "imagescanner.cc":
  1585. i = q('a[href*="images/"]');
  1586. if(i){i.src = i.href;}
  1587. break;
  1588. case "fotoshack.us":
  1589. i = q('img[src*="/fotos/"]');
  1590. break;
  1591. case "subefotos.com":
  1592. j = true;
  1593. i = q('img[src*="fotos.' + iurl + '"]');
  1594. break;
  1595. case "pictureshoster.com":
  1596. case "zaslike.com":
  1597. case "dwimg.com":
  1598. case "uploadagent.de":
  1599. i = q('a[href*="files/"]');
  1600. if(i){i.src = i.href;}
  1601. break;
  1602. case "photosex.biz":
  1603. case "imgchilibum.ru":
  1604. i = q('img[src*="/pic"]');
  1605. break;
  1606. case "pronpic.org":
  1607. i = q('img#small_img[src*="/pic/"]');
  1608. if(i){i.src = i.src.replace('th_', '');}
  1609. break;
  1610. case "imadul.com":
  1611. i = q('div.img_box a');
  1612. if(i){i.src = i.href;}
  1613. break;
  1614. case "imgmega.com":
  1615. case "pic.re":
  1616. case "foxyimg.link":
  1617. case "picbaron.com":
  1618. case "imgbaron.com":
  1619. case "kvador.com":
  1620. case "pics4you.net":
  1621. i = q('input[type="submit"]');
  1622. dp=true;
  1623. j =true;
  1624. if(i)
  1625. {
  1626. i.click();
  1627. break;
  1628. }
  1629. case "screenlist.ru":
  1630. case "picshare.geenza.com":
  1631. case "mojoimage.com":
  1632. case "imagecherry.com":
  1633. case "10.imageleon.com":
  1634. case "img4.imagetitan.com":
  1635. case "ninjaimages.com":
  1636. i = q('img[onload*="scale"]');
  1637. break;
  1638. case "bild.me":
  1639. case "imagecarry.com":
  1640. case "imagedunk.com":
  1641. case "imageswitch.com":
  1642. case "piclambo.net":
  1643. case "picleet.com":
  1644. case "yankoimages.net":
  1645. case "picturedip.com":
  1646. case "imagezilla.net":
  1647. case "imageup.ru":
  1648. case "hotchyx.com":
  1649. case "imagehousing.com":
  1650. case "cubeupload.com":
  1651. case "dumparump.com":
  1652. case "uploads.ru":
  1653. case "myimg.de":
  1654. case "root-space.eu":
  1655. case "mepic.ru":
  1656. case "postto.me":
  1657. i = q('img[src*="' + iurl + '"]');
  1658. break;
  1659. case "ask.fm":
  1660. i = q('img[src*="' + iurl + '"][id]');
  1661. i.src = i.src.replace('/original/', '/large/'); //ask.fm
  1662. break;
  1663. case "photo.weibo.com":
  1664. i = q('img[src*="/large/"]');
  1665. break;
  1666. case "picfront.org":
  1667. j = true;
  1668. i = q('img[src*="' + iurl + '"][title]');
  1669. break;
  1670. case "platimzafoto.ru":
  1671. case "pic-money.ru":
  1672. case "imgmoney.ru":
  1673. case "img24.org":
  1674. case "svetmonet.ru":
  1675. case "pic4share.ru":
  1676. case "pic-images.ru":
  1677. case "imgbun.ru":
  1678. case "imgspic.ru":
  1679. case "jpgstore.ru":
  1680. case "moonpix.ru":
  1681. case "picpower.ru":
  1682. case "piccloud.ru":
  1683. case "pixxss.ru":
  1684. case "pixxsees.ru":
  1685. case "2picsun.ru":
  1686. case "pic2x.ru":
  1687. case "img-pika.ru":
  1688. case "1pic2x.ru":
  1689. case "1pics1img.ru":
  1690. case "wwxxww.ru":
  1691. case "pic3you.org":
  1692. case "shaggyimg.pro":
  1693. case "imgsmarts.info":
  1694. case "dailyimages.xyz":
  1695. case "imgazure.com":
  1696. f = document.getElementsByTagName("button");
  1697. if(f.length)
  1698. {
  1699. f[f.length-1].click();
  1700. }
  1701. dp=true;
  1702. i = q('img[src*="/pic.jpeg"]');
  1703. break;
  1704. case "imagerar.com":
  1705. if(window.location.href.indexOf("img-") != -1)
  1706. {
  1707. window.location.href = window.location.href.replace("img-","img2-");
  1708. break;
  1709. }
  1710. case "imgprime.com":
  1711. if(window.location.href.indexOf("img-") != -1)
  1712. {
  1713. window.location.href = window.location.href.replace("img-","img3-");
  1714. break;
  1715. }
  1716. else if (window.location.href.indexOf("/imga-u/") != -1)
  1717. {
  1718. window.location.href = window.location.href.replace("/imga-u/","/imgb-u/");
  1719. break;
  1720. }
  1721. else // if(window.location.href.indexOf("/imgb-u/") != -1)
  1722. {
  1723. i = q('img[src*="/u/b/"]');
  1724. break;
  1725. }
  1726. case "freeimagehosting.net":
  1727. case "uploadhouse.com":
  1728. case "fotos-hochladen.net":
  1729. case "picshare.ru":
  1730. case "imgtab.net":
  1731. i = q('img[src*="uploads/"]');
  1732. break;
  1733. case "xtremeshack.com":
  1734. i = q('img[src*="/photos/"]');
  1735. break;
  1736. case "500px.com":
  1737. j = true;
  1738. i = q('img.photo-show__img[src*="_m"]');
  1739. break;
  1740. case "picturepush.com":
  1741. i = q('img[src*="/photo/"]');
  1742. break;
  1743. case "keptarolo.hu":
  1744. i = q('img[src*="/kep/"]');
  1745. break;
  1746. case "servimg.com":
  1747. case "truepic.org":
  1748. i = q('img[src*="/u/"]');
  1749. break;
  1750. case "imagearn.com":
  1751. i = q('img[src*="/imags/"]');
  1752. break;
  1753. case "ichan.org":
  1754. i = q('img[src*="/src/"]');
  1755. break;
  1756. case "ibunker.us":
  1757. case "hostingpics.net":
  1758. i = q('img[src*="pics/"]');
  1759. break;
  1760. case "imgtiger.org":
  1761. i = q('form');
  1762. if(i)
  1763. {
  1764. i.submit();
  1765. break;
  1766. }
  1767. case "imgoutlet.pw":
  1768. case "imgrock.pw":
  1769. case "imgview.pw":
  1770. case "imgmaze.pw":
  1771. case "imgdew.pw":
  1772. j = true;
  1773. dp=true;
  1774. i = q('img.picview');
  1775. if(i)
  1776. {
  1777. if(!i.getAttribute("src") || !i.getAttribute("src").length)
  1778. {
  1779. i = null;
  1780. }
  1781. break;
  1782. }
  1783. f = document.querySelectorAll("[type='button']");
  1784. if(f.length)
  1785. {
  1786. let n;
  1787. for(n=f.length-1; n >= 0; n--)
  1788. {
  1789. if(window.getComputedStyle(f[n]).visibility != "hidden" && f[n].offsetWidth != 0 && f[n].value.indexOf("eply") == -1 && f[n].value.indexOf("Log") == -1)
  1790. {
  1791. f[n].removeAttribute("disabled");
  1792. f[n].click();
  1793. i = 1;
  1794. break;
  1795. }
  1796. }
  1797. }
  1798. break;
  1799. case "myimg.club":
  1800. case "imgmonkey.com":
  1801. case "imgdragon.com":
  1802. case "imggold.org":
  1803. case "levinpic.org":
  1804. case "imgtown.net":
  1805. case "0img.ws":
  1806. case "pixs.cx":
  1807. case "kropic.com":
  1808. j = true;
  1809. dp=true;
  1810. f = document.querySelectorAll("input[type='submit']");
  1811. if(f.length)
  1812. {
  1813. let n;
  1814. for(n=f.length-1; n >= 0; n--)
  1815. {
  1816. if(window.getComputedStyle(f[n]).visibility != "hidden" && f[n].offsetWidth != 0 && f[n].value.indexOf("eply") == -1 && f[n].value.indexOf("Log") == -1)
  1817. {
  1818. f[n].removeAttribute("disabled");
  1819. f[n].click();
  1820. break;
  1821. }
  1822. }
  1823. }
  1824. case "casimages.com":
  1825. case "thebestpichost.com":
  1826. case "ifotos.pl":
  1827. case "subeimagenes.com":
  1828. case "lostpix.com":
  1829. case "vvcap.com":
  1830. case "imgtrex.com":
  1831. case "pic-upload.de":
  1832. case "picusha.net":
  1833. i = q('img[src*="/img/"]');
  1834. break;
  1835. case "imagenetz.de":
  1836. i = q('img[src*="/img"]');
  1837. break;
  1838. case "picatom.com":
  1839. i = q('img[src*="img/"]');
  1840. break;
  1841. case "2pixxsee.ru":
  1842. case "imgking.xyz":
  1843. case "imgazure.com":
  1844. i = q('img[src*="/img/"]');
  1845. if(i){i.src = i.src.replace('p.', '.');}
  1846. break;
  1847. case "imgbabes.com":
  1848. case "imgflare.com":
  1849. i = q('input[type="submit"]');
  1850. dp=true;
  1851. j=true;
  1852. if(i)
  1853. {
  1854. i.click();
  1855. i=null;
  1856. }
  1857. else
  1858. {
  1859. i = q('img[src*="i.php?"]');
  1860. }
  1861. break;
  1862. case "xxxhost.me":
  1863. case "bilder-hochladen.net":
  1864. case "dumpt.com":
  1865. case "imgsin.com":
  1866. case "loaditup.de":
  1867. case "123poze.3x.ro":
  1868. case "thaisharing.online.fr":
  1869. case "filefap.com":
  1870. case "imgswift.com":
  1871. case "1pic.org":
  1872. i = q('img[src*="/files/"]');
  1873. break;
  1874. case "image18.org":
  1875. i = q('img[src*="/file"]');
  1876. break;
  1877. case "picstate.com":
  1878. i = q('#image_container a img');
  1879. break;
  1880. case "zimagez.com":
  1881. i = q('img[src*="/full/"]');
  1882. break;
  1883. case "niceimage.pl":
  1884. i = q('img[src*="/uploaded/"]');
  1885. break;
  1886. case "imagefap.com":
  1887. find_text_in_scripts('"contentUrl": "', '"');
  1888. break;
  1889. case "olivepix.com":
  1890. i = q('img[src*="view/"]');
  1891. break;
  1892. case "imgking.co":
  1893. i = q('img[src*="uploads/"]');
  1894. if(i) break;
  1895. if(window.location.href.indexOf("imgs") != -1)
  1896. {
  1897. window.location.href = window.location.href.replace("imgs","imgv");
  1898. break;
  1899. }
  1900. if(window.location.href.indexOf("img3") != -1)
  1901. {
  1902. window.location.href = window.location.href.replace("img3","img4");
  1903. break;
  1904. }
  1905. case "imagesouls.net":
  1906. case "funimg.net":
  1907. if(find_text_in_scripts('linkid="', '"', false))
  1908. {
  1909. window.location.href = i.src;
  1910. break;
  1911. }
  1912. case "imgadult.com":
  1913. j = true;
  1914. i = q('a.overlay_ad_link');
  1915. if(i)
  1916. {
  1917. i.click();
  1918. break;
  1919. }
  1920. case "imagefolks.com":
  1921. case "imgcandy.net":
  1922. case "imageteam.org":
  1923. case "imgnext.com":
  1924. case "hosturimage.com":
  1925. case "pixup.us":
  1926. case "xximg.net":
  1927. case "x.xximg.net":
  1928. case "sxpics.nl":
  1929. case "sxpix.nl":
  1930. case "bulkimg.info":
  1931. case "img.yt":
  1932. case "xxxscreens.com":
  1933. case "i.sxpics.nl":
  1934. case "imageon.org":
  1935. case "nimplus.com":
  1936. case "imag.nimplus.com":
  1937. case "newimagepost.com":
  1938. case "imgease.re":
  1939. case "fapat.me":
  1940. case "imgbe.com":
  1941. case "fireimg.cc":
  1942. case "rapidimg.net":
  1943. case "imgtornado.com":
  1944. case "erimge.com":
  1945. case "loftlm.ru":
  1946. case "tinizo.com":
  1947. case "imgpix.net":
  1948. case "freeimagehostin.com":
  1949. case "sximg.nl":
  1950. case "freephotohostin.com":
  1951. case "imgpics.nl":
  1952. case "imagepics.xyz":
  1953. case "imgwo.com":
  1954. case "ima.gy":
  1955. case "picz.site":
  1956. case "allxpix.com":
  1957. case "imgblank.com":
  1958. case "xeimg.yt":
  1959. case "imgmain.com":
  1960. case "acidimg.cc":
  1961. case "imgpart.com":
  1962. case "picmoza.com":
  1963. case "imgjazz.com":
  1964. case "picshost.info":
  1965. case "petrovixxxjav.com":
  1966. case "placeimg.net":
  1967. case "imageshtorm.com":
  1968. case "blameless.work":
  1969. case "xxx.kodiak.top":
  1970. case "xaoutchouc.live":
  1971. case "mshelxxx.ru.com":
  1972. dp=true;
  1973. f = document.getElementsByTagName("input");
  1974. if(f.length)
  1975. {
  1976. f[f.length-1].removeAttribute("disabled");
  1977. f[f.length-1].click();
  1978. }
  1979. case "fotoszok.pl":
  1980. case "damimage.com":
  1981. case "adultur.com":
  1982. case "croftimage.com":
  1983. case "imagedecode.com":
  1984. case "sexyimg.eu":
  1985. case "gogoimage.org":
  1986. case "imageblinks.com":
  1987. case "imglooks.com":
  1988. case "ocaload.com":
  1989. case "imgstudio.org":
  1990. case "goimge.com":
  1991. case "imageho.me":
  1992. case "imgor.net":
  1993. case "icezap.com":
  1994. case "imgtrial.com":
  1995. case "dimtus.com":
  1996. case "imgcat.pw":
  1997. case "sexyimg.eu":
  1998. case "imgseed.com":
  1999. case "imgcredit.xyz":
  2000. case "pic.hotimg.site":
  2001. case "xfap.fun":
  2002. i = q('img[src*="' + iurl + '/upload/"]');
  2003. break;
  2004. case "imgboom.net":
  2005. if(window.location.href.indexOf("img-") != -1)
  2006. {
  2007. window.location.href = "http://imgboom.net/view.php";
  2008. break;
  2009. }
  2010. case "thumbnailus.com":
  2011. case "imgleveret.com":
  2012. case "porn84.org":
  2013. i = q('input[type="submit"]');
  2014. dp=true;
  2015. if(i)
  2016. {
  2017. i.click();
  2018. break;
  2019. }
  2020. i = q('img[src*="' + iurl + '/upload/"].centred');
  2021. break;
  2022. case "imgzulu.com":
  2023. i = q('button[type="submit"]');
  2024. dp=true;
  2025. if(i)
  2026. {
  2027. i.click();
  2028. break;
  2029. }
  2030. i = q('img[src*="' + iurl + '/upload/"]');
  2031. break;
  2032. case "imgsky.net":
  2033. case "imgsee.net":
  2034. case "imgzong.xyz":
  2035. case "imageking.xyz":
  2036. case "imgxx.xyz":
  2037. case "imgao.xyz":
  2038. case "imgweng.xyz":
  2039. i = q('button');
  2040. dp=true;
  2041. j = true;
  2042. if(i)
  2043. {
  2044. i.click();
  2045. }
  2046. i = q('.big_img_box img[src*="http"]');
  2047. break;
  2048. case "picspornfree.me":
  2049. case "hotimage.uk":
  2050. case "xxxwebdlxxx.org":
  2051. case "hdmoza.com":
  2052. i = q('input[type="submit"]');
  2053. dp=true;
  2054. if(i)
  2055. {
  2056. i.click();
  2057. break;
  2058. }
  2059. case "image-server.ru":
  2060. case "avenuexxx.com":
  2061. case "uploadimagex.com":
  2062. case "hostingkartinok.com":
  2063. case "bellazon":
  2064. case "imgkings.com":
  2065. case "savepice.ru":
  2066. i = q('img[src*="/upload"]');
  2067. break;
  2068. case "imgseeds.com":
  2069. i = q('input');
  2070. if(i)
  2071. {
  2072. i.click();
  2073. break;
  2074. }
  2075. case "imghit.com":
  2076. i = q('img[alt="image"]');
  2077. break;
  2078. case "3xplanet.com":
  2079. i = q('img[alt="picContent"]');
  2080. break;
  2081. case "subirimagenes.com":
  2082. i = q('input[type="submit"]');
  2083. dp=true;
  2084. if(i)
  2085. {
  2086. i.click();
  2087. break;
  2088. }
  2089. i = q('img[onclick*="scale"]');
  2090. break;
  2091. case "image-share.com":
  2092. case "xpic.biz":
  2093. i = q('img[src*="upload/"]');
  2094. break;
  2095. case "bilder-upload.eu":
  2096. i = q('input[src*="upload/"]');
  2097. break;
  2098. case "picload.org":
  2099. case "imagecross.com":
  2100. case "npicture.net":
  2101. case "public-pic.de":
  2102. case "picbug.ru":
  2103. i = q('img[src*="' + iurl + '/image"]');
  2104. break;
  2105. case "yande.re":
  2106. case "konachan.com":
  2107. case "konachan.net":
  2108. i = q('a[href*="' + iurl + '/image"]');
  2109. if(i){i.src = i.href;}
  2110. break;
  2111. case "imagesup.net":
  2112. i = q('a[href*="/di-"]');
  2113. if(i)
  2114. {
  2115. i.src = i.href;
  2116. }
  2117. break;
  2118. case "cyberpics.net":
  2119. case "fastimages.ru":
  2120. case "hot-file.org":
  2121. case "image.siroro.co.uk":
  2122. case "qattach.com":
  2123. case "fotohelp.kz":
  2124. case "pic-you.com":
  2125. i = q('a[href*="/di/"]');
  2126. if(i)
  2127. {
  2128. i.src = i.href;
  2129. }
  2130. break;
  2131. case "imagehost.thasnasty.com":
  2132. case "thepornfeeds.com":
  2133. case "oxily.com":
  2134. case "ghanaimages.co":
  2135. case "knecht.novarata.net":
  2136. case "img.irandeliver.com":
  2137. case "xferz.com":
  2138. case "up.kfesfahan.com":
  2139. case "image.alesher.com":
  2140. case "upload.khontai.com":
  2141. case "image.pantyhosemania.info":
  2142. case "t.hogor.net":
  2143. case "your-pictures.net":
  2144. i = q('a[href*="?di="]');
  2145. if(i)
  2146. {
  2147. i.src = i.href;
  2148. }
  2149. break;
  2150. case "pixxxels.org":
  2151. case "postimg.org":
  2152. case "postimg.cc":
  2153. case "pixxxels.cc":
  2154. i = q('a[href*="?dl="]');
  2155. if(i)
  2156. {
  2157. i.src = i.href;
  2158. }
  2159. break;
  2160. case "zimage.fr":
  2161. i = q('img[src*="images.php"]');
  2162. if(i)
  2163. {
  2164. i.src = i.src.replace('.php?nom=', '/');
  2165. break;
  2166. }
  2167. case "dumppix.com":
  2168. i = q('a[href*="enter"]');
  2169. if(i)
  2170. {
  2171. window.location.href = i.href;
  2172. break;
  2173. }
  2174. case "mrjh.org":
  2175. case "stuffed.ru":
  2176. case "rapid-img.de":
  2177. case "ngarko.online.fr":
  2178. case "freeuploadimages.org":
  2179. case "picszone.net":
  2180. case "images.share-films.net":
  2181. case "bildjunkies.de":
  2182. case "foto.hcfor.pl":
  2183. case "pic.tooptarinha.com":
  2184. case "poopr.org":
  2185. case "xp-images.hi2.ro":
  2186. case "dayzeddesigns.com":
  2187. case "freeimghosting.co.uk":
  2188. case "upload.removed.us":
  2189. case "imghost.pl":
  2190. case "udostepniaj.pl":
  2191. case "ngarko.free.fr":
  2192. case "images.collectiontricks.it":
  2193. case "244pix.com":
  2194. case "imgboxxx.com":
  2195. case "imghere.net":
  2196. case "imgdope.com":
  2197. case "hostmat.eu":
  2198. case "imgdream.net":
  2199. case "imgcentral.com":
  2200. case "imgroute.com":
  2201. i = q('img[src*="images/"]');
  2202. break;
  2203. case "use.com":
  2204. i = q('img[src*="images/"][onload]');
  2205. if(i){i.src = i.src.replace('/s_2/', '/s_5/');}
  2206. break;
  2207. case "1y9y.com":
  2208. case "host4images.com":
  2209. case "aveimage.com":
  2210. i = q('img#photo');
  2211. break;
  2212. case "freeimgup.com":
  2213. case "picturevip.com":
  2214. case "image-load.net":
  2215. case "upload.djmaster.fr":
  2216. case "b4he.com":
  2217. case "firepic.org":
  2218. case "overdream.cz":
  2219. case "fastpics.net":
  2220. case "ii4.ru":
  2221. case "picuploader.de":
  2222. case "smages.com":
  2223. case "pictureshack.ru":
  2224. case "imgbox.de":
  2225. case "imagehosting.cz":
  2226. case "9foto.ru":
  2227. case "imagesloading.altervista.org":
  2228. case "phpbbmods.it":
  2229. case "lakhdaria.net":
  2230. case "partizansk.eu":
  2231. case "webjardiner.com":
  2232. case "imgup.com":
  2233. case "iezz.com":
  2234. case "fileaimage.com":
  2235. case "picturescream.com":
  2236. case "all-poster.ru":
  2237. case "imgmak.com":
  2238. case "extraimage.net":
  2239. case "imagexxx18.com":
  2240. case "imgvisits.com":
  2241. case "imghall.com":
  2242. i = q('img[src*="/images/"]');
  2243. break;
  2244. case "intergranada.com":
  2245. i = q('img[src*="/images/images/"]');
  2246. break;
  2247. case "pixelup.net":
  2248. i = q('center img[src*="/images/"]');
  2249. break;
  2250. case "saveimg.ru":
  2251. case "imglink.ru":
  2252. case "4put.ru":
  2253. case "sharepic.biz":
  2254. case "you-logo.ru":
  2255. case "powerlogo.ru":
  2256. i = q('img[src*="pictures/"]');
  2257. break;
  2258. case "xenopix.com":
  2259. i = q('img[src*="/pix/"]');
  2260. break;
  2261. case "chronos.to":
  2262. case "imgmaid.net":
  2263. case "pic-maniac.com":
  2264. case "coreimg.net":
  2265. case "imx.to":
  2266. j = true;
  2267. i = q('input[type="submit"]');
  2268. dp=true;
  2269. if(i)
  2270. {
  2271. i.click();
  2272. break;
  2273. }
  2274. case "imgspice.com":
  2275. case "imagetwist.com":
  2276. case "dev.imagetwist.com":
  2277. case "pixroute.com":
  2278. case "pzy.be":
  2279. case "funkyimg.com":
  2280. case "itmages.ru":
  2281. case "imagenpic.com":
  2282. case "turbopix.fr":
  2283. case "pictureturn.com":
  2284. case "pixic.ru":
  2285. case "nyanimg.com":
  2286. case "geekpics.in":
  2287. case "imageporter.com":
  2288. case "imagenimage.com":
  2289. case "imageshimage.com":
  2290. case "imagedax.net":
  2291. case "pornimagex.com":
  2292. case "sendpic.org":
  2293. i = q('img[src*="/i/"]');
  2294. break;
  2295. case "imguniversal.com":
  2296. case "imgclick.net": // no submits
  2297. case "imgsto.com":
  2298. case "fappic.com":
  2299. i = q("form input[type='submit'][value*='continue to image' i]");
  2300. j = true;
  2301. dp = true;
  2302. if(i)
  2303. {
  2304. i.click();
  2305. }
  2306. i = q("img.pic[src*='/i/'], img.pic[src*='/img/']");
  2307. break;
  2308. case "scrin.org":
  2309. i = q('a[href*="/i/"]');
  2310. if(i)
  2311. {
  2312. i.src = i.href;
  2313. break;
  2314. }
  2315. i = q('img[src*="/i/"]');
  2316. break;
  2317. case "miragepics.com":
  2318. i = q('input[value*="' + iurl + '/images/"]');
  2319. if(i){i.src = i.value;}
  2320. break;
  2321. case "ipic.su":
  2322. i = q('input[value*="' + iurl + ' img/"]');
  2323. if(i){i.src = i.value;}
  2324. break;
  2325. case "mixbase.net":
  2326. i = q('img[src*="media/storage/"]');
  2327. break;
  2328. case "image2you.ru":
  2329. i = q('img[src*="images/"]');
  2330. if(i){i.src = i.src.replace('2_', '');}
  2331. break;
  2332. case "imgmade.com":
  2333. i = q('form');
  2334. dp=true;
  2335. if(i)
  2336. {
  2337. i.submit();
  2338. break;
  2339. }
  2340. case "imgdrive.net":
  2341. case "imgtaxi.com":
  2342. case "imgwallet.com":
  2343. j = true;
  2344. i = q("a.overlay_ad_link");
  2345. if(i)
  2346. {
  2347. i.click();
  2348. break;
  2349. }
  2350. case "pixhost.to":
  2351. case "imgtiger.com":
  2352. case "imgserve.net":
  2353. case "imgdino.com":
  2354. case "overpic.net":
  2355. case "imagesocket.com":
  2356. case "hostpic.org":
  2357. case "zapodaj.net":
  2358. case "jpegshare.net":
  2359. case "screenshot.ru":
  2360. case "imagefile.org":
  2361. case "zapisz.net":
  2362. case "addyourpics.com":
  2363. case "imgbank.cz":
  2364. case "showmyimage.com":
  2365. case "mynameismiz.com":
  2366. case "upload.supreme-elite.fr":
  2367. case "myimg.me":
  2368. case "heberg-hush.org":
  2369. case "oltaciyukle.com":
  2370. case "pichost.name":
  2371. case "imagend.com":
  2372. case "imagerocket.com":
  2373. case "hyyathost.com":
  2374. case "images.reptilescanada.com":
  2375. case "wepic.ru":
  2376. case "upload-image.fr":
  2377. case "images.baconbits.org":
  2378. case "kuvajako.com":
  2379. case "upanh.ovo.vn":
  2380. case "imagesaur.com":
  2381. case "wrzucaj.net":
  2382. case "heberge-images.com":
  2383. case "image.kg":
  2384. case "picshome.ru":
  2385. case "savemyimage.com":
  2386. case "img.dramacafe.tv":
  2387. case "fapping.empornium.sx":
  2388. case "beeimg.com":
  2389. case "1pics.ru":
  2390. case "imgshow.me":
  2391. case "youpicture.org":
  2392. case "vavvi.com":
  2393. case "imgzap.com":
  2394. case "crazyimg.com":
  2395. case "extraimago.com":
  2396. case "ftop.ru":
  2397. case "porncomix.info":
  2398. case "luxpic.ru":
  2399. case "passpix.com":
  2400. case "trumbhost.com":
  2401. //Chevereto 2.x
  2402. i = q('img[src*="' + iurl + '/images/"]');
  2403. break;
  2404. case "shareimages.com":
  2405. case "imagesmax.de":
  2406. case "bilder.nixhelp.de":
  2407. i = q('img[src*="' + iurl + '/images"]');
  2408. break;
  2409. case "imgfantasy.com":
  2410. case "imageporn.eu":
  2411. case "imgsmile.com":
  2412. case "imgsay.com":
  2413. case "0img.net":
  2414. case "imagedisco.net":
  2415. //IMGReserve
  2416. j = true;
  2417. dp=true;
  2418. i = q('input[value="YES"]');
  2419. if(i){i.onclick();break;}
  2420. case "pic-upload.de":
  2421. case "shrani.najdi.si":
  2422. case "imageab.com":
  2423. case "turboimagehost.com":
  2424. i = q('img[onclick*="(this"]');
  2425. break;
  2426. case "joblo.com":
  2427. i = q('img');
  2428. if(i)
  2429. {
  2430. i.src = "http://www.joblo.com/moviehotties/images/profile-gallery/orig" + window.location.href.substr(window.location.href.lastIndexOf("/"));
  2431. }
  2432. break;
  2433. case "img.folluo.me":
  2434. case "sizzlingclicks.com":
  2435. case "imgsha.com":
  2436. i = q('img[data-load="full"]');
  2437. break;
  2438. case "suckmypic.net":
  2439. i = q('#theImage');
  2440. break;
  2441. case "xhamster.com":
  2442. case "xhamster.desi":
  2443. case "xhamster3.com":
  2444. j = true;
  2445. i = q('img.fotorama__img');
  2446. break;
  2447. case "imgtorrnt.in":
  2448. window.location.replace("https://i.imgur.com/" + window.location.href.substr(window.location.href.lastIndexOf('=') + 1));
  2449. case "trans.firm.in":
  2450. if(window.location.href.search(/\.(?:jpe?g|png|gif|webp)\.html$/i) != -1)//check whether it's a valid image url
  2451. {
  2452. i = { src : window.location.href.replace(".html", "") };
  2453. }
  2454. break;
  2455. default: // dynamic subdomain
  2456. switch(host.substr(host.indexOf(".")+1))
  2457. {
  2458. case "xhamster.com":
  2459. case "xhamster.desi":
  2460. case "xhamster3.com":
  2461. j = true;
  2462. i = q('img.fotorama__img');
  2463. break;
  2464. case "tumblr.com":
  2465. case "media.tumblr.com":
  2466. i = document.querySelector('meta[property="og:image"]');
  2467. if(i)
  2468. {
  2469. i.src = i.content;
  2470. }
  2471. else
  2472. {
  2473. i = document.querySelector('div#base-container > div > div > div > div > img');
  2474. }
  2475. break;
  2476. case "wikipedia.org":
  2477. case "wikimedia.org":
  2478. i = q('a[href*="/upload"]');
  2479. if(i){i.src = i.href;}
  2480. break;
  2481. case "imgcredit.xyz":
  2482. i = q('img[src*="/upload/"]');
  2483. break;
  2484. case "photobucket.com":
  2485. find_text_in_scripts('originalUrl":"', '"');
  2486. break;
  2487. case "lostpic.net":
  2488. //chevereto 3.x
  2489. i = document.head.querySelector('link[rel="image_src"]');
  2490. if(i)
  2491. {
  2492. i.src = i.href;
  2493. }
  2494. break;
  2495. case "freeamateurteens.net":
  2496. i = q('img[src*="images/"]');
  2497. break;
  2498. case "otofotki.pl":
  2499. i = q('img[src*="/obrazki/"]');
  2500. break;
  2501. case "tinypic.com":
  2502. i = q('img#imgElement');
  2503. break;
  2504. case "imagilive.com":
  2505. i = q('a.button');
  2506. if(i)
  2507. {
  2508. dp=true;
  2509. i.click();
  2510. break;
  2511. }
  2512. i = q('img[src*="' + iurl + '"]');
  2513. break;
  2514. case "vipr.im":
  2515. j = true;
  2516. i = q("a.ddownloader");
  2517. if(i)
  2518. {
  2519. i.src = i.href;
  2520. break;
  2521. }
  2522. break;
  2523. default: // for user-added sites
  2524. console.warn("HJI is running on a custom website");
  2525. if(document.readyState != "loading" && document.images.length != 0)
  2526. {
  2527. let b = 0;
  2528. for(let n = 0; n < document.images.length; n++)
  2529. {
  2530. if(document.images[n].width == 0 && !document.images[n].complete) // not started loading
  2531. {
  2532. b = -1;
  2533. break;
  2534. }
  2535. else if(document.images[n].width * document.images[n].height > document.images[b].width * document.images[b].height)
  2536. {
  2537. b = n;
  2538. }
  2539. }
  2540. i = document.images[b];
  2541. if(i){console.warn("HJI is running on a custom website, showing biggest image");}
  2542. }
  2543. break;
  2544. }
  2545. break;
  2546. }
  2547. //
  2548. //firefox handmade noscript
  2549. if(!j)
  2550. {
  2551. j = true;
  2552. if (document.title == "Attention Required! | Cloudflare")
  2553. {
  2554. console.warn("Cloudflare MITM guard page. Stopping.");
  2555. return false;
  2556. }
  2557. window.addEventListener('beforescriptexecute', onscript, true);
  2558. }
  2559. //
  2560. if(i && i.src)
  2561. {
  2562. observer.disconnect();
  2563. function clr_pgn()
  2564. {
  2565. unsafeWindow.open = null;
  2566. unsafeWindow.onbeforeunload = null;
  2567. if(!FireFox)
  2568. {
  2569. delete document.write;
  2570. document.write('<html><head></head><body></body></html>');
  2571. document.close();
  2572. document.addEventListener("visibilitychange", onVisibilityChange);
  2573. }
  2574. else
  2575. {
  2576. document.replaceChild(document.importNode(document.implementation.createHTMLDocument("").documentElement, true), document.documentElement);
  2577. }
  2578. }
  2579. if (ext_list.indexOf(i.src.split('.').pop().split('?')[0].toLowerCase()) >= 0)
  2580. {
  2581. console.warn("What we found is not an image");
  2582. return false;
  2583. }
  2584. clr_pgn();
  2585. ws();
  2586. document.head.innerHTML = "";
  2587. sanitize();
  2588. window.removeEventListener('beforescriptexecute', onscript, true);
  2589. makeimage();
  2590. }
  2591. else // try again
  2592. {
  2593. //console.warn("Didnt find image, trying again in " + timeout + " ms");
  2594. if(tb){clearTimeout(tb);}
  2595. tb = setTimeout(function() { console.warn("Didnt find image, waited " + timeout + " ms to try again. page: " + window.location.href); tb=0; timeout*=2; i=0; makeworld(); }, timeout);
  2596. }
  2597. }
  2598.  
  2599. function changecursor()
  2600. {
  2601. i.style.margin = "auto";
  2602. if(!rescaled && (((i.naturalHeight / window.devicePixelRatio).toFixed() == window.innerHeight && (i.naturalWidth / window.devicePixelRatio).toFixed() <= window.innerWidth) || ((i.naturalHeight / window.devicePixelRatio).toFixed() <= window.innerHeight && (i.naturalWidth / window.devicePixelRatio).toFixed() == window.innerWidth))) // one img dimension is equal to screen and other is the same or less than the screen
  2603. {
  2604. i.style.cursor = "";
  2605. }
  2606. else if((i.naturalHeight / window.devicePixelRatio).toFixed() > window.innerHeight || (i.naturalWidth / window.devicePixelRatio).toFixed() > window.innerWidth) // at least one img dimenion is bigger than the screen
  2607. {
  2608. if(rescaled)
  2609. {
  2610. i.style.cursor = "zoom-in";
  2611. i.style.cursor = "-webkit-zoom-in";
  2612. }
  2613. else
  2614. {
  2615. i.style.cursor = "zoom-out";
  2616. i.style.cursor = "-webkit-zoom-out";
  2617. if((i.naturalHeight / window.devicePixelRatio).toFixed() > window.innerHeight) // image pushing out-of-screen fix
  2618. {
  2619. i.style.margin = "0px auto";
  2620. }
  2621. }
  2622. }
  2623. else
  2624. {
  2625. if(rescaled)
  2626. {
  2627. i.style.cursor = "zoom-out";
  2628. i.style.cursor = "-webkit-zoom-out";
  2629. }
  2630. else
  2631. {
  2632. i.style.cursor = "zoom-in";
  2633. i.style.cursor = "-webkit-zoom-in";
  2634. }
  2635. }
  2636. }
  2637.  
  2638. function rescale(event)
  2639. {
  2640. if(rescaled)
  2641. {
  2642. rescaled = false;
  2643. let scale,ex,ey;
  2644. if(event)
  2645. {
  2646. if (typeof event.y === "undefined") // Firefox
  2647. {
  2648. ex = event.clientX;
  2649. ey = event.clientY;
  2650. }
  2651. else
  2652. {
  2653. ex = event.x;
  2654. ey = event.y;
  2655. }
  2656. ex -= i.offsetLeft;
  2657. ey -= i.offsetTop;
  2658. scale = Math.min((window.innerWidth / (i.naturalWidth / window.devicePixelRatio).toFixed()), (window.innerHeight / (i.naturalHeight / window.devicePixelRatio).toFixed()));
  2659. }
  2660. i.style.width = (i.naturalWidth / window.devicePixelRatio).toFixed() + "px";
  2661. i.style.height = (i.naturalHeight / window.devicePixelRatio).toFixed() + "px";
  2662. changecursor();
  2663. if(event)
  2664. {
  2665. window.scrollTo(ex / scale - window.innerWidth / 2, ey / scale - window.innerHeight / 2);
  2666. }
  2667. }
  2668. else
  2669. {
  2670. i.style.width = (i.naturalWidth / window.devicePixelRatio).toFixed() + "px";
  2671. i.style.height = (i.naturalHeight / window.devicePixelRatio).toFixed() + "px";
  2672. if((i.naturalWidth / window.devicePixelRatio).toFixed() != window.innerWidth)
  2673. {
  2674. i.style.width = window.innerWidth + "px";
  2675. i.style.height = "";
  2676. rescaled = true;
  2677. }
  2678.  
  2679. if((i.height > window.innerHeight) || (i.width > window.innerWidth))
  2680. {
  2681. i.style.width = (i.naturalWidth / window.devicePixelRatio).toFixed() + "px";
  2682. i.style.height = (i.naturalHeight / window.devicePixelRatio).toFixed() + "px";
  2683. if((i.naturalHeight / window.devicePixelRatio).toFixed() != window.innerHeight)
  2684. {
  2685. i.style.height = window.innerHeight + "px";
  2686. i.style.width = "";
  2687. rescaled = true;
  2688. }
  2689. }
  2690. changecursor();
  2691. }
  2692. }
  2693.  
  2694. var ARC = 0;
  2695. function autoresize()
  2696. {
  2697. if(i.naturalWidth)
  2698. {
  2699. let title = i.src.substr(i.src.lastIndexOf("/")+1);
  2700. if(title.indexOf("?") != -1)
  2701. {
  2702. title = title.substr(0, title.indexOf("?"));
  2703. }
  2704. document.title = title + " (" + i.naturalWidth + "x" + i.naturalHeight + ")"; // title
  2705. let link = protected_createElement('link');
  2706. link.type = 'image/x-icon';
  2707. link.rel = 'shortcut icon';
  2708. link.href = i.src;
  2709. document.getElementsByTagName('head')[0].appendChild(link);
  2710. rescaled = true;rescale(0); // to original size in pixels
  2711. if(cfg_fitWH && i.height > window.innerHeight && i.width > window.innerWidth) // both scrollbars
  2712. {
  2713. rescale(0);
  2714. }
  2715. else if(cfg_fitB && (i.height > window.innerHeight || i.width > window.innerWidth)) // one scrollbar
  2716. {
  2717. rescale(0);
  2718. }
  2719. else if(cfg_fitS && i.height <= window.innerHeight && i.width <= window.innerWidth) // no scrollbars
  2720. {
  2721. rescale(0);
  2722. }
  2723. if(cfg_js){eval(cfg_js);}
  2724. }
  2725. else
  2726. {
  2727. ARC++;
  2728. if(ARC == 25 || ARC == 250 || ARC == 750)
  2729. {
  2730. i.src = i.src; // lol fix
  2731. }
  2732. setTimeout(function() { autoresize(); }, 10);
  2733. }
  2734. }
  2735.  
  2736. var observer = new MutationObserver(function()
  2737. {
  2738. makeworld();
  2739. });
  2740. observer.observe(document, {subtree: true, childList: true});
  2741.  
  2742. // hotkeys
  2743. if (typeof KeyEvent === "undefined")
  2744. {
  2745. var KeyEvent = {
  2746. DOM_VK_SPACE: 32,
  2747. DOM_VK_LEFT: 37,
  2748. DOM_VK_UP: 38,
  2749. DOM_VK_RIGHT: 39,
  2750. DOM_VK_DOWN: 40,
  2751. DOM_VK_A: 65,
  2752. DOM_VK_D: 68,
  2753. DOM_VK_P: 80,
  2754. DOM_VK_Q: 81,
  2755. DOM_VK_R: 82,
  2756. DOM_VK_S: 83,
  2757. DOM_VK_W: 87,
  2758. DOM_VK_NUMPAD2: 98,
  2759. DOM_VK_NUMPAD4: 100,
  2760. DOM_VK_NUMPAD5: 101,
  2761. DOM_VK_NUMPAD6: 102,
  2762. DOM_VK_NUMPAD8: 104,
  2763. DOM_VK_F5: 116
  2764. };
  2765. }
  2766.  
  2767. function cancelEvent(a)
  2768. {
  2769. a = a ? a : window.event;
  2770. if (a.stopPropagation)
  2771. {
  2772. a.stopPropagation();
  2773. }
  2774. if (a.preventDefault)
  2775. {
  2776. a.preventDefault();
  2777. }
  2778. a.cancelBubble = true;
  2779. a.cancel = true;
  2780. a.returnValue = false;
  2781. return false;
  2782. }
  2783.  
  2784. function scroll_space(a, b)
  2785. {
  2786. let by = Math.round((b ? window.innerHeight : window.innerWidth) * 0.50 * (a ? -1 : 1));
  2787. if(!b)
  2788. {
  2789. window.scrollBy(0, by);
  2790. }
  2791. else
  2792. {
  2793. window.scrollBy(by, 0);
  2794. }
  2795. }
  2796.  
  2797. function onkeydown (b)
  2798. {
  2799. let a = (window.event) ? b.keyCode : b.which;
  2800.  
  2801. if(b.ctrlKey && a == KeyEvent.DOM_VK_S)
  2802. {
  2803. cancelEvent(b);
  2804. if(i)
  2805. {
  2806. a = protected_createElement("a");
  2807. a.href = i.src;
  2808. a.download = ""; // HTML5
  2809. document.body.appendChild(a);
  2810. a.click();
  2811. document.body.removeChild(a);
  2812. }
  2813. return;
  2814. }
  2815. if (b.altKey || b.metaKey || (b.ctrlKey && a != KeyEvent.DOM_VK_SPACE && a != KeyEvent.DOM_VK_F5 && a != KeyEvent.DOM_VK_R))
  2816. {
  2817. return;
  2818. }
  2819.  
  2820. let by = Math.round(window.innerHeight * 0.10);
  2821.  
  2822. switch (a)
  2823. {
  2824. case KeyEvent.DOM_VK_RIGHT:
  2825. case KeyEvent.DOM_VK_D:
  2826. case KeyEvent.DOM_VK_NUMPAD6:
  2827. window.scrollBy(by, 0);
  2828. cancelEvent(b);
  2829. break;
  2830. case KeyEvent.DOM_VK_LEFT:
  2831. case KeyEvent.DOM_VK_A:
  2832. case KeyEvent.DOM_VK_NUMPAD4:
  2833. window.scrollBy(by * -1, 0);
  2834. cancelEvent(b);
  2835. break;
  2836. case KeyEvent.DOM_VK_W:
  2837. case KeyEvent.DOM_VK_NUMPAD8:
  2838. window.scrollBy(0, by * -1);
  2839. cancelEvent(b);
  2840. break;
  2841. case KeyEvent.DOM_VK_S:
  2842. case KeyEvent.DOM_VK_NUMPAD2:
  2843. window.scrollBy(0, by);
  2844. cancelEvent(b);
  2845. break;
  2846. case KeyEvent.DOM_VK_SPACE:
  2847. scroll_space(b.shiftKey, b.ctrlKey);
  2848. cancelEvent(b);
  2849. break;
  2850. case KeyEvent.DOM_VK_Q:
  2851. case KeyEvent.DOM_VK_NUMPAD5:
  2852. rescale(0);
  2853. cancelEvent(b);
  2854. break;
  2855. case KeyEvent.DOM_VK_P:
  2856. if(i && !FireFox) // Chrome nosave bug
  2857. {
  2858. window.location.href = "https://gist.github.com/Owyn/8553d7953d948228e312";
  2859. }
  2860. else
  2861. {
  2862. cfg();
  2863. }
  2864. cancelEvent(b);
  2865. break;
  2866. case KeyEvent.DOM_VK_R:
  2867. if(!b.ctrlKey)
  2868. {
  2869. document.cookie= "hji=" + window.location.href;
  2870. window.location.reload();
  2871. cancelEvent(b);
  2872. }
  2873. else
  2874. {
  2875. window.removeEventListener("beforeunload", onbeforeunload, true);
  2876. }
  2877. break;
  2878. case KeyEvent.DOM_VK_F5:
  2879. window.removeEventListener("beforeunload", onbeforeunload, true);
  2880. break;
  2881. }
  2882. }
  2883.  
  2884. function cfg()
  2885. {
  2886. if (typeof GM.setValue !== "undefined")
  2887. {
  2888. function saveCfg()
  2889. {
  2890. GM.setValue("directImage", q("#hji_cfg_1_direct").checked);
  2891. GM.setValue("bgColor", q("#hji_cfg_2_bgclr").value);
  2892. GM.setValue("fitWH", q("#hji_cfg_3_fitWH").checked);
  2893. GM.setValue("fitB", q("#hji_cfg_4_fitB").checked);
  2894. GM.setValue("fitS", q("#hji_cfg_5_fitS").checked);
  2895. GM.setValue("js", q("#hji_cfg_6_js").value);
  2896. alert("Configuration Saved");
  2897. if(q("#hji_cfg_2_bgclr").value){document.body.bgColor = q("#hji_cfg_2_bgclr").value;}else{document.body.removeAttribute("bgColor");}
  2898. }
  2899. if(i && i.src){i.removeEventListener("click", rescale, true);}
  2900. window.removeEventListener("keydown", onkeydown, true);
  2901. document.head.innerHTML = "";
  2902. document.body.innerHTML = "";
  2903. ws();
  2904. let div = protected_createElement("div");
  2905. div.style.margin = "11% auto";
  2906. div.style.width = "444px";
  2907. div.style.border = "solid 1px black";
  2908. div.style.background = "silver";
  2909. div.innerHTML = "<b><center>Configuration</center></b><br><input id='hji_cfg_1_direct' type='checkbox'> Open images directly with browser"
  2910. + "<br><br><input id='hji_cfg_2_bgclr' type='text' size='6'> Background color (empty = default)"
  2911. + "<br><br>Fit to window images:"
  2912. + "<br><br><input id='hji_cfg_3_fitWH' type='checkbox'> Larger than window both vertically and horizontally"
  2913. + "<br><br><input id='hji_cfg_4_fitB' type='checkbox'> Larger than window either vertically or horizontally"
  2914. + "<br><br><input id='hji_cfg_5_fitS' type='checkbox'> Smaller than window"
  2915. + "<br><br><center>Custom JS Action:<textarea id='hji_cfg_6_js' style='margin: 0px; width: 400px; height: 50px;'></textarea>"
  2916. + "<br><input id='hji_cfg_save' type='button' value='Save configuration'></center>";
  2917. document.body.appendChild(div);
  2918. q("#hji_cfg_1_direct").checked = cfg_direct;
  2919. q("#hji_cfg_2_bgclr").value = cfg_bgclr;
  2920. q("#hji_cfg_3_fitWH").checked = cfg_fitWH;
  2921. q("#hji_cfg_4_fitB").checked = cfg_fitB;
  2922. q("#hji_cfg_5_fitS").checked = cfg_fitS;
  2923. q("#hji_cfg_6_js").value = cfg_js;
  2924. q("#hji_cfg_save").addEventListener("click", saveCfg, true);
  2925. }
  2926. else
  2927. {
  2928. alert("Sorry, userscripts in browser native mode (without a script manager) can't have configurations! Install TamperMonkey extension. (it's a very good userscript manager)");
  2929. }
  2930. }
  2931.  
  2932. var loadCfg;
  2933. if (typeof GM === 'undefined') // GM3 or native
  2934. {
  2935. if (typeof GM_getValue !== "undefined")
  2936. {
  2937. console.warn("using synchronous GM setting loading");
  2938. window.GM = {};
  2939. GM.getValue = GM_getValue;
  2940. GM.setValue = GM_setValue;
  2941. loadCfg = function()
  2942. {
  2943. cfg_direct = GM.getValue("directImage", false);
  2944. cfg_bgclr = GM.getValue("bgColor", "grey");
  2945. cfg_fitWH = GM.getValue("fitWH", true);
  2946. cfg_fitB = GM.getValue("fitB", false);
  2947. cfg_fitS = GM.getValue("fitS", true);
  2948. cfg_js = GM.getValue("js", "");
  2949. }
  2950. loadCfg();
  2951. }
  2952. else
  2953. {
  2954. cfg_js = "";
  2955. console.warn("no script manager found - using default settings mode");
  2956. }
  2957. }
  2958. else
  2959. {
  2960. loadCfg = async function ()
  2961. {
  2962. cfg_direct = await GM.getValue("directImage", false);
  2963. cfg_bgclr = await GM.getValue("bgColor", "grey");
  2964. cfg_fitWH = await GM.getValue("fitWH", true);
  2965. cfg_fitB = await GM.getValue("fitB", false);
  2966. cfg_fitS = await GM.getValue("fitS", true);
  2967. cfg_js = await GM.getValue("js", "");
  2968. }
  2969. loadCfg();
  2970. }