Owyn / HandyImage

browser userscript (extension) which Shows just fullsize Image with hotkeys & without pop-ups on many image-hosting sites
https://greasyfork.org/scripts/109-handy-image
272 stars 58 forks source link

fix imx.to #491

Closed BlondFace closed 2 years ago

BlondFace commented 2 years ago

Clicking on a link will load the image in full size. The next click switches to full view, but after that no longer possible change the view. The image remains in full view, only the +/- signs change inside the magnifying glass icon. A second attempt from the source page does not produce an error.

Example link:

example1

Owyn commented 2 years ago

Images don't load for me

image

Make sure there are no other userscripts or extensions running on the page

BlondFace commented 2 years ago

Try any imx.to picture link (ex. gallery). I use Firefox on several computers under Linux and Windows, the error occurs everywhere with the latest scripts. In one of my browser, the 18.06.2021 version of HandyImage is running, the error does not appear there.

Owyn commented 2 years ago

Here, tried via proxy, it seems to work fine in my firefox for all images I tested: image image

are you sure there are no other extensions or scripts running on the page including ADBLOCK? does the developer console say anything about errors? (CTRL+SHIFT+J)

BlondFace commented 2 years ago

I use Ublock Origin, but even if I turn it off, the error persists. After I see the whole image, nothing happens on further left clicks, I cant zoom into the picture.

On the console these errors are presents after zoom failed on an image:

LoginRecipes: getRecipes: falling back to a synchronous message for: https://imx.to/ LoginRecipes.jsm:300:16 sendRemoveListener on closed conduit {e839c3f9-298e-4cd0-99e0-464431cb7c34}.14705968021505 4 ConduitsChild.jsm:112

BlondFace commented 2 years ago

This is the relevant part of LoginRecipes.jsm file, which sends the message:

if (!Cu.isInAutomation) { // this is a blocking call we expect in tests and rarely expect in // production, for example when Remote Settings are updated. lazy.log.warn( "getRecipes: falling back to a synchronous message for:", aHost ); } recipes = Services.cpmm.sendSyncMessage("PasswordManager:findRecipes", { formOrigin: aHost, })[0]; this.cacheRecipes(aHost, win, recipes);

return recipes;

},

BlondFace commented 2 years ago

So, I disabled Greasemonkey and installed Violentmonkey. HandyImage works without error with Violentmonkey. It appears that some kind of incompatibility might be causing the problem with the Greasemonkey addon.

Owyn commented 2 years ago

Greasemonkey is not supported, it is severely outdated and abandoned by everyone project.

I'd suggest TamperMonkey