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
276 stars 58 forks source link

fix imgur.com #400

Closed spammity closed 3 years ago

spammity commented 3 years ago

https://imgur.com/gallery/xrOet

Add:

// @exclude ://imgur.com/gallery // @exclude ://.imgur.com/gallery*

Owyn commented 3 years ago

but why?

script already checks if it's a gallery to see if it should run (galleries also have other kinds of url e.g. /a/)

spammity commented 3 years ago

Sorry - my suggested fix wasn't a fix.

imgur.com pages are breaking in FF with HandyImage enabled with all other scripts are disabled. Getting a blank gray page with no content.

I'm getting the following errors:

`Uncaught Error: Permission denied to access object n https://s.imgur.com/desktop-assets/js/main.8ca5beb4ac2958954731.js:15 mn https://s.imgur.com/desktop-assets/js/main.8ca5beb4ac2958954731.js:15 start https://s.imgur.com/desktop-assets/js/main.8ca5beb4ac2958954731.js:15 Efxr https://s.imgur.com/desktop-assets/js/main.8ca5beb4ac2958954731.js:15 d https://s.imgur.com/desktop-assets/js/main.8ca5beb4ac2958954731.js:1 13uX https://s.imgur.com/desktop-assets/js/main.8ca5beb4ac2958954731.js:1 d https://s.imgur.com/desktop-assets/js/main.8ca5beb4ac2958954731.js:1 0 https://s.imgur.com/desktop-assets/js/main.8ca5beb4ac2958954731.js:1 d https://s.imgur.com/desktop-assets/js/main.8ca5beb4ac2958954731.js:1

https://s.imgur.com/desktop-assets/js/main.8ca5beb4ac2958954731.js:1 https://s.imgur.com/desktop-assets/js/main.8ca5beb4ac2958954731.js:1 main.8ca5beb4ac2958954731.js:15:22720` `Uncaught Error: Permission denied to access object n https://secure.quantserve.com/quant.js:2 https://secure.quantserve.com/quant.js:2 require https://secure.quantserve.com/quant.js:2 define https://secure.quantserve.com/quant.js:2 https://secure.quantserve.com/quant.js:2 https://secure.quantserve.com/quant.js:2 quant.js:2:2581` `Uncaught Error: Permission denied to access object https://connect.facebook.net/en_US/fbevents.js:23 https://connect.facebook.net/en_US/fbevents.js:23 https://connect.facebook.net/en_US/fbevents.js:23 getFbeventsModules https://connect.facebook.net/en_US/fbevents.js:23 https://connect.facebook.net/en_US/fbevents.js:23 https://connect.facebook.net/en_US/fbevents.js:23 https://connect.facebook.net/en_US/fbevents.js:23 getFbeventsModules https://connect.facebook.net/en_US/fbevents.js:23 https://connect.facebook.net/en_US/fbevents.js:26 https://connect.facebook.net/en_US/fbevents.js:26 https://connect.facebook.net/en_US/fbevents.js:26 getFbeventsModules https://connect.facebook.net/en_US/fbevents.js:23 https://connect.facebook.net/en_US/fbevents.js:26 https://connect.facebook.net/en_US/fbevents.js:26 https://connect.facebook.net/en_US/fbevents.js:26 fbevents.js:23:52330`
spammity commented 3 years ago

For reference, the following URLs behave differently when HandyImage is enabled, but have the same layout when disabled:

https://imgur.com/a/K8m7p2t

The above shows a blank gray page.

https://imgur.com/4EkJaim

This one does what I would expect - only the image is displayed at full size.

spammity commented 3 years ago

Originally installed HandyImage with GreaseMonkey. Just installed with TamperMonkey instead, and everything seems to be working swimmingly!