Handy Image

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

As of 2017-02-16. See the latest version.

  1. // ==UserScript==
  2. // @name Handy Image
  3. // @version 2017.02.15
  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://sleazyfork.org/scripts/109-handy-image
  9. // @supportURL https://sleazyfork.org/scripts/109-handy-image/feedback
  10. // @icon http://i.imgur.com/Q5TTIjV.png
  11. // @run-at document-start
  12. // @grant GM_getValue
  13. // @grant GM_setValue
  14. // @grant GM_registerMenuCommand
  15. // @grant GM_unregisterMenuCommand
  16. // @grant unsafeWindow
  17. // @match https://gist.github.com/Owyn/8553d7953d948228e312
  18. // @match http://www.imagebam.com/image*
  19. // @match http://imgchili.net/show*
  20. // @match http://imgbox.com/*
  21. // @match http://*.imagetwist.com/*/*
  22. // @match http://*.imagevenue.com/img.php?*
  23. // @match *://*.imageshack.com/i/*
  24. // @match *://*.imageshack.com/f/*
  25. // @match http://image2you.ru/*/*/
  26. // @match http://imageban.ru/show*
  27. // @match *://fastpic.ru/view*
  28. // @match http://www.pixhost.org/show*
  29. // @match http://*.picpicture.com/share.php?id=*
  30. // @match http://*.pic5you.ru/*/*/
  31. // @match http://*.tinypic.com/view*
  32. // @match http://radical-foto.ru/*
  33. // @match http://radikal-foto.ru/*
  34. // @match http://radikal.ru/*
  35. // @match http://f-page.ru/*
  36. // @match http://f-picture.net/*
  37. // @match http://*.pimpandhost.com/image*
  38. // @match http://*.pixroute.com/*.html
  39. // @match http://*.picforall.ru/*/*/
  40. // @match http://*.imagecurl.com/view*
  41. // @match http://*.imagecurl.org/view*
  42. // @match http://*.euro-pic.eu/*share*
  43. // @match http://*.xxxhost.me/view*
  44. // @match http://*.imadul.com/?*
  45. // @match *://postimg.org/image/*
  46. // @match *://postimg.cc/image/
  47. // @match http://*.niceimage.pl/*.html
  48. // @match http://*.pics-money.ru/*
  49. // @match http://*.freeimgup.com/*.*
  50. // @match http://imgtiger.com/view*
  51. // @match http://*.imgspice.com/*.html
  52. // @match http://*.picage.ru/*/*
  53. // @match http://*.imgserve.net/img*
  54. // @match http://*.images-host.biz/*/*
  55. // @match http://*.imgfantasy.com/*
  56. // @match http://*.platimzafoto.ru/full/
  57. // @match http://*.platimzafoto.ru/*.html
  58. // @match http://imgdino.com/view*
  59. // @match http://*.pic-money.ru/*.html
  60. // @match http://*.pic-money.ru/full/
  61. // @match http://*.imgcandy.net/img*
  62. // @match http://*.imagefolks.com/img*
  63. // @match http://*.pzy.be/v*
  64. // @match http://www.turboimagehost.com/p*
  65. // @match http://*.subirimagenes.com/*.html
  66. // @match http://*.screenlist.ru/details.php?image_id=*
  67. // @match http://qrrro.com/images*
  68. // @match http://imgmade.com/images*
  69. // @match http://www.pic-upload.de/view*
  70. // @match http://picshare.geenza.com/pics*
  71. // @match http://www.imgbabes.com/*/*.htm*
  72. // @match http://ibunker.us/f*
  73. // @match http://ichan.org/image.php?path=*
  74. // @match http://*.imagearn.com/*
  75. // @match http://www.dumppix.com/view*
  76. // @match http://www.bilder-upload.eu/show*
  77. // @match http://www.bilder-hochladen.net/file*
  78. // @match http://www.bild.me/bild.php?*
  79. // @match http://www.imagesnake.com/show*
  80. // @match http://www.imagesnake.com/img*
  81. // @match http://www.imagesnake.com/view*
  82. // @match http://www.freebunker.com/show*
  83. // @match http://www.freebunker.com/img*
  84. // @match http://www.freebunker.com/view*
  85. // @match http://bayimg.com/*
  86. // @match http://*.directupload.net/file*
  87. // @match http://*.imagecherry.com/*
  88. // @match http://funkyimg.com/view*
  89. // @match http://*.abload.de/image.php?*
  90. // @match http://*.picfox.org/share*
  91. // @match http://*.pixup.us/img-*
  92. // @match http://*.imagecarry.com/*/*
  93. // @match http://*.imagedunk.com/*/*
  94. // @match http://*.imageswitch.com/*/*
  95. // @match http://*.piclambo.net/*/*
  96. // @match http://*.picleet.com/*/*
  97. // @match http://*.yankoimages.net/*/*
  98. // @match http://*.picturedip.com/*/*
  99. // @match http://*.croftimage.com/img-*
  100. // @match http://*.imagedecode.com/img-*
  101. // @match http://*.imagefruit.com/img*
  102. // @match http://*.imagefruit.com/show*
  103. // @match http://*.miragepics.com/view*
  104. // @match http://*.freeimagehosting.net/*
  105. // @match http://*.keptarolo.hu/*
  106. // @match http://www.uploadhouse.com/view*
  107. // @match http://*.dumpt.com/img/view*
  108. // @match http://imagezilla.net/show/*
  109. // @match http://*.imageup.ru/img*
  110. // @match http://*.casimages.com/photos/*/*/*
  111. // @match http://*.casimages.com/img*
  112. // @match http://*.cyberpics.net/p*
  113. // @match http://*.vvcap.net/db/*
  114. // @match http://*.freeimage.us/share*
  115. // @match http://*.pix-x.net/*/*
  116. // @match http://*.shareimages.com/image*
  117. // @match http://www.xtremeshack.com/image/*
  118. // @match http://*.mrjh.org/gallery.php?entry=*
  119. // @match http://*.itmages.ru/image/view*
  120. // @match http://shrani.najdi.si/*
  121. // @match http://*.iv.pl/view*
  122. // @match http://*.image18.org/show/*
  123. // @match http://*.pic4you.ru/*
  124. // @match http://picload.org/view*
  125. // @match http://*.thebestpichost.com/picture/*
  126. // @match http://*.lostpic.net/image/*
  127. // @match http://subefotos.com/ver/*
  128. // @exclude http://subefotos.com/ver/*#codigos
  129. // @match http://*.pixsor.com/share*
  130. // @match http://*.pixsor.com/XXX/share*
  131. // @match http://*.image-share.com/i*html
  132. // @match http://*.npicture.net/share-*
  133. // @match http://*.overpic.net/view*
  134. // @match http://*.imagecross.com/*
  135. // @match http://*.mojoimage.com/*
  136. // @match http://www.use.com/*
  137. // @match http://www.hostingpics.net/view*
  138. // @match http://*.pictureshoster.com/view*
  139. // @match http://*.imageshost.ru/photo*
  140. // @match http://*.imagestime.com/show*
  141. // @match http://sharenxs.com/view*
  142. // @match http://sharenxs.com/gallery/*/*
  143. // @match http://img4.imagetitan.com/img*
  144. // @match http://*.imagenpic.com/*
  145. // @match http://*.stuffed.ru/images*
  146. // @match http://*.wstaw.org/w/*
  147. // @match http://pikucha.ru/*
  148. // @match http://www.imagesocket.com/photos*
  149. // @match http://www.imagesocket.com/social*
  150. // @match http://imageban.net/show*
  151. // @match http://*.otofotki.pl/*
  152. // @match http://*.imgsin.com/view*
  153. // @match http://*.imagenetz.de/*
  154. // @match http://pix.toile-libre.org/?img*
  155. // @match http://www.servimg.com/image*
  156. // @match http://*.upix.me/files/*
  157. // @match http://*.upix.me/i/v/?q=*
  158. // @match http://*.pixelup.net/image*
  159. // @match http://*.pixelup.net/image*
  160. // @match http://*.picsee.net/*
  161. // @match http://www.fotosik.pl/pokaz_obrazek/pelny*
  162. // @match http://*.depic.me/*
  163. // @match http://www.xup.in/dl*
  164. // @match http://*.hotchyx.com/d*
  165. // @match http://*.imageupper.com/i/*
  166. // @match *://beeimg.com/view*
  167. // @match http://www.noelshack.com/*.*
  168. // @match http://www.turbopix.fr/v/*
  169. // @match http://thumbsnap.com/*
  170. // @match http://deffe.com/image/*
  171. // @match http://*.imageno.com/*.html
  172. // @match http://*.imagehousing.com/image*
  173. // @match http://www.picfront.org/d/*
  174. // @match http://*.imagehost.thasnasty.com/?*
  175. // @match http://*.imagilive.com/*.htm*
  176. // @match http://*.thepornfeeds.com/?*
  177. // @match http://*.picturevip.com/*
  178. // @exclude http://*.picturevip.com/x/clean/
  179. // @match http://img.3ezy.net/*.htm
  180. // @match http://*.xximg.net/img-*
  181. // @match http://*.zaslike.com/view*
  182. // @match http://www.zimagez.com/zimage*
  183. // @match http://*.pictureturn.com/*.html
  184. // @match http://*.cubeupload.com/im/*
  185. // @match http://www.photo-host.org/view-image/*
  186. // @match http://www.fotoszok.pl/show*
  187. // @match http://*.imglink.ru/show*
  188. // @match http://zapodaj.net/*.html
  189. // @match http://www.pixic.ru/view*
  190. // @match http://www.imagesup.de/picture.php?code=*
  191. // @match http://www.pornbus.org/show*
  192. // @match http://www.bilder-space.de/bild-*
  193. // @match http://www.imgcarry.com/show*
  194. // @match http://*.saveimg.ru/show*
  195. // @match http://www.fotos-hochladen.net/view*
  196. // @match http://simplest-image-hosting.net/*
  197. // @match http://jpegbay.com/gallery/*.html
  198. // @match http://www.hostpic.org/view*
  199. // @match *://imagik.fr/image/*
  200. // @match http://www.image-load.net/show*
  201. // @match http://*.sxpics.nl/img-*
  202. // @match http://*.gallerycloud.net/image/*
  203. // @match http://tryimg.com/image/*
  204. // @match http://bilder.nixhelp.de/display-*
  205. // @match http://*.funextra.hostzi.com/view*
  206. // @match http://*.freakimage.com/view*
  207. // @match http://*.fotoo.pl/show.php?img=*.html
  208. // @match http://*.rapid-img.de/img.php?f=*
  209. // @match http://*.1pics.ru/view-*
  210. // @match http://*.1pics.ru//view-*
  211. // @match http://*.upload.djmaster.fr/?v=*
  212. // @match http://img.pereslavl.ru/share*
  213. // @match http://*.dwimg.com/view*
  214. // @match http://www.imageurlhost.com/view*
  215. // @match http://*.imagesup.net/*
  216. // @match http://*.superkipje.com/view*
  217. // @match https://*.2i.sk/i/*
  218. // @match http://www.imgadult.com/img-*
  219. // @match http://www.picshot.pl/public/view*
  220. // @match http://*.imagesmax.de/display-*
  221. // @match http://*.ifotos.pl/zobacz/*
  222. // @match http://www.zimage.fr/photo.php?id=*
  223. // @match http://www.zimage.fr/taillereel.php?id=*
  224. // @match http://ngarko.online.fr/view*
  225. // @match http://*.b4he.com/?v=*
  226. // @match http://*.oxily.com/?*
  227. // @match http://ghanaimages.co/?*
  228. // @match http://*.imgplus.info/view*
  229. // @match http://firepic.org/?v=*
  230. // @match http://savepic.org/*.htm
  231. // @match http://*.fastimages.ru/p*
  232. // @match http://ipic.su/?page=img&pic=*
  233. // @match http://*.jpegshare.net/*.html
  234. // @match http://*.overdream.cz/*
  235. // @match http://*.fastpics.net/?v=*
  236. // @match http://www.ii4.ru/image-*
  237. // @match http://*.picuploader.de/*
  238. // @match http://*.rupict.ru/share*
  239. // @match http://bildr.no/view*
  240. // @match http://www.subeimagenes.com/img*
  241. // @match http://screenshot.ru/*
  242. // @match http://*.hostpix.de/show.php?img*
  243. // @match http://*.freeuploadimages.org/view*
  244. // @match http://smages.com/?v=*
  245. // @match http://*.hostingkartinok.com/show-image.php?id=*
  246. // @match http://*.4put.ru/*max*
  247. // @match http://www.pictureshack.ru/view*
  248. // @match http://*.host99.byethost4.com/share.php?id=*
  249. // @match http://*.eazypics.net/share*
  250. // @match http://xtupload.com/share.php?id=*
  251. // @match http://t.williamgates.net/share*
  252. // @match http://photosex.biz/v.php?id=*
  253. // @match http://*.imageteam.org/img-*
  254. // @match http://*.hostimage.ru/photo*
  255. // @match http://www.loaditup.de/*.html
  256. // @match http://*.imgbox.de/show/img*
  257. // @match http://*.picszone.net/view*
  258. // @match http://*.images.share-films.net/view*
  259. // @match http://www.uploadking.biz/show*
  260. // @match http://foto.xhost.lv/show.php?img=*
  261. // @match http://*.imagefile.org/view*
  262. // @match http://*.onimage.net/show*
  263. // @match http://*.uploadagent.de/show*
  264. // @match http://*.bildjunkies.de/view*
  265. // @match http://*.foto.hcfor.pl/view*
  266. // @match http://*.pic.tooptarinha.com/view*
  267. // @match http://*.poopr.org/view*
  268. // @match http://*.xp-images.hi2.ro/view*
  269. // @match http://*.dayzeddesigns.com/view*
  270. // @match http://*.freeimghosting.co.uk/view*
  271. // @match http://*.123poze.3x.ro/view*
  272. // @match http://*.upload.removed.us/view*
  273. // @match http://*.ximg.co.uk/view*
  274. // @match http://sl-images.ath.cx/view*
  275. // @match http://*.picatom.com/*
  276. // @match http://www.picshare.ru/view*
  277. // @match http://*.pikczery.pl/view*
  278. // @match http://*.imghost.pl/index.php?id=*
  279. // @match http://*.udostepniaj.pl/view*
  280. // @match http://*.hosting-zdjec.pl/view*
  281. // @match http://*.zapisz.net/view*
  282. // @match http://www.imagehosting.cz/?v=*
  283. // @match http://www.dumparump.com/view*
  284. // @match http://*.myxpic.com/showpic*
  285. // @match http://*.picness.com/image/*
  286. // @match http://h4z.it/View*
  287. // @match http://*.freeamateurteens.net/view*
  288. // @match http://*.fotoshack.us/foto*
  289. // @match http://*.image-server.ru/view*
  290. // @match http://*.imagebin.ca/v/*
  291. // @match http://*.loadpix.de/*.html
  292. // @match http://www.public-pic.de/image/show/*
  293. // @match http://*.9foto.ru/photo/*
  294. // @match http://uploads.ru/*
  295. // @match http://*.storepic.com/show*
  296. // @match http://www.myimg.de/?img=*
  297. // @match http://*.root-space.eu/file*
  298. // @match http://*.hot-file.org/p*
  299. // @match http://*.hostarea.de/show*
  300. // @match http://mepic.ru/view/?id=*
  301. // @match http://*.upislam.com/view*
  302. // @match http://*.ngarko.free.fr/view*
  303. // @match http://*.add-screen.com/view*
  304. // @match http://image.siroro.co.uk/p*
  305. // @match http://thaisharing.online.fr/view*
  306. // @match http://*.images.collectiontricks.it/view*
  307. // @match http://*.my-collection.ru/view*
  308. // @match http://img.schattorie.nl/view*
  309. // @match http://*.forexrainbow.com/view*
  310. // @match http://*.imgupload.pl/view*
  311. // @match http://*.1y9y.com/view*
  312. // @match http://*.addpix.net/view*
  313. // @match http://www.myuploadedimages.com/view*
  314. // @match http://multihoster.saxonia-fighter.de/view*
  315. // @match http://knecht.novarata.net/?*
  316. // @match http://*.img.irandeliver.com/?*
  317. // @match http://*.xferz.com/?*
  318. // @match http://*.up.kfesfahan.com/?*
  319. // @match http://*.image.alesher.com/?*
  320. // @match http://upload.khontai.com/?*
  321. // @match http://*.image.pantyhosemania.info/?*
  322. // @match http://*.addyourpics.com/image*
  323. // @match http://*.imgnext.com/img-*
  324. // @match http://*.qattach.com/p*
  325. // @match http://*.host4images.com/view*
  326. // @match http://*.imgbank.cz/*
  327. // @match http://*.nyanimg.com/*
  328. // @match http://*.geekpics.in/*
  329. // @match http://*.imagesloading.altervista.org/?*
  330. // @match http://*.showmyimage.com/*
  331. // @match http://*.phpbbmods.it/immaggini*
  332. // @match http://*.mynameismiz.com/*
  333. // @match http://upload.supreme-elite.fr/?*
  334. // @match http://*.fotohelp.kz/image*
  335. // @match https://*.myimg.me/*
  336. // @match http://*.heberg-hush.org/?*
  337. // @match http://*.oltaciyukle.com/*
  338. // @match http://*.pichost.name/*
  339. // @match *://*.fsfiles.org/flightsimshotsv2/image/*
  340. // @match http://*.imagend.com/*
  341. // @match http://*.imagerocket.com/*
  342. // @match http://*.hyyathost.com/*
  343. // @match http://images.reptilescanada.com/*
  344. // @match http://*.lakhdaria.net/imagebank/?*
  345. // @match http://*.webjardiner.com/hebergement_images_photos/image*
  346. // @match http://*.intergranada.com/images/?*
  347. // @match http://*.partizansk.eu/foto/image*
  348. // @match http://*.xenopix.com/?*
  349. // @match http://*.wepic.ru/*
  350. // @match http://*.imgup.com/images*
  351. // @match http://*.picturepush.com/public*
  352. // @match http://*.upload-image.fr/*
  353. // @match http://*.iezz.com/?*
  354. // @match http://*.fileaimage.com/?*
  355. // @match https://*.images.baconbits.org/?*
  356. // @match http://*.kuvajako.com/*
  357. // @match http://*.upanh.ovo.vn/*
  358. // @match http://*.imagesaur.com/*
  359. // @match http://*.wrzucaj.net/*
  360. // @match http://*.heberge-images.com/?*
  361. // @match http://www.image.kg/*
  362. // @match http://*.picshome.ru/?*
  363. // @match http://*.savemyimage.com/*
  364. // @match http://*.img.dramacafe.tv/*
  365. // @match http://*.hosturimage.com/img-*
  366. // @match http://*.pic-mir.ru/*/*
  367. // @match http://*.244pix.com/view*
  368. // @match http://*.uploadimage.ro/view*
  369. // @match http://*.imgflare.com/*/*
  370. // @match http://www.imagefap.com/photo/*
  371. // @match http://filefap.com/view*
  372. // @match *://imgur.com/*
  373. // @exclude *://imgur.com/*,*
  374. // @match http://motherless.com/*
  375. // @match http://*.xpic.biz/*/view*
  376. // @match http://*.tumblr.com/image/*
  377. // @match http://*.imageporter.com/*
  378. // @match http://*.damimage.com/img-*
  379. // @match http://fapping.empornium.sx/*
  380. // @match http://*.bulkimg.info/img-*
  381. // @match http://imgboxxx.com/view*
  382. // @match http://*.imghere.net/view*
  383. // @match http://*.sharepic.biz/show-image.php?id=*
  384. // @match http://f-lite.ru/*
  385. // @match http://*.picturescream.com/*
  386. // @match http://*.imgdone.com/view*
  387. // @match https://*.2i.cz/i/*
  388. // @match http://awesomescreenshot.com/*
  389. // @match *://*.flickr.com/photos/*/*/
  390. // @exclude /^https?://(www\.)?flickr\.com/photos/([^/]+)/(sets/.*|page.*|with.*|favorites.*)?$/
  391. // @match http://www.amateri.cz/g*/*
  392. // @match http://*.imgshow.me/*
  393. // @match *://*.wikipedia.org/wiki/*:*.jp*
  394. // @match *://*.wikipedia.org/wiki/*:*.png
  395. // @match *://*.wikimedia.org/wiki/File:*.jp*
  396. // @match *://*.wikimedia.org/wiki/File:*.pn*
  397. // @match http://*.xxxscreens.com//img-*
  398. // @match http://avenuexxx.com/*-*
  399. // @match http://www.bilderhoster.net/*.html
  400. // @match http://*.xxxscreens.com/img-*
  401. // @match http://*.imgdope.com/view*
  402. // @match http://*.imagehost.eu/*
  403. // @match http://*.aveimage.com/view*
  404. // @match http://*.fappic.com/*
  405. // @match http://*.imagenimage.com/*/*
  406. // @match http://*.adultur.com/img-*
  407. // @match http://*.imageshimage.com/*/*
  408. // @match http://*.imgswift.com/*/*
  409. // @match http://*.imageporn.eu/?v=*
  410. // @match https://500px.com/photo/*
  411. // @match http://*.greenpiccs.com/images/*.html
  412. // @match http://*.hostmat.eu/view*
  413. // @match http://*.photobucket.com/user/*/media/*.htm*
  414. // @match http://www.imgshots.com/img*
  415. // @match http://www.imgshots.com/show/*
  416. // @match http://*.3xplanet.com/view*
  417. // @match http://*.imgmega.com/*.html
  418. // @match *://img.yt/img-*
  419. // @match http://*.payforpic.ru/*/*/
  420. // @match http://*.keep4u.ru/full/*
  421. // @match http://*.pic.re/*.html
  422. // @match http://*.freshpics.ru/*/*/
  423. // @match http://*.sexyimg.eu/img-*
  424. // @match *://*.imgseeds.com/img-*
  425. // @match http://*.pronpic.org/*/*
  426. // @match http://prnt.sc/*
  427. // @match http://*.imgdream.net/view*
  428. // @match http://*.imgtab.net/*
  429. // @match http://*.kephost.com/image/*
  430. // @match http://i.ruspotting.net/image/*
  431. // @match http://*.gifyu.com/image/*
  432. // @match https://*.picr.ws/image/*
  433. // @match https://www.linkmypic.com/image/*
  434. // @match http://celebimg.com/image/*
  435. // @match http://*.sharepic.org/image/*
  436. // @match http://*.zuly.de/image/*
  437. // @match http://upload.vstanced.com/image/*
  438. // @match http://*.thro.bz/image/*
  439. // @match http://*.qoou.net/image/*
  440. // @match http://brightpic.tk/image/*
  441. // @match http://*.cweb-pix.com/image/*
  442. // @match http://hosting.webspell.fr/image/*
  443. // @match http://*.i-pict.ru/image/*
  444. // @match http://*.images.woh.to/image/*
  445. // @match http://*.imghaze.com/image/*
  446. // @match http://*.imgup.nl/image/*
  447. // @match http://*.kuvapankki.in/image/*
  448. // @match http://*.myimageshare.com/image/*
  449. // @match http://*.nium.co/image/*
  450. // @match http://pix.hostux.net/image/*
  451. // @match http://*.pixoload.de/image/*
  452. // @match http://*.primeimg.co/image/*
  453. // @match http://pic.xtream-reallife.de/image/*
  454. // @match http://*.ultraimg.com/image/*
  455. // @match http://demo.chevereto.com/image/*
  456. // @match http://imgclick.net/*
  457. // @match http://*.gogoimage.org/img-*
  458. // @match http://imgmoney.ru/*.html
  459. // @match http://imgmoney.ru/full/
  460. // @match http://*.imglooks.com/img-*
  461. // @match http://*.you-logo.ru/show*
  462. // @match http://*.uploadimagex.com/view*
  463. // @match http://*.powerlogo.ru/show*
  464. // @match http://youpicture.org/?v=*
  465. // @match http://*.all-poster.ru/?v=*
  466. // @match http://*.picbug.ru/share*
  467. // @match http://*.sxpix.nl/img-*
  468. // @match http://*.hotflick.net/u/v/?q=*
  469. // @match http://*.hotflick.net/f/v/?q=*
  470. // @match http://vavvi.com/images/*.html
  471. // @match http://*.deviantart.com/art/*
  472. // @match http://*.myceleb.net/u/v/?q=*
  473. // @match http://*.imageblinks.com/img-*
  474. // @match http://*.gelbooru.com/index.php?page=post&s=view&id=*
  475. // @match http://*.youhate.us/index.php?page=post&s=view&id=*
  476. // @match http://danbooru.donmai.us/posts/*
  477. // @match http://konachan.com/post/show/*
  478. // @match http://konachan.net/post/show/*
  479. // @match https://yande.re/post/show/*
  480. // @match https://chan.sankakucomplex.com/*post/show/*
  481. // @match https://yande.re/post/show/*
  482. // @match http://www.zerochan.net/*
  483. // @match http://*.imgrock.net/*.php
  484. // @match http://imgzap.com/view*
  485. // @match http://*.funimg.net/img-*
  486. // @match http://*.olivepix.com/view/*
  487. // @match http://*.ocaload.com/img-*
  488. // @match http://*.imghit.com/img-*
  489. // @match http://*.imageon.org/img-*
  490. // @match http://*.imgcentral.com/view*
  491. // @match http://*.chronos.to/*
  492. // @match http://picspornfree.me/img-*
  493. // @match http://*.pic-you.com/p*
  494. // @match http://*.image-bugs.com/*mage/*
  495. // @match http://*.pixhst.com/pictures/*
  496. // @match http://*.imgdrive.net/img-*
  497. // @match http://www.pixiv.net/member_illust.php?mode=medium&illust_id=*
  498. // @match http://*.scrin.org/?v=*
  499. // @match http://*.thumbnailus.com/img-*
  500. // @match http://*.nimplus.com/img-*
  501. // @match http://www.imgtaxi.com/img-*
  502. // @match http://*.imgstudio.org/img-*
  503. // @match http://goimge.com/img-*
  504. // @match http://*.safeimage.biz/image/*
  505. // @match http://*.picclick.ru/*/*/
  506. // @match http://*.imgclover.com/image/*
  507. // @match http://*.imgz.pw/share-*
  508. // @match *://*.imgking.co/img*
  509. // @match http://ask.fm/*/photo/original
  510. // @match http://cuteimg.cc/*
  511. // @match http://*.newimagepost.com/img-*
  512. // @match http://*.imageho.me/img-*
  513. // @match http://myimg.club/*
  514. // @match http://*.imgease.re/img-*
  515. // @match http://www.hotimage.uk/img-*
  516. // @match http://imgview.net/*.php
  517. // @match http://*.10.imageleon.com/i-*
  518. // @match https://www.dropbox.com/s/*/*
  519. // @match http://imgor.net/img-*
  520. // @match http://*.imagedax.net/*/*.html
  521. // @match http://*.imgmonkey.com/*/*.html
  522. // @match http://*.fapat.me/img-*
  523. // @match http://photo.weibo.com/*/large/photo_id/*
  524. // @match http://*.crazyimg.com/images/*.html
  525. // @match http://imgbe.com/img-*
  526. // @match https://*.imgextra.uk/image/*
  527. // @match http://*.extraimago.com/image/*
  528. // @match http://*.fireimg.cc/img-*
  529. // @match http://www.pornimagex.com/image/*
  530. // @match http://*.imgboom.net/img-*
  531. // @match http://*.img24.org/*.html
  532. // @match http://*.pic-maniac.com/*
  533. // @match https://*.instagram.com/p/*
  534. // @exclude https://instagram.com/p/*/embed/*
  535. // @exclude https://*.instagram.com/p/*/embed/*
  536. // @match http://*.imgsay.com/?v=*
  537. // @match http://*.imgsmile.com/?v=*
  538. // @match http://*.balkanelite.org/MultiHoster/view*
  539. // @match https://twitter.com/*/photo/*
  540. // @match http://*.icezap.com/img-*
  541. // @match *://*.rapidimg.net/img-*
  542. // @match http://foxyimg.link/*
  543. // @match http://*.imgtornado.com/img-*
  544. // @match http://*.daily-img.com/image/*
  545. // @match http://*.imageab.com/image/*
  546. // @match http://*.erimge.com/img-*
  547. // @match http://*.imgtrial.com/img-*
  548. // @match http://imgtown.net/*.php
  549. // @match http://ameblo.jp/*/image-*
  550. // @match http://*.loftlm.ru/img-*
  551. // @match http://*.imgdragon.com/*/*.html
  552. // @match http://ftop.ru/*/*
  553. // @match http://*.imgurx.net/share*
  554. // @match http://savepic.ru/*.htm
  555. // @match http://*.imgmaid.net/*
  556. // @match http://*.imggold.org/*/*.html
  557. // @match http://*.imgcredit.xyz/img-*
  558. // @match http://*.dimtus.com/img-*
  559. // @match http://*.coreimg.net/*
  560. // @match http://sfwimg.com/image/*
  561. // @match http://*.imgtiger.org/*/*
  562. // @match http://*.img3x.com/image/*
  563. // @match http://*.imguniversal.com/*
  564. // @match http://*.imagepearl.com/view/*
  565. // @match http://*.tinizo.com/img-*
  566. // @match http://*.imgkings.com/img*
  567. // @match http://*.imagerar.com/img*
  568. // @match http://*.sendpic.org/view/*
  569. // @match http://www.porncomix.info/*/*/
  570. // @exclude http://www.porncomix.info/gallery/*
  571. // @match http://*.imgclick.ru/*/*/
  572. // @match http://*.svetmonet.ru/*.html
  573. // @match http://*.svetmonet.ru/full/
  574. // @match http://*.imgpix.net/*
  575. // @match https://*.imgzulu.com/img-*
  576. // @match http://*.freeimagehostin.com/img-*
  577. // @match http://www.mixbase.net/gallery/image.*
  578. // @match http://www.adultimages.xyz/*/image*.html
  579. // @match http://*.pic4share.ru/*.html
  580. // @match http://*.pic4share.ru/full/
  581. // @match http://*.sximg.nl/img-*
  582. // @match http://*.0img.net/?v=*
  583. // @match http://ss.movierls.net/image/*
  584. // @match http://www.xxximagetpb.org/image/*
  585. // @match http://www.pixsense.net/site/v/*
  586. // @match http://imgoutlet.com/*.php
  587. // @match http://imgoutlet.com/*/*.html
  588. // @match http://*.pix.ac/image/*
  589. // @match *://*.imgmak.com/image/*
  590. // @match http://*.freephotohostin.com/img-*
  591. // @match http://*.imgcat.pw/img-*
  592. // @match http://*.levinpic.org/*.html
  593. // @match https://www.sparrowpics.com/image/*
  594. // @match http://*.imgmax.com/image/*
  595. // @match http://lostpix.com/?v=*
  596. // @match https://extraimago.com/image/*
  597. // @match http://*.imgroute.com/?v=*
  598. // @match http://www.joblo.com/hollywood-celebrities/hottie-profile/*/image-gallery/*.jpg
  599. // @match *://extraimage.net/image/
  600. // @match *://www.bellazon.com/main/attachment/*
  601. // @match *://extraimage.net/image/*
  602. // @match https://www.artstation.com/artwork/*
  603. // @match http://bcy.net/illust/detail/*
  604. // @match http://*.imgpics.nl/img-*
  605. // @match http://*.imagexxx18.com/image/*
  606. // @match http://*.imagepics.xyz/img-*
  607. // @match *://*.imagesouls.net/img*
  608. // @match *://postto.me/*
  609. // @match http://*.imgskull.xyz/image/*
  610. // @match *://*.ninjaimages.com/*.html
  611. // @match *://*.imgprime.com/img*
  612. // @match http://*.imgmaze.com/*.php
  613. // ==/UserScript==
  614.  
  615. if (typeof unsafeWindow === "undefined")
  616. {
  617. unsafeWindow = window;
  618. }
  619.  
  620. if (typeof GM_registerMenuCommand !== "undefined")
  621. {
  622. GM_registerMenuCommand("Handy Image Configuration", cfg, "C");
  623. }
  624.  
  625. if(window.location.href.lastIndexOf(window.location.hostname) + window.location.hostname.length + 1 == window.location.href.length)
  626. {
  627. console.warn("we are on website's main page, aren't we?");
  628. return false;
  629. }
  630. if (document.images.length == 1 && document.images[0].src == window.location.href)
  631. {
  632. console.warn("handy isn't needed for directly opened images");
  633. return false;
  634. }
  635. if(document.referrer)
  636. {
  637. if(document.referrer.lastIndexOf(window.location.hostname) != -1 && document.referrer.lastIndexOf(window.location.hostname) +1 == document.referrer.length - window.location.hostname.length)
  638. {
  639. console.warn("you have just uploaded a picture, haven't you?");
  640. return false;
  641. }
  642. }
  643. if(document.cookie.indexOf("hji=") != -1)
  644. {
  645. if(document.cookie.indexOf("hji=" + window.location.href) != -1)
  646. {
  647. console.warn("you just don't want the script to run now, do you?");
  648. document.cookie = "hji=; expires=Thu, 01 Jan 1970 00:00:01 GMT;";
  649. return false;
  650. }
  651. else if(document.cookie.indexOf("backhji=") != -1)
  652. {
  653. console.warn("you have found a time machine, now you are traveling back in history");
  654. window.history.go(-1);
  655. document.cookie = "hji=; expires=Thu, 01 Jan 1970 00:00:01 GMT;";
  656. return false;
  657. }
  658. console.warn("found a weird cookie, let's eat it");
  659. document.cookie = "hji=; expires=Thu, 01 Jan 1970 00:00:01 GMT;"; // stealth mode
  660. }
  661. //else{ console.warn("no hji cookie found");}
  662.  
  663. function q(s){if(document.body){return document.body.querySelector(s);}return null;}
  664. var cfg_direct;
  665. var cfg_bgclr;
  666. var cfg_fitWH = true;
  667. var cfg_fitB;
  668. var cfg_fitS;
  669. var cfg_js;
  670. var dp = false;
  671. var rescaled = false;
  672. var tb;
  673. var timeout = 1000;
  674. var FireFox = ((navigator.userAgent.indexOf('Firefox') != -1) ? true : false);
  675. var i;
  676. var j;
  677. var iurl = window.location.hostname;
  678. if(!iurl.indexOf("www."))
  679. {
  680. iurl = iurl.substr(4);
  681. }
  682.  
  683. function ws()
  684. {
  685. if(!FireFox) // NOT firefox
  686. {
  687. window.stop();
  688. }
  689. }
  690.  
  691. function sanitize() // lol I'm such a hacker
  692. {
  693. var lasttask = setTimeout(function() {},0);
  694. for(var n = lasttask; n > 0; n--)
  695. {
  696. clearTimeout(n);
  697. }
  698. }
  699.  
  700. function onscript(e)
  701. {
  702. //console.warn( "STOPPED: " + e.target.src + e.target.innerHTML);
  703. e.preventDefault();
  704. e.stopPropagation();
  705. }
  706.  
  707. function onbeforeunload(e) // back helper
  708. {
  709. //console.warn("setting hji cookie before unloading page");
  710. var now = new Date();
  711. var time = now.getTime();
  712. time += 2000; // 2 sec to help quit double-pages
  713. now.setTime(time);
  714. now.toGMTString();
  715. document.cookie = 'backhji=; expires=' + now.toGMTString() + '; path=/';
  716. }
  717.  
  718. function protected_createElement(el)
  719. {
  720. delete document.createElement;
  721. var r = document.createElement(el);
  722. unsafeWindow.document.createElement = null;
  723. return r;
  724. }
  725.  
  726. function makeimage()
  727. {
  728. loadCfg();
  729. if(cfg_direct){unsafeWindow.location.href = i.src;return false;}
  730. if(cfg_bgclr){document.body.bgColor = cfg_bgclr;}
  731. document.body.style.margin = "0px";
  732. document.body.innerHTML = "<style>img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; image-orientation: from-image; }</style>"; // center image
  733. ws();
  734. var isrc = i.src;
  735. i = protected_createElement("img");
  736. i.src = isrc;
  737. i.style.margin = "auto"; // center image
  738. document.body.appendChild(i);
  739. i.addEventListener("click", rescale, true);
  740. window.addEventListener("keydown", onkeydown, true);
  741. if(dp){console.warn("you are on a double-page image hosting (probably)");window.addEventListener("beforeunload", onbeforeunload, true);}
  742. autoresize();
  743. }
  744.  
  745. function find_text_in_scripts(a, b, o, h)
  746. {
  747. var s = document.getElementsByTagName("script");
  748. for(var c=0;c<s.length;c++)
  749. {
  750. if(h && s[c].innerHTML.indexOf(h) != -1){s[c].innerHTML = s[c].innerHTML.substring(0, s[c].innerHTML.indexOf(h));}
  751. var start_pos = o ? s[c].innerHTML.indexOf(a) : s[c].innerHTML.lastIndexOf(a);
  752. if(start_pos == -1){continue;}
  753. start_pos += a.length;
  754. i = s[c];
  755. i.src = decodeURIComponent(s[c].innerHTML.substring(start_pos,s[c].innerHTML.indexOf(b,start_pos)).split("\\").join("")); // split\join fix for stupidfox GreaseMonkey
  756. return true;
  757. }
  758. return false;
  759. }
  760.  
  761. function post(path, params, method)
  762. {
  763. method = method || "post";
  764. var form = protected_createElement("form");
  765. form.setAttribute("method", method);
  766. form.setAttribute("action", path);
  767. for(var key in params)
  768. {
  769. if(params.hasOwnProperty(key))
  770. {
  771. var hiddenField = protected_createElement("input");
  772. hiddenField.setAttribute("type", "hidden");
  773. hiddenField.setAttribute("name", key);
  774. hiddenField.setAttribute("value", params[key]);
  775.  
  776. form.appendChild(hiddenField);
  777. }
  778. }
  779. document.body.appendChild(form);
  780. form.submit();
  781. }
  782.  
  783. function makeworld()
  784. {
  785. if(i){return;}
  786. // per-host image detection
  787. switch (iurl)
  788. {
  789. case "gist.github.com":
  790. if(document.body){i=1;cfg();}break;
  791. case "vvcap.net":
  792. case "simplest-image-hosting.net":
  793. case "hostimage.ru":
  794. case "imagebin.ca":
  795. case "imgchili.net":
  796. case "pixhst.com":
  797. case "adultimages.xyz":
  798. case "depic.me":
  799. i = q('img');
  800. break;
  801. case "myceleb.net":
  802. i = q('img[id]');
  803. break;
  804. case "savepic.org":
  805. case "savepic.ru":
  806. i = q('a img:not([src*="/images/"])');
  807. break;
  808. case "motherless.com":
  809. j = true;
  810. i = q('div#media-media div a img');
  811. break;
  812. case "awesomescreenshot.com":
  813. i = q('img#screenshot');
  814. break;
  815. case "dropbox.com":
  816. j = true;
  817. i = q('img.preview-image');
  818. if(i)
  819. {
  820. i = q('a[href*="?dl=1"]');
  821. if(i)
  822. {
  823. i.src = i.href;
  824. }
  825. }
  826. break;
  827. case "img.3ezy.net":
  828. case "image-bugs.com":
  829. case "imgclover.com":
  830. case "demo.chevereto.com":
  831. case "daily-img.com":
  832. case "celebimg.com":
  833. case "sfwimg.com":
  834. case "img3x.com":
  835. case "lostpic.net":
  836. case "imgskull.xyz":
  837. case "2i.sk":
  838. case "2i.cz":
  839. case "deffe.com":
  840. case "imagik.fr":
  841. case "gallerycloud.net":
  842. case "tryimg.com":
  843. case "fsfiles.org":
  844. //chevereto 3.x
  845. i = document.head.querySelector('link[rel="image_src"]');
  846. if(i)
  847. {
  848. i.src = i.href;
  849. i.src = i.src.replace('_800.', '.'); //img.3ezy.net
  850. }
  851. break;
  852. case "directupload.net":
  853. case "bilderhoster.net":
  854. case "noelshack.com":
  855. case "kephost.com":
  856. case "i.ruspotting.net":
  857. case "gifyu.com":
  858. case "picr.ws":
  859. case "linkmypic.com":
  860. case "sharepic.org":
  861. case "zuly.de":
  862. case "upload.vstanced.com":
  863. case "thro.bz":
  864. case "qoou.net":
  865. case "brightpic.tk":
  866. case "cweb-pix.com":
  867. case "hosting.webspell.fr":
  868. case "i-pict.ru":
  869. case "images.woh.to":
  870. case "imghaze.com":
  871. case "imgup.nl":
  872. case "kuvapankki.in":
  873. case "myimageshare.com":
  874. case "nium.co":
  875. case "pix.hostux.net":
  876. case "pixoload.de":
  877. case "primeimg.co":
  878. case "pic.xtream-reallife.de":
  879. case "ultraimg.com":
  880. case "safeimage.biz":
  881. case "imagebam.com":
  882. case "twitter.com":
  883. case "imgextra.uk":
  884. case "ss.movierls.net":
  885. case "xxximagetpb.org":
  886. case "pix.ac":
  887. case "sparrowpics.com":
  888. case "prnt.sc":
  889. case "imgmax.com":
  890. case "extraimago.com":
  891. case "extraimage.net":
  892. i = document.querySelector('meta[property="og:image"] , [name="og:image"]');
  893. if(i)
  894. {
  895. i.src = i.content;
  896. i.src = i.src.replace(':large', ':orig'); //twitter.com
  897. }
  898. else
  899. {
  900. i = q('a[download]');
  901. if(i){i.src = i.href;}
  902. }
  903. break;
  904. case "imgur.com":
  905. j = true;
  906. i = document.head.querySelector('meta[property="og:image"]');
  907. if(i)
  908. {
  909. var f = document.head.querySelector('meta[property="og:url"]');
  910. var v = document.head.querySelector('meta[property="og:video"]');
  911. if((f && (f.content.indexOf("/a/") != -1 || f.content.indexOf("/gallery/") != -1) ) || i.content.indexOf("/images/logo") != -1)
  912. {
  913. return;
  914. }
  915. else if(v)
  916. {
  917. i.src = v.content.replace('.mp4', '.gif');
  918. }
  919. else
  920. {
  921. i.src = i.content;i.src = i.src.split('?')[0];
  922. }
  923. }
  924. break;
  925. case "ameblo.jp":
  926. j=true;
  927. i = q('img#imgItem');
  928. break;
  929. case "instagram.com":
  930. j = true;
  931. find_text_in_scripts('display_src": "', '"');
  932. if(i)
  933. {
  934. if(!find_text_in_scripts('is_video": true', ','))
  935. {
  936. i.src = i.src.replace(/\/p\d+x\d+?\//, '/');
  937. }
  938. else
  939. {
  940. i = null;
  941. }
  942. }
  943. break;
  944. case "flickr.com":
  945. case "secure.flickr.com":
  946. find_text_in_scripts('"url":"', '"', false, '"canComment"');
  947. break;
  948. case "500px.com":
  949. find_text_in_scripts('"https_url":"', '"', false);
  950. break;
  951. case "artstation.com":
  952. find_text_in_scripts('"image_url\\":\\"', '\\"', false);
  953. break;
  954. case "pixiv.net":
  955. j = true;
  956. i = q("img.original-image");
  957. if(i){i.src = i.dataset.src;}
  958. break;
  959. case "chan.sankakucomplex.com":
  960. i = q('a[itemprop="contentUrl"]');
  961. if(i)
  962. {
  963. i.src = i.href;
  964. }
  965. break;
  966. case "bcy.net":
  967. var f = document.querySelectorAll("img.detail_clickable")
  968. if(f.length == 1)
  969. {
  970. i = f[0];
  971. i.src = f[0].src.replace('/w650', '');
  972. }
  973. break;
  974. case "imageshack.com":
  975. i = q('input[value*="' + iurl + '/f/"]');
  976. if(i){window.location.href = i.value.replace('/f/', '/i/');}
  977. i = q('img[data-width]');
  978. break;
  979. case "h4z.it":
  980. i = document.images[2];
  981. if(i){i.src = i.parentNode.href;}
  982. break;
  983. case "thumbsnap.com":
  984. i = q('img#thepic');
  985. if(i && i.parentNode.href){i.src = i.src.replace('/s/', '/i/');}
  986. break;
  987. case "imgbox.com":
  988. case "imageupper.com":
  989. case "hotflick.net":
  990. case "upix.me":
  991. i = q('img#img');
  992. if(!i && window.location.hash) // upix.me
  993. {
  994. i = q('a');
  995. i.src = window.location.href.replace("#","");
  996. }
  997. break;
  998. case "imagesnake.com":
  999. case "freebunker.com":
  1000. case "imagefruit.com":
  1001. case "imagestime.com":
  1002. case "imgcarry.com":
  1003. case "pornbus.org":
  1004. case "fotoo.pl":
  1005. case "hostpix.de":
  1006. case "uploadking.biz":
  1007. case "foto.xhost.lv":
  1008. case "onimage.net":
  1009. case "storepic.com":
  1010. case "hostarea.de":
  1011. case "imgshots.com":
  1012. i = q('img#img_obj');
  1013. break;
  1014. case "pimpandhost.com":
  1015. case "fastpic.ru":
  1016. case "abload.de":
  1017. i = document.body.querySelectorAll('img#image');
  1018. if(i)
  1019. {
  1020. i = i[i.length-1];
  1021. }
  1022. break;
  1023. case "pikucha.ru":
  1024. i = q('img#image');
  1025. j = true;
  1026. break;
  1027. case "bayimg.com":
  1028. i = q('img#mainImage');
  1029. break;
  1030. case "imageban.ru":
  1031. case "imageban.net":
  1032. i = q('img[src*="' + iurl + '/out/"]');
  1033. break;
  1034. case "xup.in":
  1035. i = q('img[src*="/exec/"]');
  1036. break;
  1037. case "jpegbay.com":
  1038. i = q('a[class]');
  1039. if(i){i.src = i.href;}
  1040. break;
  1041. case "keep4u.ru":
  1042. i = q('img[src*="/b/"]');
  1043. break;
  1044. case "euro-pic.eu":
  1045. case "picpicture.com":
  1046. case "picfox.org":
  1047. case "freeimage.us":
  1048. case "xxx.freeimage.us":
  1049. case "pixsor.com":
  1050. case "img.pereslavl.ru":
  1051. case "rupict.ru":
  1052. case "host99.byethost4.com":
  1053. case "eazypics.net":
  1054. case "xtupload.com":
  1055. case "t.williamgates.net":
  1056. case "imgz.pw":
  1057. case "imgurx.net":
  1058. //i = q('img#iimg');
  1059. find_text_in_scripts("<img src='", "'");
  1060. break;
  1061. case "amateri.cz":
  1062. if(find_text_in_scripts('var orig_url="', '"'))
  1063. {
  1064. i.src = i.src.replace('http://www.amateri.cz/orig.php?&img=', 'http://img2.amateri.cz/users/');
  1065. }
  1066. break;
  1067. case "pixsense.net":
  1068. find_text_in_scripts('"src","', '"');
  1069. break;
  1070. case "pix-x.net":
  1071. case "imgclick.ru":
  1072. i = q('img[onclick*="mshow"]');
  1073. if(i){i.src = i.src.replace('-thumb', '');i.src = i.src.replace('img_thumb', 'img_full');}
  1074. break;
  1075. case "pics-money.ru":
  1076. i = q('img[src*="/full/"]');if(i){break;}
  1077. case "pic5you.ru":
  1078. case "pic4you.ru":
  1079. case "picforall.ru":
  1080. case "picage.ru":
  1081. case "images-host.biz":
  1082. case "pic-mir.ru":
  1083. case "payforpic.ru":
  1084. case "freshpics.ru":
  1085. case "picclick.ru":
  1086. i = q('img[src*="thumb"]');
  1087. if(i){i.src = i.src.replace('-thumb', '');i.src = i.src.replace('img_thumb', 'img_full');i.src = i.src.replace('_thumb', '');}
  1088. break;
  1089. case "tinypic.com":
  1090. i = q('img#imgElement');
  1091. break;
  1092. case "picshot.pl":
  1093. i = q('img[src*="' + iurl + '/p"]');
  1094. if(i){i.src = i.src.replace('thumb', 'file');}
  1095. break;
  1096. case "sharenxs.com":
  1097. i = q('img.view_photo');
  1098. if(i){i.src = i.src.replace('/thumbnails/', '/images/');
  1099. i.src = i.src.replace('/tn-', '/');
  1100. i.src = i.src.replace('/mid/', '/wz/');
  1101. var fn = q('div.alert.alert-info.nomargin.photo_name span');
  1102. if(fn)
  1103. {
  1104. var url = i.src;
  1105. i.src = url.substring(0,url.lastIndexOf('/')+1) + fn.textContent + url.substring(url.lastIndexOf('.'));
  1106. }}
  1107. break;
  1108. case "radikal.ru":
  1109. case "radical-foto.ru":
  1110. case "radikal-foto.ru":
  1111. case "f-page.ru":
  1112. case "f-lite.ru":
  1113. case "f-picture.net":
  1114. find_text_in_scripts('"Url":"', '"');
  1115. break;
  1116. case "bilder-space.de":
  1117. case "imagesup.de":
  1118. i = q('img.picture');
  1119. break;
  1120. case "pix.toile-libre.org":
  1121. case "photo-host.org":
  1122. case "myxpic.com":
  1123. case "picness.com":
  1124. i = q('a[href*="original"]');
  1125. if(i){i.src = i.href;}
  1126. break;
  1127. case "picsee.net":
  1128. i = q('a[href*="/upload"]');
  1129. if(i){i.src = i.href;}
  1130. break;
  1131. case "danbooru.donmai.us":
  1132. i = q('a[href*="/data/"]');
  1133. if(i){i.src = i.href;}
  1134. break;
  1135. case "imagehost.eu":
  1136. case "fappic.com":
  1137. i = q('a#image');
  1138. if(i){i.src = i.href;}
  1139. break;
  1140. case "imgplus.info":
  1141. i = q('img[src*="full"]');
  1142. break;
  1143. case "zerochan.net":
  1144. i = q('a[href*="full"]');
  1145. if(i){i.src = i.href;}
  1146. break;
  1147. case "wstaw.org":
  1148. i = q('a[href*="/m/"]');
  1149. if(i){i.src = i.href;}
  1150. break;
  1151. case "imageshost.ru":
  1152. i = q('a[href*="/img/"]');
  1153. if(i){i.src = i.href;}
  1154. break;
  1155. case "uploadimage.ro":
  1156. i = q('img[src*="img.php"]');
  1157. break;
  1158. case "imageno.com":
  1159. i = q('img[src*="image.php"]');
  1160. break;
  1161. case "loadpix.de":
  1162. i = q('img[src*="bild.php"]');
  1163. break;
  1164. case "bildr.no":
  1165. i = q('img[src*="image"]');
  1166. break;
  1167. case "iv.pl":
  1168. case "funextra.hostzi.com":
  1169. case "freakimage.com":
  1170. case "imageurlhost.com":
  1171. case "superkipje.com":
  1172. case "ximg.co.uk":
  1173. case "sl-images.ath.cx":
  1174. case "pikczery.pl":
  1175. case "hosting-zdjec.pl":
  1176. case "upislam.com":
  1177. case "add-screen.com":
  1178. case "my-collection.ru":
  1179. case "img.schattorie.nl":
  1180. case "forexrainbow.com":
  1181. case "imgupload.pl":
  1182. case "addpix.net":
  1183. case "myuploadedimages.com":
  1184. case "multihoster.saxonia-fighter.de":
  1185. case "imgdone.com":
  1186. case "gelbooru.com":
  1187. case "youhate.us":
  1188. case "greenpiccs.com":
  1189. case "balkanelite.org":
  1190. i = q('a[href*="images/"]');
  1191. if(i){i.src = i.href;}
  1192. break;
  1193. case "fotoshack.us":
  1194. i = q('img[src*="/fotos/"]');
  1195. break;
  1196. case "subefotos.com":
  1197. j = true;
  1198. i = q('img[src*="fotos.' + iurl + '"]');
  1199. break;
  1200. case "pictureshoster.com":
  1201. case "zaslike.com":
  1202. case "dwimg.com":
  1203. case "uploadagent.de":
  1204. i = q('a[href*="files/"]');
  1205. if(i){i.src = i.href;}
  1206. break;
  1207. case "photosex.biz":
  1208. i = q('img[src*="/pic"]');
  1209. break;
  1210. case "pronpic.org":
  1211. i = q('img[src*="/pic/"]');
  1212. if(i){i.src = i.src.replace('th_', '');}
  1213. break;
  1214. case "imadul.com":
  1215. i = q('div.img_box a');
  1216. if(i){i.src = i.href;}
  1217. break;
  1218. case "imgmega.com":
  1219. case "pic.re":
  1220. case "foxyimg.link":
  1221. i = q('input[type="submit"]');
  1222. dp=true;
  1223. if(i)
  1224. {
  1225. i.click();
  1226. break;
  1227. }
  1228. case "turboimagehost.com":
  1229. case "screenlist.ru":
  1230. case "picshare.geenza.com":
  1231. case "mojoimage.com":
  1232. case "imagecherry.com":
  1233. case "10.imageleon.com":
  1234. case "img4.imagetitan.com":
  1235. case "ninjaimages.com":
  1236. i = q('img[onload*="scale"]');
  1237. break;
  1238. case "bild.me":
  1239. case "imagecarry.com":
  1240. case "imagedunk.com":
  1241. case "imageswitch.com":
  1242. case "piclambo.net":
  1243. case "picleet.com":
  1244. case "yankoimages.net":
  1245. case "picturedip.com":
  1246. case "imagezilla.net":
  1247. case "imageup.ru":
  1248. case "hotchyx.com":
  1249. case "imagehousing.com":
  1250. case "cubeupload.com":
  1251. case "dumparump.com":
  1252. case "uploads.ru":
  1253. case "myimg.de":
  1254. case "root-space.eu":
  1255. case "mepic.ru":
  1256. case "imagepearl.com":
  1257. case "postto.me":
  1258. i = q('img[src*="' + iurl + '"]');
  1259. break;
  1260. case "postimg.org":
  1261. case "postimg.cc":
  1262. i = q('img[data-full]');
  1263. if(i)
  1264. {
  1265. i.src = i.getAttribute('data-full');
  1266. }
  1267. break;
  1268. case "ask.fm":
  1269. i = q('img[src*="' + iurl + '"][id]');
  1270. i.src = i.src.replace('/original/', '/large/'); //ask.fm
  1271. break;
  1272. case "photo.weibo.com":
  1273. i = q('img[src*="/large/"]');
  1274. break;
  1275. case "picfront.org":
  1276. j = true;
  1277. i = q('img[src*="' + iurl + '"][title]');
  1278. break;
  1279. case "platimzafoto.ru":
  1280. case "pic-money.ru":
  1281. case "imgmoney.ru":
  1282. case "img24.org":
  1283. case "svetmonet.ru":
  1284. case "pic4share.ru":
  1285. var f = document.getElementsByTagName("button");
  1286. if(f.length)
  1287. {
  1288. f[0].click();
  1289. break;
  1290. }
  1291. dp=true;
  1292. i = q('img[src*="/pic.jpeg"]');
  1293. break;
  1294. case "imgkings.com":
  1295. case "imagerar.com":
  1296. if(window.location.href.indexOf("img-") != -1)
  1297. {
  1298. window.location.href = window.location.href.replace("img-","img2-");
  1299. break;
  1300. }
  1301. case "imgprime.com":
  1302. if(window.location.href.indexOf("img-") != -1)
  1303. {
  1304. window.location.href = window.location.href.replace("img-","img3-");
  1305. break;
  1306. }
  1307. case "freeimagehosting.net":
  1308. case "uploadhouse.com":
  1309. case "fotos-hochladen.net":
  1310. case "picshare.ru":
  1311. case "imgtab.net":
  1312. i = q('img[src*="uploads/"]');
  1313. break;
  1314. case "xtremeshack.com":
  1315. i = q('img[src*="/photos/"]');
  1316. break;
  1317. case "picturepush.com":
  1318. i = q('img[src*="/photo/"]');
  1319. break;
  1320. case "keptarolo.hu":
  1321. i = q('img[src*="/kep/"]');
  1322. break;
  1323. case "servimg.com":
  1324. i = q('img[src*="/u/"]');
  1325. break;
  1326. case "imagearn.com":
  1327. i = q('img[src*="/imags/"]');
  1328. break;
  1329. case "ichan.org":
  1330. i = q('img[src*="/src/"]');
  1331. break;
  1332. case "ibunker.us":
  1333. case "hostingpics.net":
  1334. i = q('img[src*="pics/"]');
  1335. break;
  1336. case "imgtiger.org":
  1337. i = q('form');
  1338. if(i)
  1339. {
  1340. i.submit();
  1341. break;
  1342. }
  1343. case "cuteimg.cc":
  1344. i = q('input[type="button"]');
  1345. if(i)
  1346. {
  1347. i.click();
  1348. break;
  1349. }
  1350. case "myimg.club":
  1351. case "imgmonkey.com":
  1352. case "imgdragon.com":
  1353. case "imggold.org":
  1354. case "imgoutlet.com":
  1355. case "levinpic.org":
  1356. case "imgrock.net":
  1357. case "imgtown.net":
  1358. case "imgview.net":
  1359. case "imgmaze.com":
  1360. j = true;
  1361. dp=true;
  1362. var f = document.querySelectorAll("input[type='submit']")
  1363. if(f.length)
  1364. {
  1365. var n;
  1366. for(n=f.length-1; n >= 0; n--)
  1367. {
  1368. if(f[n].offsetWidth != 0 && f[n].value.indexOf("eply") == -1 && f[n].value.indexOf("Log") == -1)
  1369. {
  1370. f[n].removeAttribute("disabled");
  1371. f[n].click();
  1372. break;
  1373. }
  1374. }
  1375. }
  1376. case "casimages.com":
  1377. case "thebestpichost.com":
  1378. case "ifotos.pl":
  1379. case "subeimagenes.com":
  1380. case "lostpix.com":
  1381. i = q('img[src*="/img/"]');
  1382. break;
  1383. case "imagenetz.de":
  1384. i = q('img[src*="/img"]');
  1385. break;
  1386. case "picatom.com":
  1387. i = q('img[src*="img/"]');
  1388. break;
  1389. case "imgbabes.com":
  1390. case "imgflare.com":
  1391. i = q('input[onclick*="Decode"]');
  1392. dp=true;
  1393. j = true;
  1394. if(i)
  1395. {
  1396. i.click();
  1397. break;
  1398. }
  1399. case "xxxhost.me":
  1400. case "bilder-hochladen.net":
  1401. case "dumpt.com":
  1402. case "imgsin.com":
  1403. case "loaditup.de":
  1404. case "123poze.3x.ro":
  1405. case "thaisharing.online.fr":
  1406. case "filefap.com":
  1407. case "imgswift.com":
  1408. i = q('img[src*="/files/"]');
  1409. break;
  1410. case "image18.org":
  1411. i = q('img[src*="/file/"]');
  1412. break;
  1413. case "zimagez.com":
  1414. i = q('img[src*="/full/"]');
  1415. break;
  1416. case "niceimage.pl":
  1417. i = q('img[src*="/uploaded/"]');
  1418. break;
  1419. case "imagefap.com":
  1420. i = q('noscript');
  1421. if(i)
  1422. {
  1423. i.src = i.innerHTML.substring(i.innerHTML.indexOf("http"));
  1424. i.src = i.src.substring(0,i.src.indexOf('"'));
  1425. }
  1426. break;
  1427. case "olivepix.com":
  1428. i = q('img[src*="view/"]');
  1429. break;
  1430. case "imgking.co":
  1431. i = q('img[src*="uploads/"]');
  1432. if(i) break;
  1433. if(window.location.href.indexOf("imgs") != -1)
  1434. {
  1435. window.location.href = window.location.href.replace("imgs","imgv");
  1436. break;
  1437. }
  1438. if(window.location.href.indexOf("img3") != -1)
  1439. {
  1440. window.location.href = window.location.href.replace("img3","img4");
  1441. break;
  1442. }
  1443. case "imagesouls.net":
  1444. if(find_text_in_scripts('linkid="', '"', false))
  1445. {
  1446. window.location.href = i.src;
  1447. break;
  1448. }
  1449. case "imgadult.com":
  1450. j = true;
  1451. i = q('a.overlay_ad_link');
  1452. if(i)
  1453. {
  1454. i.click();
  1455. break;
  1456. }
  1457. case "imagefolks.com":
  1458. case "imgcandy.net":
  1459. case "imageteam.org":
  1460. case "imgnext.com":
  1461. case "hosturimage.com":
  1462. case "pixup.us":
  1463. case "xximg.net":
  1464. case "x.xximg.net":
  1465. case "sxpics.nl":
  1466. case "sxpix.nl":
  1467. case "bulkimg.info":
  1468. case "img.yt":
  1469. case "xxxscreens.com":
  1470. case "i.sxpics.nl":
  1471. case "funimg.net":
  1472. case "imageon.org":
  1473. case "nimplus.com":
  1474. case "imag.nimplus.com":
  1475. case "newimagepost.com":
  1476. case "imgease.re":
  1477. case "fapat.me":
  1478. case "imgbe.com":
  1479. case "fireimg.cc":
  1480. case "imgboom.net":
  1481. case "rapidimg.net":
  1482. case "imgtornado.com":
  1483. case "erimge.com":
  1484. case "loftlm.ru":
  1485. case "tinizo.com":
  1486. case "imgpix.net":
  1487. case "freeimagehostin.com":
  1488. case "sximg.nl":
  1489. case "freephotohostin.com":
  1490. case "imgpics.nl":
  1491. case "imagepics.xyz":
  1492. dp=true;
  1493. var f = document.getElementsByTagName("input");
  1494. if(f.length)
  1495. {
  1496. f[f.length-1].removeAttribute("disabled");
  1497. f[f.length-1].click();
  1498. }
  1499. case "fotoszok.pl":
  1500. case "damimage.com":
  1501. case "adultur.com":
  1502. case "croftimage.com":
  1503. case "imagedecode.com":
  1504. case "sexyimg.eu":
  1505. case "gogoimage.org":
  1506. case "imageblinks.com":
  1507. case "imglooks.com":
  1508. case "ocaload.com":
  1509. case "imgstudio.org":
  1510. case "goimge.com":
  1511. case "imageho.me":
  1512. case "imgor.net":
  1513. case "icezap.com":
  1514. case "imgtrial.com":
  1515. case "imgcredit.xyz":
  1516. case "dimtus.com":
  1517. case "imgcat.pw":
  1518. i = q('img[src*="' + iurl + '/upload/"]');
  1519. break;
  1520. case "thumbnailus.com":
  1521. i = q('input[type="submit"]');
  1522. dp=true;
  1523. if(i)
  1524. {
  1525. i.click();
  1526. break;
  1527. }
  1528. i = q('img[src*="' + iurl + '/upload/"].centred');
  1529. break;
  1530. case "imgzulu.com":
  1531. i = q('button[type="submit"]');
  1532. dp=true;
  1533. if(i)
  1534. {
  1535. i.click();
  1536. break;
  1537. }
  1538. i = q('img[src*="' + iurl + '/upload/"]');
  1539. break;
  1540. case "picspornfree.me":
  1541. case "hotimage.uk":
  1542. i = q('input[type="submit"]');
  1543. dp=true;
  1544. if(i)
  1545. {
  1546. i.click();
  1547. break;
  1548. }
  1549. case "image-server.ru":
  1550. case "avenuexxx.com":
  1551. case "uploadimagex.com":
  1552. case "hostingkartinok.com":
  1553. case "bellazon":
  1554. i = q('img[src*="/upload"]');
  1555. break;
  1556. case "imgseeds.com":
  1557. i = q('input');
  1558. if(i)
  1559. {
  1560. i.click();
  1561. break;
  1562. }
  1563. case "imgtaxi.com":
  1564. j = true;
  1565. i = q("a.overlay_ad_link");
  1566. if(i)
  1567. {
  1568. i.click();
  1569. break;
  1570. }
  1571. case "imghit.com":
  1572. i = q('img[alt="image"]');
  1573. break;
  1574. case "3xplanet.com":
  1575. i = q('img[alt="picContent"]');
  1576. break;
  1577. case "subirimagenes.com":
  1578. i = q('input[type="submit"]');
  1579. dp=true;
  1580. if(i)
  1581. {
  1582. i.click();
  1583. break;
  1584. }
  1585. i = q('img[onclick*="scale"]');
  1586. break;
  1587. case "image-share.com":
  1588. case "xpic.biz":
  1589. i = q('img[src*="upload/"]');
  1590. break;
  1591. case "bilder-upload.eu":
  1592. i = q('input[src*="upload/"]');
  1593. break;
  1594. case "picload.org":
  1595. case "imagecross.com":
  1596. case "npicture.net":
  1597. case "public-pic.de":
  1598. case "picbug.ru":
  1599. i = q('img[src*="' + iurl + '/image"]');
  1600. break;
  1601. case "yande.re":
  1602. case "konachan.com":
  1603. case "konachan.net":
  1604. i = q('a[href*="' + iurl + '/image"]');
  1605. if(i){i.src = i.href;}
  1606. break;
  1607. case "imagesup.net":
  1608. i = q('a[href*="/di-"]');
  1609. if(i)
  1610. {
  1611. i.src = i.href;
  1612. }
  1613. break;
  1614. case "cyberpics.net":
  1615. case "fastimages.ru":
  1616. case "hot-file.org":
  1617. case "image.siroro.co.uk":
  1618. case "qattach.com":
  1619. case "fotohelp.kz":
  1620. case "pic-you.com":
  1621. i = q('a[href*="/di/"]');
  1622. if(i)
  1623. {
  1624. i.src = i.href;
  1625. }
  1626. break;
  1627. case "imagehost.thasnasty.com":
  1628. case "thepornfeeds.com":
  1629. case "oxily.com":
  1630. case "ghanaimages.co":
  1631. case "knecht.novarata.net":
  1632. case "img.irandeliver.com":
  1633. case "xferz.com":
  1634. case "up.kfesfahan.com":
  1635. case "image.alesher.com":
  1636. case "upload.khontai.com":
  1637. case "image.pantyhosemania.info":
  1638. i = q('a[href*="?di="]');
  1639. if(i)
  1640. {
  1641. i.src = i.href;
  1642. }
  1643. break;
  1644. case "zimage.fr":
  1645. i = q('img[src*="images.php"]');
  1646. if(i)
  1647. {
  1648. i.src = i.src.replace('.php?nom=', '/');
  1649. break;
  1650. }
  1651. case "dumppix.com":
  1652. i = q('a[href*="enter"]');
  1653. if(i)
  1654. {
  1655. window.location.href = i.href;
  1656. break;
  1657. }
  1658. case "mrjh.org":
  1659. case "stuffed.ru":
  1660. case "rapid-img.de":
  1661. case "ngarko.online.fr":
  1662. case "freeuploadimages.org":
  1663. case "picszone.net":
  1664. case "images.share-films.net":
  1665. case "bildjunkies.de":
  1666. case "foto.hcfor.pl":
  1667. case "pic.tooptarinha.com":
  1668. case "poopr.org":
  1669. case "xp-images.hi2.ro":
  1670. case "dayzeddesigns.com":
  1671. case "freeimghosting.co.uk":
  1672. case "upload.removed.us":
  1673. case "imghost.pl":
  1674. case "udostepniaj.pl":
  1675. case "ngarko.free.fr":
  1676. case "images.collectiontricks.it":
  1677. case "244pix.com":
  1678. case "imgboxxx.com":
  1679. case "imghere.net":
  1680. case "imgdope.com":
  1681. case "hostmat.eu":
  1682. case "imgdream.net":
  1683. case "imgcentral.com":
  1684. case "imgroute.com":
  1685. i = q('img[src*="images/"]');
  1686. break;
  1687. case "use.com":
  1688. i = q('img[src*="images/"][onload]');
  1689. if(i){i.src = i.src.replace('/s_2/', '/s_5/');}
  1690. break;
  1691. case "1y9y.com":
  1692. case "host4images.com":
  1693. case "aveimage.com":
  1694. i = q('img#photo');
  1695. break;
  1696. case "freeimgup.com":
  1697. case "picturevip.com":
  1698. case "image-load.net":
  1699. case "upload.djmaster.fr":
  1700. case "b4he.com":
  1701. case "firepic.org":
  1702. case "overdream.cz":
  1703. case "fastpics.net":
  1704. case "ii4.ru":
  1705. case "picuploader.de":
  1706. case "smages.com":
  1707. case "pictureshack.ru":
  1708. case "imgbox.de":
  1709. case "imagehosting.cz":
  1710. case "9foto.ru":
  1711. case "imagesloading.altervista.org":
  1712. case "phpbbmods.it":
  1713. case "lakhdaria.net":
  1714. case "partizansk.eu":
  1715. case "webjardiner.com":
  1716. case "imgup.com":
  1717. case "iezz.com":
  1718. case "fileaimage.com":
  1719. case "picturescream.com":
  1720. case "all-poster.ru":
  1721. case "imgmak.com":
  1722. case "extraimage.net":
  1723. case "imagexxx18.com":
  1724. i = q('img[src*="/images/"]');
  1725. break;
  1726. case "intergranada.com":
  1727. i = q('img[src*="/images/images/"]');
  1728. break;
  1729. case "pixelup.net":
  1730. i = q('center img[src*="/images/"]');
  1731. break;
  1732. case "saveimg.ru":
  1733. case "imglink.ru":
  1734. case "4put.ru":
  1735. case "sharepic.biz":
  1736. case "you-logo.ru":
  1737. case "powerlogo.ru":
  1738. i = q('img[src*="pictures/"]');
  1739. break;
  1740. case "xenopix.com":
  1741. i = q('img[src*="/pix/"]');
  1742. break;
  1743. case "chronos.to":
  1744. case "imgmaid.net":
  1745. case "pic-maniac.com":
  1746. case "coreimg.net":
  1747. j = true;
  1748. i = q('input[type="submit"]');
  1749. dp=true;
  1750. if(i)
  1751. {
  1752. i.click();
  1753. break;
  1754. }
  1755. case "imgspice.com":
  1756. case "imagetwist.com":
  1757. case "pixroute.com":
  1758. case "pzy.be":
  1759. case "funkyimg.com":
  1760. case "itmages.ru":
  1761. case "imagenpic.com":
  1762. case "turbopix.fr":
  1763. case "pictureturn.com":
  1764. case "pixic.ru":
  1765. case "nyanimg.com":
  1766. case "geekpics.in":
  1767. case "imageporter.com":
  1768. case "imagenimage.com":
  1769. case "imageshimage.com":
  1770. case "imagedax.net":
  1771. case "pornimagex.com":
  1772. case "sendpic.org":
  1773. i = q('img[src*="/i/"]');
  1774. break;
  1775. case "imguniversal.com":
  1776. case "imgclick.net": // no submits
  1777. i = q("form input[type='submit'][value*='continue to image' i]");
  1778. j = true;
  1779. dp = true;
  1780. if(i)
  1781. {
  1782. i.click();
  1783. }
  1784. i = q("img.pic[src*='/i/'], img.pic[src*='/img/']");
  1785. break;
  1786. case "scrin.org":
  1787. i = q('a[href*="/i/"]');
  1788. if(i)
  1789. {
  1790. i.src = i.href;
  1791. break;
  1792. }
  1793. i = q('img[src*="/i/"]');
  1794. break;
  1795. case "miragepics.com":
  1796. case "imagecurl.com":
  1797. case "imagecurl.org":
  1798. i = q('input[value*="' + iurl + '/images/"]');
  1799. if(i){i.src = i.value;}
  1800. break;
  1801. case "ipic.su":
  1802. i = q('input[value*="' + iurl + ' img/"]');
  1803. if(i){i.src = i.value;}
  1804. break;
  1805. case "mixbase.net":
  1806. i = q('img[src*="media/storage/"]');
  1807. break;
  1808. case "image2you.ru":
  1809. i = q('img[src*="images/"]');
  1810. if(i){i.src = i.src.replace('2_', '');}
  1811. break;
  1812. case "qrrro.com":
  1813. case "imgmade.com":
  1814. i = q('form');
  1815. dp=true;
  1816. if(i)
  1817. {
  1818. i.submit();
  1819. break;
  1820. }
  1821. case "imgdrive.net":
  1822. j = true;
  1823. i = q("a.overlay_ad_link");
  1824. if(i)
  1825. {
  1826. i.click();
  1827. break;
  1828. }
  1829. case "pixhost.org":
  1830. case "imgtiger.com":
  1831. case "imgserve.net":
  1832. case "imgdino.com":
  1833. case "overpic.net":
  1834. case "imagesocket.com":
  1835. case "hostpic.org":
  1836. case "zapodaj.net":
  1837. case "jpegshare.net":
  1838. case "screenshot.ru":
  1839. case "imagefile.org":
  1840. case "zapisz.net":
  1841. case "addyourpics.com":
  1842. case "imgbank.cz":
  1843. case "showmyimage.com":
  1844. case "mynameismiz.com":
  1845. case "upload.supreme-elite.fr":
  1846. case "myimg.me":
  1847. case "heberg-hush.org":
  1848. case "oltaciyukle.com":
  1849. case "pichost.name":
  1850. case "imagend.com":
  1851. case "imagerocket.com":
  1852. case "hyyathost.com":
  1853. case "images.reptilescanada.com":
  1854. case "wepic.ru":
  1855. case "upload-image.fr":
  1856. case "images.baconbits.org":
  1857. case "kuvajako.com":
  1858. case "upanh.ovo.vn":
  1859. case "imagesaur.com":
  1860. case "wrzucaj.net":
  1861. case "heberge-images.com":
  1862. case "image.kg":
  1863. case "picshome.ru":
  1864. case "savemyimage.com":
  1865. case "img.dramacafe.tv":
  1866. case "fapping.empornium.sx":
  1867. case "beeimg.com":
  1868. case "1pics.ru":
  1869. case "imgshow.me":
  1870. case "youpicture.org":
  1871. case "vavvi.com":
  1872. case "imgzap.com":
  1873. case "imgdrive.net":
  1874. case "crazyimg.com":
  1875. case "extraimago.com":
  1876. case "ftop.ru":
  1877. case "porncomix.info":
  1878. i = q('img[src*="' + iurl + '/images/"]');
  1879. break;
  1880. case "shareimages.com":
  1881. case "imagesmax.de":
  1882. case "bilder.nixhelp.de":
  1883. i = q('img[src*="' + iurl + '/images"]');
  1884. break;
  1885. case "imgfantasy.com":
  1886. case "imageporn.eu":
  1887. case "imgsmile.com":
  1888. case "imgsay.com":
  1889. case "0img.net":
  1890. //IMGReserve
  1891. j = true;
  1892. dp=true;
  1893. i = q('input[value="YES"]');
  1894. if(i){i.onclick();break;}
  1895. case "pic-upload.de":
  1896. case "shrani.najdi.si":
  1897. case "imageab.com":
  1898. i = q('img[onclick*="(this"]');
  1899. break;
  1900. case "joblo.com":
  1901. i = q('img');
  1902. if(i)
  1903. {
  1904. i.src = "http://www.joblo.com/moviehotties/images/profile-gallery/orig" + window.location.href.substr(window.location.href.lastIndexOf("/"));
  1905. }
  1906. break;
  1907. default: // dynamic subdomain
  1908. switch(iurl.substr(iurl.indexOf(".")+1))
  1909. {
  1910. case "tumblr.com":
  1911. if(FireFox)
  1912. {
  1913. i = q('img[data-src]');
  1914. if(i)
  1915. {
  1916. i.src = i.dataset.src;
  1917. }
  1918. }
  1919. else
  1920. {
  1921. i = q('img:not([src*="data:"])[id]');
  1922. }
  1923. break;
  1924. case "deviantart.com":
  1925. if(q('div.deviation-mlt-preview'))
  1926. {
  1927. i = q('a[href*="/download/"]');
  1928. if(i && i.href.indexOf(".zip?") == -1 && i.href.indexOf(".7z?") == -1 && i.href.indexOf(".rar?") == -1 && i.href.indexOf(".psd?") == -1 && i.href.indexOf("deviantart.com/users/outgoing?")== -1){i.src = i.href;}
  1929. else{i = q('img.dev-content-full');}
  1930. }
  1931. break;
  1932. case "imagevenue.com":
  1933. i = q('img[src*="/loc"]');
  1934. break;
  1935. case "wikipedia.org":
  1936. case "wikimedia.org":
  1937. i = q('a[href*="/upload"]');
  1938. if(i){i.src = i.href;}
  1939. break;
  1940. case "photobucket.com":
  1941. find_text_in_scripts('originalUrl":"', '"');
  1942. break;
  1943. case "freeamateurteens.net":
  1944. i = q('img[src*="images/"]');
  1945. break;
  1946. case "otofotki.pl":
  1947. i = q('img[src*="/obrazki/"]');
  1948. break;
  1949. case "tinypic.com":
  1950. i = q('img#imgElement');
  1951. break;
  1952. case "imagilive.com":
  1953. i = q('a.button');
  1954. if(i)
  1955. {
  1956. dp=true;
  1957. i.click();
  1958. break;
  1959. }
  1960. i = q('img[src*="' + iurl + '"]');
  1961. break;
  1962. default: // for user-added sites
  1963. console.warn("HJI is running on a custom website");
  1964. if(document.readyState != "loading" && document.images.length != 0)
  1965. {
  1966. var b = 0;
  1967. for(var n = 0; n < document.images.length; n++)
  1968. {
  1969. if(document.images[n].width == 0 && !document.images[n].complete) // not started loading
  1970. {
  1971. b = -1;
  1972. break;
  1973. }
  1974. else if(document.images[n].width * document.images[n].height > document.images[b].width * document.images[b].height)
  1975. {
  1976. b = n;
  1977. }
  1978. }
  1979. i = document.images[b];
  1980. if(i){console.warn("HJI is running on a custom website, showing biggest image");}
  1981. }
  1982. break;
  1983. }
  1984. break;
  1985. }
  1986. //
  1987. //firefox handmade noscript
  1988. if(!j)
  1989. {
  1990. j = true;
  1991. window.addEventListener('beforescriptexecute', onscript, true);
  1992. }
  1993. //
  1994. if(i && i.src)
  1995. {
  1996. observer.disconnect();
  1997. function clr_pgn()
  1998. {
  1999. unsafeWindow.open = null;
  2000. unsafeWindow.onbeforeunload = null;
  2001. if(!FireFox)
  2002. {
  2003. delete document.write;
  2004. document.write('<html><head></head><body></body></html>');
  2005. document.close();
  2006. }
  2007. else
  2008. {
  2009. document.replaceChild(document.importNode(document.implementation.createHTMLDocument("").documentElement, true), document.documentElement);
  2010. }
  2011. }
  2012. var ext_list = ['webm', 'mp4', 'ogg'];
  2013. if (ext_list.indexOf(i.src.split('.').pop().toLowerCase()) >= 0)
  2014. {
  2015. console.warn("What we found is not an image");
  2016. return false;
  2017. }
  2018. clr_pgn();
  2019. ws();
  2020. document.head.innerHTML = "";
  2021. sanitize();
  2022. window.removeEventListener('beforescriptexecute', onscript, true);
  2023. makeimage();
  2024. }
  2025. else // try again
  2026. {
  2027. //console.warn("Didnt find image, trying again in " + timeout + " ms");
  2028. if(tb){clearTimeout(tb);}
  2029. tb = setTimeout(function() { console.warn("Didnt find image, waited " + timeout + " ms to try again"); tb=0; timeout*=2; i=0; makeworld(); }, timeout);
  2030. }
  2031. }
  2032.  
  2033. function changecursor()
  2034. {
  2035. i.style.margin = "auto";
  2036. 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
  2037. {
  2038. i.style.cursor = "";
  2039. }
  2040. 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
  2041. {
  2042. if(rescaled)
  2043. {
  2044. i.style.cursor = "-moz-zoom-in";
  2045. i.style.cursor = "-webkit-zoom-in";
  2046. }
  2047. else
  2048. {
  2049. i.style.cursor = "-moz-zoom-out";
  2050. i.style.cursor = "-webkit-zoom-out";
  2051. if((i.naturalHeight / window.devicePixelRatio).toFixed() > window.innerHeight) // image pushing out-of-screen fix
  2052. {
  2053. i.style.margin = "0px auto";
  2054. }
  2055. }
  2056. }
  2057. else
  2058. {
  2059. if(rescaled)
  2060. {
  2061. i.style.cursor = "-moz-zoom-out";
  2062. i.style.cursor = "-webkit-zoom-out";
  2063. }
  2064. else
  2065. {
  2066. i.style.cursor = "-moz-zoom-in";
  2067. i.style.cursor = "-webkit-zoom-in";
  2068. }
  2069. }
  2070. }
  2071.  
  2072. function rescale(event)
  2073. {
  2074. if(rescaled)
  2075. {
  2076. rescaled = false;
  2077. var scale,ex,ey;
  2078. if(event)
  2079. {
  2080. if (typeof event.y === "undefined") // Firefox
  2081. {
  2082. ex = event.clientX;
  2083. ey = event.clientY;
  2084. }
  2085. else
  2086. {
  2087. ex = event.x;
  2088. ey = event.y;
  2089. }
  2090. ex -= i.offsetLeft;
  2091. ey -= i.offsetTop;
  2092. scale = Math.min((window.innerWidth / (i.naturalWidth / window.devicePixelRatio).toFixed()), (window.innerHeight / (i.naturalHeight / window.devicePixelRatio).toFixed()));
  2093. }
  2094. i.style.width = (i.naturalWidth / window.devicePixelRatio).toFixed() + "px";
  2095. i.style.height = (i.naturalHeight / window.devicePixelRatio).toFixed() + "px";
  2096. changecursor();
  2097. if(event)
  2098. {
  2099. window.scrollTo(ex / scale - window.innerWidth / 2, ey / scale - window.innerHeight / 2);
  2100. }
  2101. }
  2102. else
  2103. {
  2104. i.style.width = (i.naturalWidth / window.devicePixelRatio).toFixed() + "px";
  2105. i.style.height = (i.naturalHeight / window.devicePixelRatio).toFixed() + "px";
  2106. if((i.naturalWidth / window.devicePixelRatio).toFixed() != window.innerWidth)
  2107. {
  2108. i.style.width = window.innerWidth + "px";
  2109. i.style.height = "";
  2110. rescaled = true;
  2111. }
  2112. if((i.height > window.innerHeight) || (i.width > window.innerWidth))
  2113. {
  2114. i.style.width = (i.naturalWidth / window.devicePixelRatio).toFixed() + "px";
  2115. i.style.height = (i.naturalHeight / window.devicePixelRatio).toFixed() + "px";
  2116. if((i.naturalHeight / window.devicePixelRatio).toFixed() != window.innerHeight)
  2117. {
  2118. i.style.height = window.innerHeight + "px";
  2119. i.style.width = "";
  2120. rescaled = true;
  2121. }
  2122. }
  2123. changecursor();
  2124. }
  2125. }
  2126.  
  2127. var ARC = 0;
  2128. function autoresize()
  2129. {
  2130. if(i.naturalWidth)
  2131. {
  2132. var title = i.src.substr(i.src.lastIndexOf("/")+1);
  2133. if(title.indexOf("?") != -1)
  2134. {
  2135. title = title.substr(0, title.indexOf("?"));
  2136. }
  2137. document.title = title + " (" + i.naturalWidth + "x" + i.naturalHeight + ")"; // title
  2138. var link = protected_createElement('link');
  2139. link.type = 'image/x-icon';
  2140. link.rel = 'shortcut icon';
  2141. link.href = i.src;
  2142. document.getElementsByTagName('head')[0].appendChild(link);
  2143. rescaled = true;rescale(0); // to original size in pixels
  2144. if(cfg_fitWH && i.height > window.innerHeight && i.width > window.innerWidth) // both scrollbars
  2145. {
  2146. rescale(0);
  2147. }
  2148. else if(cfg_fitB && (i.height > window.innerHeight || i.width > window.innerWidth)) // one scrollbar
  2149. {
  2150. rescale(0);
  2151. }
  2152. else if(cfg_fitS && i.height <= window.innerHeight && i.width <= window.innerWidth) // no scrollbars
  2153. {
  2154. rescale(0);
  2155. }
  2156. if(cfg_js){eval(cfg_js);}
  2157. }
  2158. else
  2159. {
  2160. ARC++;
  2161. if(ARC == 25 || ARC == 250 || ARC == 750)
  2162. {
  2163. i.src = i.src; // lol fix
  2164. }
  2165. setTimeout(function() { autoresize(); }, 10);
  2166. }
  2167. }
  2168.  
  2169. var observer = new MutationObserver(function(mutations)
  2170. {
  2171. makeworld();
  2172. });
  2173. observer.observe(document, {subtree: true, childList: true});
  2174.  
  2175. // hotkeys
  2176. if (typeof KeyEvent === "undefined")
  2177. {
  2178. var KeyEvent = {
  2179. DOM_VK_SPACE: 32,
  2180. DOM_VK_LEFT: 37,
  2181. DOM_VK_UP: 38,
  2182. DOM_VK_RIGHT: 39,
  2183. DOM_VK_DOWN: 40,
  2184. DOM_VK_A: 65,
  2185. DOM_VK_D: 68,
  2186. DOM_VK_P: 80,
  2187. DOM_VK_Q: 81,
  2188. DOM_VK_R: 82,
  2189. DOM_VK_S: 83,
  2190. DOM_VK_W: 87,
  2191. DOM_VK_NUMPAD2: 98,
  2192. DOM_VK_NUMPAD4: 100,
  2193. DOM_VK_NUMPAD5: 101,
  2194. DOM_VK_NUMPAD6: 102,
  2195. DOM_VK_NUMPAD8: 104,
  2196. DOM_VK_F5: 116
  2197. };
  2198. }
  2199.  
  2200. function cancelEvent(a)
  2201. {
  2202. a = a ? a : window.event;
  2203. if (a.stopPropagation)
  2204. {
  2205. a.stopPropagation();
  2206. }
  2207. if (a.preventDefault)
  2208. {
  2209. a.preventDefault();
  2210. }
  2211. a.cancelBubble = true;
  2212. a.cancel = true;
  2213. a.returnValue = false;
  2214. return false;
  2215. }
  2216.  
  2217. function scroll_space(a, b)
  2218. {
  2219. var by = Math.round((b ? window.innerHeight : window.innerWidth) * 0.50 * (a ? -1 : 1));
  2220. if(!b)
  2221. {
  2222. window.scrollBy(0, by);
  2223. }
  2224. else
  2225. {
  2226. window.scrollBy(by, 0);
  2227. }
  2228. }
  2229.  
  2230. function onkeydown (b)
  2231. {
  2232. var a = (window.event) ? b.keyCode : b.which;
  2233.  
  2234. if (b.altKey || b.metaKey || (b.ctrlKey && a != KeyEvent.DOM_VK_SPACE && a != KeyEvent.DOM_VK_F5 && a != KeyEvent.DOM_VK_R))
  2235. {
  2236. return;
  2237. }
  2238.  
  2239. var by = Math.round(window.innerHeight * 0.10);
  2240.  
  2241. switch (a)
  2242. {
  2243. case KeyEvent.DOM_VK_RIGHT:
  2244. case KeyEvent.DOM_VK_D:
  2245. case KeyEvent.DOM_VK_NUMPAD6:
  2246. window.scrollBy(by, 0);
  2247. cancelEvent(b);
  2248. break;
  2249. case KeyEvent.DOM_VK_LEFT:
  2250. case KeyEvent.DOM_VK_A:
  2251. case KeyEvent.DOM_VK_NUMPAD4:
  2252. window.scrollBy(by * -1, 0);
  2253. cancelEvent(b);
  2254. break;
  2255. case KeyEvent.DOM_VK_W:
  2256. case KeyEvent.DOM_VK_NUMPAD8:
  2257. window.scrollBy(0, by * -1);
  2258. cancelEvent(b);
  2259. break;
  2260. case KeyEvent.DOM_VK_S:
  2261. case KeyEvent.DOM_VK_NUMPAD2:
  2262. window.scrollBy(0, by);
  2263. cancelEvent(b);
  2264. break;
  2265. case KeyEvent.DOM_VK_SPACE:
  2266. scroll_space(b.shiftKey, b.ctrlKey);
  2267. cancelEvent(b);
  2268. break;
  2269. case KeyEvent.DOM_VK_Q:
  2270. case KeyEvent.DOM_VK_NUMPAD5:
  2271. rescale(0);
  2272. cancelEvent(b);
  2273. break;
  2274. case KeyEvent.DOM_VK_P:
  2275. if(i && !FireFox) // Chrome nosave bug
  2276. {
  2277. window.location.href = "https://gist.github.com/Owyn/8553d7953d948228e312";
  2278. }
  2279. else
  2280. {
  2281. cfg();
  2282. }
  2283. cancelEvent(b);
  2284. break;
  2285. case KeyEvent.DOM_VK_R:
  2286. if(!b.ctrlKey)
  2287. {
  2288. document.cookie= "hji=" + window.location.href;
  2289. window.location.reload();
  2290. cancelEvent(b);
  2291. }
  2292. else
  2293. {
  2294. window.removeEventListener("beforeunload", onbeforeunload, true);
  2295. }
  2296. break;
  2297. case KeyEvent.DOM_VK_F5:
  2298. window.removeEventListener("beforeunload", onbeforeunload, true);
  2299. break;
  2300. }
  2301. }
  2302.  
  2303. function cfg()
  2304. {
  2305. if (typeof GM_setValue !== "undefined")
  2306. {
  2307. function saveCfg()
  2308. {
  2309. GM_setValue("directImage", q("#hji_cfg_1_direct").checked);
  2310. GM_setValue("bgColor", q("#hji_cfg_2_bgclr").value);
  2311. GM_setValue("fitWH", q("#hji_cfg_3_fitWH").checked);
  2312. GM_setValue("fitB", q("#hji_cfg_4_fitB").checked);
  2313. GM_setValue("fitS", q("#hji_cfg_5_fitS").checked);
  2314. GM_setValue("js", q("#hji_cfg_6_js").value);
  2315. alert("Configuration Saved");
  2316. if(q("#hji_cfg_2_bgclr").value){document.body.bgColor = q("#hji_cfg_2_bgclr").value;}else{document.body.removeAttribute("bgColor");}
  2317. }
  2318. if(i && i.src){i.removeEventListener("click", rescale, true);}
  2319. window.removeEventListener("keydown", onkeydown, true);
  2320. document.head.innerHTML = "";
  2321. document.body.innerHTML = "";
  2322. ws();
  2323. var div = protected_createElement("div");
  2324. div.style.margin = "11% auto";
  2325. div.style.width = "444px";
  2326. div.style.border = "solid 1px black";
  2327. div.style.background = "silver";
  2328. div.innerHTML = "<b><center>Configuration</center></b><br><input id='hji_cfg_1_direct' type='checkbox'> Open images directly with browser"
  2329. + "<br><br><input id='hji_cfg_2_bgclr' type='text' size='6'> Background color (empty = default)"
  2330. + "<br><br>Fit to window images:"
  2331. + "<br><br><input id='hji_cfg_3_fitWH' type='checkbox'> Larger than window both vertically and horizontally"
  2332. + "<br><br><input id='hji_cfg_4_fitB' type='checkbox'> Larger than window either vertically or horizontally"
  2333. + "<br><br><input id='hji_cfg_5_fitS' type='checkbox'> Smaller than window"
  2334. + "<br><br><center>Custom JS Action:<textarea id='hji_cfg_6_js' style='margin: 0px; width: 400px; height: 50px;'></textarea>"
  2335. + "<br><input id='hji_cfg_save' type='button' value='Save configuration'></center>";
  2336. document.body.appendChild(div);
  2337. q("#hji_cfg_1_direct").checked = GM_getValue("directImage");
  2338. q("#hji_cfg_2_bgclr").value = GM_getValue("bgColor", "");
  2339. q("#hji_cfg_3_fitWH").checked = GM_getValue("fitWH", true);
  2340. q("#hji_cfg_4_fitB").checked = GM_getValue("fitB");
  2341. q("#hji_cfg_5_fitS").checked = GM_getValue("fitS");
  2342. q("#hji_cfg_6_js").value = GM_getValue("js", "");
  2343. q("#hji_cfg_save").addEventListener("click", saveCfg, true);
  2344. }
  2345. else
  2346. {
  2347. alert("Sorry, Chrome userscripts in native mode can't have configurations! Install TamperMonkey extension. (it's very good)");
  2348. }
  2349. }
  2350.  
  2351. function loadCfg()
  2352. {
  2353. if (typeof GM_getValue !== "undefined")
  2354. {
  2355. cfg_direct = GM_getValue("directImage");
  2356. cfg_bgclr = GM_getValue("bgColor");
  2357. cfg_fitWH = GM_getValue("fitWH", true);
  2358. cfg_fitB = GM_getValue("fitB");
  2359. cfg_fitS = GM_getValue("fitS");
  2360. cfg_js = GM_getValue("js");
  2361. }
  2362. }