Skip to content

Instantly share code, notes, and snippets.

@jsdbroughton
Last active December 16, 2015 00:19
Show Gist options
  • Save jsdbroughton/5347228 to your computer and use it in GitHub Desktop.
Save jsdbroughton/5347228 to your computer and use it in GitHub Desktop.
This bookmarklet opens a new window/tab to the web hosting view of a publicly shared Google Drive folder. 1. Shared a Drive folder to Public 2. Open the folder either by navigating to it in Drive or via the Open command. 3. Click bookmarklet For a website to be accessible from the resultant url the folder must contain a single index.html file.
javascript:(function(){open('https://googledrive.com/host/'+location.href.split('/edit')[0].split('/').pop()+'/');})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment