Greasy Fork镜像 支持简体中文。

Google images - Show size

Display size of image on the thumbnails

< 腳本Google images - Show size的回應

評論:正評 - 腳本一切正常

§
發表於:2020-06-04
編輯:2020-06-04

hi. this is very useful style. it seemed to me that such functionality used to be in Google images, but now it is not for some reason.
I noticed that the stylus finds a lot of errors in your code:
Google images - Show size: errors
but if you follow the formatting, errors disappear:
Google images - Show size: formatted

good luck

§
發表於:2020-06-04

and could you make a customizable padding, border radius and background/foreground colors.

Achernar作者
§
發表於:2020-06-04
編輯:2020-06-04

I've seen some weird behaviour with stylus finding errors. Usually I pay no attention to it.
When I modify a stylesheet, sometimes it is full of errors when I open it. And as soon as I add a space, or a new rule, all the other errors disappear.
Right now I have no errors displayed for this particular stylesheet.

In your screenshot, the error seems to be that the linter doesn't understand the "userstyle" syntax.

Customizing the color padding and radius is possible. I'll try to do something about it. Right now, it looks exactly how it was before google removed it from display.
When google modifies the look/layout of its pages, it is not definitive, requesting the same page again could give the old layout (if you clear the cookies). So I had the possibility to summon the old layout to get the style from it.

Achernar作者
§
發表於:2020-06-04

I've added definable options for color, padding, and radius.

You can download the beta here: http://users.skynet.be/alternity/files/google%20image%20-%20show%20size.user.css.txt
In stylus, click "Write new style" (after enabling "as Usercss"). Copy-paste the content of the page linked above. Save the stylesheet.
Disable the normal stylesheet so that it doesn't interfere.
Play with the new version and tell me if this what you were looking for.

§
發表於:2020-06-04

I try this version and it's very cool.
maybe someone might think that so many settings are redundant. but for me it is very useful.
I love that everything can be customized to my needs.
Of course, I could remake your userstyle to fit my needs, but maybe it will be convenient for someone else.

great work. thanx

Achernar作者
§
發表於:2020-07-03

I forgot to update the code. Sorry.
You can now remove the beta version (once the normal version has been updated in your browser).

發表回覆

登入以回復

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址