Center Image & Video

Improved controls for images & videos opened directly with your browser - hotkeys & resizing & visuals

< 腳本Center Image & Video的回應

提問/評論

woxxom管理員
§
發表於:2016-05-08
編輯:2016-05-08

Chrome 52.0.2723.3 dev-m seems to have broken the script

For a couple of chrome dev versions the images aren't scaled down on opening and don't rescale on click unless I open and close devtools panel to force the page to readjust.

Can you please test it on chrome canary or chrome dev portable? It's possible they've broken something and we should report to their bugtracker so that the bug doesn't make it into stable channel.

Owyn作者
§
發表於:2017-03-10

Does this work in stable version fine?

Have you tried turning other extensions & scripts off?

Do you use tampermonkey?

because I've just installed latest Chrome 58 dev, then tampermonkey, then centerimage script and all works fine

woxxom管理員
§
發表於:2017-03-10
編輯:2017-03-10

Reproduced in Chrome 56 (my main profile with many userscripts) and in a new Chrome user profile on Chrome 59 canary with no other userscripts running.

It fails randomly so this might be a Chrome bug. Adding margin:auto to the image style fixes it reliably, nothing else changed.

Owyn作者
§
發表於:2017-03-10

Post some image link examples then maybe

and margin:auto is already there by default

woxxom管理員
§
發表於:2017-03-10

https://puu.sh/uCNaQ/1561f83ff8.png

I meant adding into <style> fixes the problem. For some reason i.style.margin = "auto"; in the code doesn't work randomly.

woxxom管理員
§
發表於:2017-03-10
編輯:2017-03-10

image

As you can see margin is not present which occurs randomly.

woxxom管理員
§
發表於:2017-03-10
編輯:2017-03-10

FWIW, the weird inline gradient styles are added by Chrome.

Hmm, turns out that I don't need the userscript anymore in Chrome 54 and newer which correctly zoom out large pictures (this is the only use case I need).

Owyn作者
§
發表於:2017-11-15

Just wanted to say that I checked latest stable Chrome (62) and fixed few issues script was having there finally, now it seems to work all fine.

發表回覆

登入以回復

QingJ © 2025

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