Created
May 3, 2015 17:04
-
-
Save lautriv/b3d3d34c1619cd18e937 to your computer and use it in GitHub Desktop.
Bookmarklet to Redditjs grid view. Place this as a bookmark and use on a subreddit to go to the corresponding Redditjs page (in grid view).
This file contains 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
javascript: void((function() { | |
var baseUrl = '//redditjs.com'; | |
var raw_subreddit = window.location.pathname; | |
var re = /\u002f*r\u002f\w+\u002f?/; | |
var subreddit = raw_subreddit.match(re); | |
open(document.location.protocol + baseUrl + subreddit + "#grid") | |
})()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment