Scryfall Widener

adds another couple lines to scryfall search

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

You will need to install an extension such as Tampermonkey to install this script.

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name     Scryfall Widener
// @description adds another couple lines to scryfall search
// @version  1
// @grant    none
// @run-at   document-end
// @match    https://scryfall.com/*
// @license MIT
// @namespace mouse_fork
// ==/UserScript==

(function() {
    // Function to insert the CSS rule into the main document's style sheet
    function applyCustomCSSRule() {
        const styleSheet = document.styleSheets[0];

        if (styleSheet) {
            styleSheet.insertRule(".card-grid-item { width: 12% !important; }", 0);
            styleSheet.insertRule(".card-grid-inner { max-width: 2000px !important; }", 0);
            styleSheet.insertRule(".card-grid-inner { justify-content: space-around !important; }", 0);
        }
    }

    // Run the function after the DOM is ready
    if (document.readyState === 'complete' || document.readyState === 'interactive') {
        applyCustomCSSRule();
    } else {
        document.addEventListener('DOMContentLoaded', applyCustomCSSRule);
    }
})();