Thread: Alternate hosts
View Single Post
Old July 18th, 2017, 04:25 PM   #86
halvar
Blocked!
 
Join Date: Jan 2008
Location: HH
Posts: 1,963
Thanks: 115,040
Thanked 32,801 Times in 1,955 Posts
halvar 100000+halvar 100000+halvar 100000+halvar 100000+halvar 100000+halvar 100000+halvar 100000+halvar 100000+halvar 100000+halvar 100000+halvar 100000+
Default

Quote:
Originally Posted by effCup View Post
I don't know when they started but for quite awhile now (months, more likely years) imgbox has stored the original filename of an image in the title attribute:

Code:
<div class="image-container">
	<img alt="4cjqlip9" class="image-content" id="img" onclick="rs()" src="https://i.imgbox.com/4cjQLIp9.jpg" title="Bettie_Page_Classic_Nude_Pinup.jpg" />
</div>
Here you can find how I extract the filename in forum-backup (if you can read the undocumented code...):
https://git.teknik.io/halvar/forum-b...ckup/imagehost
  • Hotflick, Imagetwist, Pixhost: name is in attribute "alt"
  • ImageBam, ImageUpper, ImageVenue, PimpAndHost,TurboImageHost: name is in image url
  • ImgBox: name is in attribute "title"

I will add support for more imagehosts. Imgclick and imgtiger are tricky, they seem to require loading of a second page to get to the image.
halvar is offline   Reply With Quote