Multireddit Followed Users

Creates a multireddit with only the users you follow (excludes your subscribed subreddits)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name         Multireddit Followed Users
// @namespace    https://www.reddit.com/u/Fergobirck
// @version      1.0
// @description  Creates a multireddit with only the users you follow (excludes your subscribed subreddits)
// @author       Fergobirck
// @match        https://www.reddit.com/subreddits/
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    var filtered = [];
    var linkPosition = document.querySelectorAll(".subscription-box")[0].getElementsByTagName('ul')[0].getElementsByTagName('a')[0];
    var subscribed = document.querySelectorAll(".subscription-box")[0].getElementsByTagName('ul')[0].querySelectorAll('li');

    subscribed.forEach((item, index) => {
      var subName = item.getElementsByClassName('title')[0].innerHTML;
      if (subName.substr(0, 2) == "u/") {
          filtered.push(subName.replace("u/", "u_"));
      }
    });

    var html = "<a href=\"https://www.reddit.com/r/" + filtered.join("+") + "\" class=\"title\">multireddit of your followed users</a><br\>"
    linkPosition.insertAdjacentHTML("beforebegin", html);
})();