Imgur: Mobile Cleanup

Cleanup m.imgur.com and always load all images in the album.

スクリプトをインストールするには、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            Imgur: Mobile Cleanup
// @namespace       https://github.com/Zren/
// @description     Cleanup m.imgur.com and always load all images in the album.
// @icon            https://imgur.com/favicon.ico
// @author          Zren
// @version         1
// @include         https://m.imgur.com/*
// @grant           GM_addStyle
// ==/UserScript==

var css = ".FloatingOIA-container { display: none; }";
css += ".PostLoader { display: none; }";
css += ".AppBanner { display: none; }";
css += ".Navbar .getTheApp { display: none; }";

if (window.location.pathname.startsWith('/gallery/')) {
    css += ".GalleryHandler-postContainer { display: none; }";
    css += ".GalleryInfiniteScroll > div > div:not(.GalleryHandler-postContainer) + .GalleryHandler-postContainer { display: block !important; }";
    css += '.GalleryInfiniteScroll > div > div:not(.GalleryHandler-postContainer)[style="width: 100%; height: 9000px;"] { display: none; }';
}
GM_addStyle(css);
    

function tick() {
    var loadMoreButton = document.querySelector('.Post-albumSeeMore.Button');
    if (loadMoreButton) {
        loadMoreButton.click();
    } else {
        setTimeout(tick, 400);
    }
}

setTimeout(tick, 400);