1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// ==UserScript==
// @name           Reddit custom subreddits
// @namespace      www.reddit.com
// @description    Inserts custom multi-sub links in the top menu
// @include        http://www.reddit.com/*
// ==/UserScript==
var menuBar, existingMenu;
menuBar = document.getElementById('sr-bar');
if (menuBar) {
    existingMenu = menuBar.innerHTML;
    menuBar.innerHTML = 
    '<li><a href="http://www.reddit.com/r/wtf+funny">Humor</a></li><span class="separator">-</span> ' +
    '<li><a href="http://www.reddit.com/r/politics+worldnews">News</a></li><span class="separator">-</span> ' +
    existingMenu;
}