Skip to content

Instantly share code, notes, and snippets.

@lautriv
Created May 3, 2015 17:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lautriv/b3d3d34c1619cd18e937 to your computer and use it in GitHub Desktop.
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).
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