Hi
I need your help /g/
I installed PaleMoon + addon imagehost grabber to download images from different image host. Its pretty practical for bulk downloads but its not supporting imagefap though.
Would you please tell me what to modify in the host file editor to fix it?
Actual Host File Editor:
URL pattern:
^http:\/\/(www\.|beta\.|admin\.)?imagefap\.com\/image\.php\?id=\d+&.+
Search Pattern:
function(pageData, pageUrl) {
var retVal = new Object();
if (pageData.match("I am over 18"))
{
alert("Please go manually verify with imagefap, making sure not to clear the cookies.");
retVal.imgUrl = null;
retVal.status = "ABORT";
return retVal;
}
// this lD is some value in the imagefap source page that is coded in some fashion or another
// this value is responsible for telling us where the image is located
var lD = pageData.match(/return lD\(('|")(.+)\1\);/);
if (lD) {
lD = lD[2];
// The following four lines comes from the imagefap source page (it's escaped, so you wouldn't
// be able to find it by merely skimming through it)
var s1=unescape(lD.substr(0,lD.length-1));
var t='';
for (var i=0;i<s1.length;i++) t+=String.fromCharCode(s1.charCodeAt(i)-lD.substr(lD.length-1,1));
var the_url = unescape(t);
}
else {
var the_url = pageData.match(/<img id="mainPhoto".+?src="(.+?)"/);
if (the_url) the_url = the_url[1];
}
if(the_url) {
if ( !(the_url.match(/\..{3,4}$/)) ) the_url = the_url + ".jpg";
retVal.imgUrl = the_url;
retVal.status = "OK";
retVal.fileName = pageData.match(/<img id="mainPhoto".+?alt="[^-]+-\s+(.+?)"/);
if (retVal.fileName) retVal.fileName = retVal.fileName[1];
}
else {
retVal.imgUrl = null;
retVal.status = "ABORT";
}
return retVal;
}
THANKS A LOT
>>57323324
Use Down Them All (install both bellow addons)
https://addons.mozilla.org/en-US/firefox/addon/downthemall/
https://addons.mozilla.org/en-US/firefox/addon/downthemall-anticontainer/
Works fine on ImageFap, though use the "One page" layout and you may want to select all images (click+drag) if you wncounter unwanted downloads. They sould be automatically selected on the left tab (Links) not the right one.
>>57323373
Thanks but its not incompatible with palemoon.
I just need to get IMG fixed cause I've been using it for years but sadly it was dropped by its author.
/g/ could save it.
Gallery:
http://www.imagefap.com/pictures/6450508/Jada-Stevens-31?gid=6450508&view=2#
Image:
http://www.imagefap.com/photo/2031647930/?pgid=&gid=6450508&page=0&idx=0
Whats should I modify please?
>>57323416
Not even older versions?
https://addons.mozilla.org/en-US/firefox/addon/downthemall/versions/
https://addons.mozilla.org/en-US/firefox/addon/downthemall-anticontainer/versions/
I remember I was using it with PM like a year ago.
>>57323528
Thanks I'll give it a go.
But I need to fix IMG tho.
++bump