October 27th, 2018, 06:11 AM | #241 |
Senior Member
Join Date: Jun 2017
Posts: 462
Thanks: 62,370
Thanked 5,248 Times in 459 Posts
|
Turboimagehost dry socket
http://vintage-erotica-forum.com/sho...74&postcount=1 here is the editor open with a search pattern i pasted in from the anonym.to page in the above topic..
__________________
Smutus Emeritus |
October 27th, 2018, 09:22 AM | #242 | |
Blocked!
Join Date: Jan 2008
Location: HH
Posts: 1,963
Thanks: 115,040
Thanked 32,801 Times in 1,955 Posts
|
Quote:
here is a complete one: The missing of the last lines make the JavaScript function syntactically wrong, so it cannot be executed. Here is the complete version: Code:
function(pageData, pageUrl) { doc = new DOMParser().parseFromString(pageData, "text/html"); let img = doc.querySelector("img#imageid"); if (!img) { img = doc.querySelector("img#uImage"); } if (img) { return {imgUrl: img.src, status: "OK"}; } return {imgUrl: null, status: "ABORT"}; } You can click on "View file" to view the whole file. Anonym zu https://gitlab.com/UISQN/ihg-hostfile/commit/f455e23e062b40225a62c72cd553b094c1f1bc67 I recommend using the hostfile server as described here. This spares you from manually editing the host file. http://vintage-erotica-forum.com/sho...&postcount=237 Last edited by halvar; October 27th, 2018 at 05:11 PM.. Reason: Total rewrite after closer look at screen shot, fixed gammar |
|
October 28th, 2018, 06:37 PM | #243 |
Senior Member
Join Date: Jun 2017
Posts: 462
Thanks: 62,370
Thanked 5,248 Times in 459 Posts
|
Excellent! now TIH is working
__________________
Smutus Emeritus |
The Following 7 Users Say Thank You to solarbear For This Useful Post: |
October 31st, 2018, 04:12 PM | #244 |
Blocked!
Join Date: Jan 2008
Location: HH
Posts: 1,963
Thanks: 115,040
Thanked 32,801 Times in 1,955 Posts
|
improved pimpandhost search pattern
I discovered older posts that did not work with my previous pattern, for example
http://vintage-erotica-forum.com/sho...11&postcount=1 the new pattern is: Code:
function(pageData, pageUrl) { // pimpandhost URLs come in different flavors, but all contain a numeric id. // pimpandhost always redirects (via HTTP 30X) old format URLs to a location in the current form. // To avoid this redirect and make the original-size appendix work // the id is extracted and a new URL is buildt. let match = pageUrl.match(/(.*)\/([0-9]+)(.*)/); if (match) { let id = match[2]; pageUrl = "https://pimpandhost.com/image/" + id + "?size=original"; } else { // abort if url does not contain id return {imgUrl: null, status: "ABORT"} } // peform a second request to make sure the original sized image is obtained let req = new XMLHttpRequest(); req.open("GET", pageUrl, false); req.send(); let doc = new DOMParser().parseFromString(req.responseText, "text/html"); let img = doc.querySelector("img.original"); if(img) { let imgUrl = img.src.startsWith("http") ? img.src : pageUrl.substr(0, pageUrl.indexOf(":")) + img.src.substring(img.src.indexOf(":")); return {imgUrl: imgUrl, status: "OK"}; } else { return {imgUrl: null, status: "ABORT"} } } http://vintage-erotica-forum.com/sho...&postcount=237 |
November 27th, 2018, 02:02 AM | #245 |
Senior Member
Join Date: Oct 2012
Posts: 286
Thanks: 11,817
Thanked 1,535 Times in 222 Posts
|
Does someone get these down with IHG? http://vintage-erotica-forum.com/sho...8&postcount=76 http://vintage-erotica-forum.com/sho...1&postcount=77 I just get 404 pictures
|
The Following 5 Users Say Thank You to nobadguy For This Useful Post: |
November 27th, 2018, 05:00 AM | #246 |
Senior Member
Join Date: Jun 2017
Posts: 462
Thanks: 62,370
Thanked 5,248 Times in 459 Posts
|
those are imagevenue, first i heard of those bouncing, they came through on my end.
__________________
Smutus Emeritus |
November 27th, 2018, 05:17 AM | #247 | |
Blocked!
Join Date: Jan 2008
Location: HH
Posts: 1,963
Thanks: 115,040
Thanked 32,801 Times in 1,955 Posts
|
Quote:
Imgding is not affected, but uses basically the same host code. Here is the fixed code, I also updated the hostfile on gitlab: Code:
function(pageData, pageUrl) { doc = new DOMParser().parseFromString(pageData, "text/html"); let img = doc.querySelector("img#thepic"); if (img) { // img.src is relative and mangled by the DOMParser(). img.alt contains the original relative path let url = new URL(pageUrl); let imageUrl = url.protocol + "//" + url.hostname + "/" + img.alt; return {imgUrl: imageUrl, status: "OK"}; } return {imgUrl: null, status: "ABORT"}; } I did not like my old version anyway, so this is definitely an improvement. Last edited by halvar; November 27th, 2018 at 04:31 PM.. Reason: Improved host code again |
|
January 16th, 2019, 02:50 AM | #248 |
Senior Member
Join Date: Oct 2012
Posts: 286
Thanks: 11,817
Thanked 1,535 Times in 222 Posts
|
Having problems with motherless.
Tried this gallery: https://m otherless.com/GB99C849 (correct link yourself) but get nothing down. Way back we had 2 old code fixes but they also don't work anymore. |
The Following 3 Users Say Thank You to nobadguy For This Useful Post: |
February 11th, 2019, 07:12 PM | #249 |
Member
Join Date: Jan 2013
Posts: 64
Thanks: 2,030
Thanked 615 Times in 63 Posts
|
I'm getting the error "Can't find new host function" with the host radikal.ru.
|
The Following 3 Users Say Thank You to beechcott For This Useful Post: |
February 23rd, 2019, 04:07 AM | #250 |
Senior Member
Join Date: Nov 2011
Posts: 354
Thanks: 20,633
Thanked 9,912 Times in 346 Posts
|
Hi guys,
Is there a possibility to get IHG running on Linux-Mint 19, Firefox 64.0 Quantum? I am migrating from Windows to Linux, and I kept an ancient Firefox version there running mostly because of IHG, which I used for over 10 years. I tried installing IHG v1.7.0.4c from imagehostgrabber.com, and also the 1.7.0.4a version from https://github.com/cblknittights/ImageHost-Grabber, and in each case I got a "extension did not install, appears to be corrupt" error. I also tried setting about:config xpiinstall.signatures.required to FALSE as suggested on this thread, with no effect. Please help, IHG has been a mainstay and I can't live without it! Thanks. |
The Following 4 Users Say Thank You to quentim For This Useful Post: |
|
|