Created
October 23, 2016 10:48
-
-
Save Dbof/459a1f887ae8c74c8c72487fc6e845ec to your computer and use it in GitHub Desktop.
Reddit AllTimesTop Posts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name All Times Top | |
// @namespace com.davidebove | |
// @match *://*.reddit.com/r/*/ | |
// @exclude *://*.reddit.com/r/*/*/*/ | |
// @version 1 | |
// @copyright Dbof | |
// @grant none | |
// ==/UserScript== | |
tabmenu = $('ul.tabmenu'); | |
hot = tabmenu.children().first(); | |
clone = hot.clone(); | |
clone.removeClass('selected'); | |
href = hot.find('a').attr('href'); | |
c_a = clone.find('a'); | |
c_a.text('AllTimeTop'); | |
c_a.attr('href', href + 'top/?sort=top&t=all'); | |
clone.insertAfter(hot); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment