Multireddit Followed Users

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

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==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);
})();