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

[QUESTION / BUG?] Is anybody else getting blank screens while using handy image? #522

Closed masterofobzene closed 1 year ago

masterofobzene commented 1 year ago

I'm getting complete white screens in my firefox when trying to see images in some sites (after clicking the desired image on the site, it follows the link to a blank page and no info is shown). A test can be done at https://realbooru.com

Owyn commented 1 year ago

works fine for my firefox stable after I clicked few images

what is your browser and version? what is browser console saying when that happens? ( ctrl+shift+j ) is that the only problematic website?

masterofobzene commented 1 year ago

Its 110.0 (64 bit)

This suddenly started happening... any troubleshooting I can do? (that doesn't involve resetting the browser to defaults)

Its not the only problematic site.

"parent process browser console"

Could not parse preference. Try resetting discoverystream.config in about:config. Error: Layout Endpoint - An API key was specified but none configured: https://getpocket.cdn.mozilla.net/v3/newtab/layout?version=1&consumer_key=$apiKey&layout_variant=basic DiscoveryStreamFeed.jsm:129:15
HTTPS-Only Mode: Not upgrading insecure request “http://ocsp.digicert.com/” because it is exempt. 2
Key event not available on some keyboard layouts: key=“i” modifiers=“accel,alt,shift” id=“key_browserToolbox” browser.xhtml
NotFoundError: No such JSWindowActor 'DevToolsFrame'

Dev. console:

Uncaught ReferenceError: $ is not defined
    <anonymous> https://www.realbooru.com/new/script/application.js?40:1
application.js:1:5851
Uncaught TypeError: Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.
    jQueryDetection https://www.realbooru.com/new/script/bootstrap.min.js?40:6
    <anonymous> https://www.realbooru.com/new/script/bootstrap.min.js?40:6
    <anonymous> https://www.realbooru.com/new/script/bootstrap.min.js?40:6
    <anonymous> https://www.realbooru.com/new/script/bootstrap.min.js?40:6
bootstrap.min.js:6:2866
Uncaught ReferenceError: jQuery is not defined
    <anonymous> https://www.realbooru.com/new/script/miscJs.js:21
    <anonymous> https://www.realbooru.com/new/script/miscJs.js:23
miscJs.js:21:3
Array []
Handy Image.user.js:3001:11
a Handy Image.user.js:1074:43
Uncaught TypeError: a is undefined
    makeimage moz-extension://8a6fba10-572e-49a9-bac0-0ba9f85b6d42/ Handy Image.user.js#8:1074
    makeworld moz-extension://8a6fba10-572e-49a9-bac0-0ba9f85b6d42/ Handy Image.user.js#8:2954
    observer moz-extension://8a6fba10-572e-49a9-bac0-0ba9f85b6d42/ Handy Image.user.js#8:3270
index.php:1074:63
    makeimage moz-extension://8a6fba10-572e-49a9-bac0-0ba9f85b6d42/ Handy Image.user.js#8:1074
    makeworld moz-extension://8a6fba10-572e-49a9-bac0-0ba9f85b6d42/ Handy Image.user.js#8:2954
    observer moz-extension://8a6fba10-572e-49a9-bac0-0ba9f85b6d42/ Handy Image.user.js#8:3270
Uncaught ReferenceError: $ is not defined
    <anonymous> https://realbooru.com/index.php?page=post&s=view&id=713248:175
index.php:175:3
    <anonymous> https://realbooru.com/index.php?page=post&s=view&id=713248:175

I'm using Ublock in advanced mode. Disabled it but the problem persists.

Owyn commented 1 year ago

Just make sure you're using the latest userscript version

because that Handy Image.user.js:1074:43 Uncaught TypeError: a is undefined was a short-lived bug which got fixed a day ago

(it only affected those who have "open images directly with browser" option enabled)

masterofobzene commented 1 year ago

Updated. Now the page gives me 404 (on image click). But if I disable handy image, I can see the image. (tested in realbooru)

Owyn commented 1 year ago

your link https://realbooru.com/index.php?page=post&s=view&id=713248 script clicks "Original" button for you and gets the image from there, try clicking it by hand and see what happens on that page without the userscript. image

masterofobzene commented 1 year ago

your link https://realbooru.com/index.php?page=post&s=view&id=713248 script clicks "Original" button for you and gets the image from there, try clicking it by hand and see what happens on that page without the userscript.

Bingo!. When manually click "original" I get 404. I suppose its on their side.

edit: the links are bad on the site, image have different names when checking both links. Its a known problem of that site and the hosters are lazy (they aknowledged it a while ago).