lelinhtinh / Userscript

Userscripts collection
http://devs.forumvi.com/f23-userscript
MIT License
151 stars 53 forks source link

Fixes and improvements #118

Closed neoOpus closed 2 years ago

neoOpus commented 2 years ago

I hope this is fine, I renamed it after I found it confusing as I have another with the same name...

lelinhtinh commented 2 years ago

Thank you for PR. The new icon looks great, but:

neoOpus commented 2 years ago

Thank you for PR. The new icon looks great, but:

Ah I see, thanks for the detailed reply, I needed some answers... btw I am working on making this a bit better with some sort of zoom functionality using this lightweight library (https://fengyuanchen.github.io/viewerjs/), I found another extension that is using it but it conflicts with yours so I am trying to merge both of them into one... so let me know if I better create a new branch or I keep making changes and PR on this one? (I am not a programmer btw)

For the icon I will try to make a better one that is flatter and clearer on 16x16px, I don't know if a .ico or svg would work better in this case (so it displays the best one for each user)

You are right about the exclusion of non image files and I thought reversing that on the next updates (to have a uniform viewing experience of all image files) and I think just we have to keep it working on all URLs not just http*

For the

gm4-polyfill.js

it will download the js files even in browsers who don't need it? I mean if yes isn't better to create a separate version for GreaseMonkey?

lelinhtinh commented 2 years ago

You can zoom the image by scrolling mouse wheel while holding CTRL key.

neoOpus commented 2 years ago

That's not the proper way to do it as it retain that zoom level and require using keyboard... I finished the mod btw and it is working properly