Babefilter.net Full Image Limiter + Scroll Into View

Limit the size of images in View mode to the dimensions of the window. Images will use as much space as possible without overflow.

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください。
// ==UserScript==
// @name        Babefilter.net Full Image Limiter + Scroll Into View
// @match       https://babefilter.net/*
// @version     1.0
// @author      pleazy
// @license MIT
// @description Limit the size of images in View mode to the dimensions of the window. Images will use as much space as possible without overflow.
// @namespace https://greasyfork.org/users/720957
// ==/UserScript==
(() => {
    'use strict';

    var styles = `
    .content-view .model-img img {
      width: initial !important;
      height: initial !important;
      max-width: 100%;
      max-height: 100vh;
    }
`;

    var styleSheet = document.createElement("style");
    styleSheet.type = "text/css";
    styleSheet.innerText = styles;
    document.head.appendChild(styleSheet);

    document.querySelector(".content-view .model-img img").scrollIntoView(true);
})();