galapagos2
Member
- Joined
- Jun 9, 2017
- Messages
- 6
- Reaction score
- 1
Is there a new host file or workaround ?
You sir are an absolute legend! I've been trying to figure out this since they updated imagebam. Thanks so much!Until they update the host file, you can change the search pattern for imageham with the changes below.
URL Pattern:
^https?:\/\/(?:www\.)?imagebam\.com\/.+\/[^&]+$
Search Pattern:
function(pageData, pageUrl) {
var iUrl = pageData.match(/img.+?src=\"(.+?)\" alt/);
return iUrl ? {imgUrl: iUrl[1], status: "OK"} : {imgUrl: null, status: "ABORT"}
}
Hi there, this has stopped working for imagebam. Any ideas on the uploaded search pattern? Thanks!Until they update the host file, you can change the search pattern for imageham with the changes below.
URL Pattern:
^https?:\/\/(?:www\.)?imagebam\.com\/.+\/[^&]+$
Search Pattern:
function(pageData, pageUrl) {
var iUrl = pageData.match(/img.+?src=\"(.+?)\" alt/);
return iUrl ? {imgUrl: iUrl[1], status: "OK"} : {imgUrl: null, status: "ABORT"}
}
That search pattern is still working for me but a proper fix has been posted on the imagehostgrabber website. Maybe that will work better.Hi there, this has stopped working for imagebam. Any ideas on the uploaded search pattern? Thanks!
Thanks very much! Will try this!That search pattern is still working for me but a proper fix has been posted on the imagehostgrabber website. Maybe that will work better.
https://imagehostgrabber.com/forum/viewtopic.php?f=23&t=721
Hi I can't sign up and the search pattern doesn't work for me try on this gallery https://www.imagebam.com/gallery/mzbcgapgp1wh79duwa0738mbk2jvshfeThat search pattern is still working for me but a proper fix has been posted on the imagehostgrabber website. Maybe that will work better.
https://imagehostgrabber.com/forum/viewtopic.php?f=23&t=721
found this on another forum and it worked for meHi I can't sign up and the search pattern doesn't work for me try on this gallery https://www.imagebam.com/gallery/mzbcgapgp1wh79duwa0738mbk2jvshfe
I can't access the site because I don't have a login and can't sign up either. Any chance you can post the fix here? thanks!
^https?:\/\/([^/]+\.)?imagebam\.com\/(image\/[a-f\d]+|view\/[a-z\d]{6})($|\?)
function(pageData, pageUrl) {
let retVal = {imgUrl: null, fileName: null, status: "ABORT"};
let iTag, iUrl, iName;
// Search for <img ... class="main-image ... >
iTag = (pageData.match(/<img\b[^>]*?\bclass\s*=\s*('|")main-image\b[^>]*?>/i)||[])[0];
if (iTag) {
iUrl = (iTag.match(/\bsrc\s*=\s*('|")(.*?)\1/i)||[])[2];
if (iUrl) {
retVal.imgUrl = iUrl;
retVal.status = "OK";
//
// Select the type of filename by setting the value of nameType:
// 0: name on the host
// 1: image id + "_" + random characters at end
// 2: "ibam" + image id
// 3: "ibam" + image id + "_" + random characters at end
// 4: original file name (from alt attribute)
// else: name on the host
const nameType = 4; // <-- edit this number; default: 4
//
if (nameType == 4) iName = (iTag.match(/\balt\s*=\s*('|")(.*?)\1/i)||[])[2];
else if (nameType > 0) {
let fnp = iUrl.split('?')[0].split('/').pop().match(/([^/]+?)(\.[^./]+)?$/)||[];
let bfn = fnp[1]||'';
let dex = fnp[2]||'';
// The first 6 characters of the name on the host are random, the rest is the image id.
let bfnp = bfn.match(/^(.{6})(.*)$/);
if (nameType == 1) iName = bfnp[2] + "_" + bfnp[1] + dex;
else if (nameType == 2) iName = "ibam" + bfnp[2] + dex;
else if (nameType == 3) iName = "ibam" + bfnp[2] + "_" + bfnp[1] + dex;
}
if (iName) retVal.fileName = iName;
}
}
return retVal;
}
Hi I can't sign up and the search pattern doesn't work for me try on this gallery https://www.imagebam.com/gallery/mzbcgapgp1wh79duwa0738mbk2jvshfe
I can't access the site because I don't have a login and can't sign up either. Any chance you can post the fix here? thanks!
It worked thanks very much! has the registration on that site closed? I don't see a sign up option?Sorry, I did not think you had to login. The post by opo2001 is the search pattern on their website. I tested your link and it worked fine for me using both methods.
There is a post about registration on the forum that you can access without logging in. Apparently you have to contact Admin to register.It worked thanks very much! has the registration on that site closed? I don't see a sign up option?
Thanks, it has stopped working again. Are you able to provide the updated one? Thanks!There is a post about registration on the forum that you can access without logging in. Apparently you have to contact Admin to register.
https://imagehostgrabber.com/forum/...66&sid=07ad4aa0a2973ef344f15211e15adf62#p1666
It's working fine for me.Thanks, it has stopped working again. Are you able to provide the updated one? Thanks!
top one works!No longer works with imagebam