Expand Subreddit List Simple

Expands the Reddit top bar to show all subscribed subreddits. NOTE: I am moving the script to here: https://openuserjs.org/scripts/Sanakazubi/Expand_Reddit_Subscription_Bar

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

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

(I already have a user script manager, let me install it!)

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.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

// ==UserScript==
// @name        Expand Subreddit List Simple
// @namespace   user paperwing from greatest.deepsurf.us
// @include     https://*.reddit.com/*
// @version     1.0151
// @grant       none
//
// @description:en   Simple program to expand the Reddit top bar to show all subscribed subreddits. Should work on all browsers.
// @description Expands the Reddit top bar to show all subscribed subreddits. NOTE: I am moving the script to here: https://openuserjs.org/scripts/Sanakazubi/Expand_Reddit_Subscription_Bar
// ==/UserScript==

var ec, e, cs;

e = document.getElementById("sr-header-area");

if (e !== null) {
  e.style["white-space"] = "normal";

  ec =  document.getElementsByClassName("sr-list");


  ec = document.getElementsByClassName("sr-list")[0].childNodes[2].childNodes;

  for (var i = 0; i < ec.length; i++) {

    ec[i].style["white-space"] = "normal";

  }

  var e2 = document.getElementsByClassName("sr-list")[0].childNodes[2];

  e.style["height"] = (e2.offsetHeight + 10) + "px";
}

var fixprofile = function(){ 
	var profile = document.getElementsByClassName("SubscriptionBar")[0]

	profile.style["height"] = "auto";
	profile.style["white-space"] = "normal";
}

setTimeout(fixprofile, 500);