Inkbunny: Fit image to window by default

Clicks twice on the submission image, scrolling to the image and scaling it to fit in view.

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
作者
Lutris
1日のインストール数
0
累計インストール数
48
評価
0 0 0
バージョン
2.1
作成日
2020/05/07
更新日
2023/09/02
大きさ
799バイト
ライセンス
不明
対象サイト

Update, I've never managed to get this to work consistently but have found an extension for FireFox that works a lot better: https://raccoony.thornvalley.com/ I'll leave this script up for anyone who needs it and can't use the Raccoony extension.

---

Fit the image preview to the window by default.

It works in a really dumb way - waits a moment and then clicks twice on the image. You might need to adjust the timeout on slow systems or network connections. Possibly you need to have it click a different number of times if your IB account is set to something different for the default view?

Let me know if you have better timing for when to click - ideally I'd wait for some HTML event. Clicking too early in FF makes it think you want to pop open a new window of something.