Skip to content

Instantly share code, notes, and snippets.

@dannyid
Last active August 29, 2015 14:24
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 dannyid/cabb1389126805f730e8 to your computer and use it in GitHub Desktop.
Save dannyid/cabb1389126805f730e8 to your computer and use it in GitHub Desktop.
Instantly go to the gh-pages page of the current repo you're on
/**
1. Right click on bookmark bar
2. Click 'Add Page'
3. Give it a title
4. Paste the below into the 'URL' field
5. Save
**/
javascript:window.location = (function() {
var urlParts = window.location.pathname.split('/').slice(1);
return 'https://'+urlParts[0]+'.github.io/'+urlParts[1];
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment