Page 1 of 2 12 Last >>
Results 1 to 15 of 16

Thread: IHG support for imx.to  

  1. #1
    Elite Member stacydonovan3's Avatar
    Joined
    31 Aug 2014
    Posts
    32,961
    Likes
    1,240,100
    Images
    3,179,331
    Location
    Where Gina Lives <3 

    IHG support for imx.to

    For those of you who use IHG for downloads, there is a fix for using with imx.to (the replacement for img.yt)

    You will need to have the latest version of IHG installed : IHG v1.7.0.4c ( https://imagehostgrabber.com/forum/v....php?f=4&t=351 )

    If you need help on how to reinstall the latest version (I did) it's the second post in this thread: https://imagehostgrabber.com/forum/v...23&t=343#p1106

    Then you need to manually edit the hosts file. Code is at the bottom of this thread: https://imagehostgrabber.com/forum/v...php?f=23&t=379

    Changes work fine. I've been using it with no problems. Hope this helps.

  2. Liked by 7 users: alonsospeed, Andrea, LiCeK, Marquis, pevets, UltimateGTR, V




  3. #2
    Administrator V's Avatar
    Joined
    31 May 2010
    Posts
    23,612
    Likes
    282,436
    Images
    1,762,641
    Location
    🖕😊🖕 

    Re: IHG support for imx.to


  4. Liked by 1 user: stacydonovan3

  5. #3
    Banned
    Joined
    15 Jun 2013
    Posts
    12,076
    Likes
    341,508
    Images
    1,213,634

    Re: IHG support for imx.to

    It is a bit of a fiddle but it does work.

  6. Liked by 1 user: stacydonovan3

  7. #4
    Member alonzoh's Avatar
    Joined
    11 Aug 2014
    Posts
    243
    Likes
    217
    Images
    21

    Re: IHG support for imx.to

    ...

  8. #5
    Member
    Joined
    8 Jul 2017
    Posts
    2
    Likes
    0
    Images
    1

    Re: IHG support for imx.to

    Guys any idea what's the answer to the question What is the last version of firefox that works with IHG?: I cant seem to be able to register to see the forums!

  9. #6
    Elite Member SmurfStlouis's Avatar
    Joined
    12 Nov 2013
    Posts
    7,606
    Likes
    309,758
    Images
    633,010
    Location
    Missouri USA 

    Re: IHG support for imx.to

    What is the latest version of firefox that works with IHG ???

  10. #7
    Member
    Joined
    18 May 2014
    Posts
    28
    Likes
    4
    Images
    0

    Re: IHG support for imx.to

    Quote Originally Posted by stacydonovan3 View Post
    For those of you who use IHG for downloads, there is a fix for using with imx.to (the replacement for img.yt)

    You will need to have the latest version of IHG installed : IHG v1.7.0.4c ( https://imagehostgrabber.com/forum/v....php?f=4&t=351 )

    If you need help on how to reinstall the latest version (I did) it's the second post in this thread: https://imagehostgrabber.com/forum/v...23&t=343#p1106

    Then you need to manually edit the hosts file. Code is at the bottom of this thread: https://imagehostgrabber.com/forum/v...php?f=23&t=379

    Changes work fine. I've been using it with no problems. Hope this helps.
    can you please provide screen shoots of those forum pages ?
    ..... not easy to registered there...

  11. #8
    Member
    Joined
    9 Apr 2018
    Posts
    2
    Likes
    1
    Images
    0

    Re: IHG support for imx.to

    Quote Originally Posted by Onlysitesfan View Post
    Guys any idea what's the answer to the question What is the last version of firefox that works with IHG?: I cant seem to be able to register to see the forums!
    Same here.. i tried many times.. not luck so .. can't register! please whats the answer?

  12. #9
    Banned
    Joined
    12 Sep 2010
    Posts
    34,222
    Likes
    402,034
    Images
    628,253

    Re: IHG support for imx.to

    Try to use 52.0.2, all the time works for me with all necessary extensions/addons.

  13. #10
    Banned
    Joined
    12 Sep 2010
    Posts
    34,222
    Likes
    402,034
    Images
    628,253

    Re: IHG support for imx.to




    Host Label:

    img.yt | imx.to




    URL Pattern:

    ^https?:\/\/([^/]+\.)?(img\.yt|imx\.to)\/(img-[\da-f]+\.html|i\/[\da-z]+)



    Search Pattern:


    function(pageData, pageUrl) {
    	var retVal = {imgUrl: null, fileName: null, status: "ABORT"};
    	pageUrl = pageUrl.replace(/^https:/, "https:");
    	var postData = "imgContinue=Continue to image ... ";
    	retVal = httpPost(pageUrl, postData).then(response => {
    		// Search for <img ... class="centred" ... >
    		var iTag = (response.pageData.match(/<img\b[^>]*?\bclass\s*=\s*('|")centred\1[^>]*?>/i)||[])[0];
    		if (iTag) {
    			var iUrl  = (iTag.match(/\bsrc\s*=\s*('|")(.*?)\1/i)||[])[2];
    			var iName = (iTag.match(/\balt\s*=\s*('|")(.*?)\1/i)||[])[2];  // no extension here
    			if (iName) { // exists and is not empty
    				// get extension from iUrl
    				var extension = iUrl.substring(((iUrl.lastIndexOf(".") - 1) >>> 0) + 2);
    				if (extension) iName += "." + extension;
    			}
    		}
    		return iUrl ? {imgUrl: iUrl, fileName: iName, status: "OK"} : {status: "ABORT"};
    	});
    	return retVal;
    
    	function httpPost(pageUrl, postData) {
    		return new Promise((fulfill, reject) => {
    			const req = new XMLHttpRequest();
    			req.onload = function() {
    				if (this.status === 200)  // The request has succeeded. 
    					fulfill({pageData: this.responseText, pageUrl: this.channel.URI.spec});
    				else reject(this.statusText);
    			};
    			req.onerror = function() {
    				reject(new Error("XMLHttpRequest Error: " + this.statusText));
    			};
    			req.open("POST", pageUrl, true);
    			req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8");
    			req.send(postData);
    		});
    	}
    }

  14. Liked by 3 users: Duyao, k00lDJ, Spoe1957

  15. #11
    Member
    Joined
    21 Feb 2015
    Posts
    151
    Likes
    131
    Images
    0

    Re: IHG support for imx.to

    if this solution not works - just delete imx.to entry and you need to have IHG v1.7.0.4c ( not working with v1.7.0.4a or v1.7.0.4b ! )

  16. #12
    Elite Prospect
    Joined
    3 Oct 2016
    Posts
    162
    Likes
    2,026
    Images
    2,858

    Re: IHG support for imx.to

    thanks LiCek worked immediately. i added img.yt and imx.to as seperate hosts with the same URL and search patterns

  17. #13
    Member
    Joined
    27 Oct 2010
    Posts
    11
    Likes
    137
    Images
    6
    Location
    earth 

    Re: IHG support for imx.to

    I guess I'm kind of challenged here... Can someone please paste in the correct search pattern?

    I tried this, but it doesn't seem to work correctly:
    ^https?:\/\/([^/]+\.)?(imx\.to)\/(img-[\da-f]+\.html|i\/[\da-z]+)

    Thanks in advance, Steel

  18. #14
    Banned
    Joined
    15 Jun 2013
    Posts
    12,076
    Likes
    341,508
    Images
    1,213,634

    Re: IHG support for imx.to

    Quote Originally Posted by steelManO View Post
    I guess I'm kind of challenged here... Can someone please paste in the correct search pattern?

    I tried this, but it doesn't seem to work correctly:
    ^https?:\/\/([^/]+\.)?(imx\.to)\/(img-[\da-f]+\.html|i\/[\da-z]+)

    Thanks in advance, Steel
    This is what works for me:

    ^https?:\/\/([^/]+\.)?(img\.yt|imx\.to)\/(img-[\da-f]+\.html|i\/[\da-z]+)

  19. Liked by 2 users: Spoe1957, steelManO

  20. #15
    Member
    Joined
    27 Apr 2014
    Posts
    1
    Likes
    1
    Images
    0

    Re: IHG support for imx.to

    Quote Originally Posted by SmurfStlouis View Post
    What is the latest version of firefox that works with IHG ???
    56

  21. Liked by 1 user: Spoe1957

Page 1 of 2 12 Last >>

Posting Permissions