Skip to content

Instantly share code, notes, and snippets.

@wvdijk
Last active April 9, 2020 19:37
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 wvdijk/8ddb9e024958332c18b15aee1120e1ac to your computer and use it in GitHub Desktop.
Save wvdijk/8ddb9e024958332c18b15aee1120e1ac to your computer and use it in GitHub Desktop.
Bookmarklet to see recent files in Google Drive without your Google Photos Uploads
javascript:(function(){
let d = new Date();
d.setDate(d.getDate() - 14);
let range = d.toISOString().slice(0,10);
let url = `https://drive.google.com/drive/search?q=title:-.jpg%20after:${range}`;
window.open(url);
})();
@wvdijk
Copy link
Author

wvdijk commented Oct 10, 2018

If you set up Google Photos to sync with Google Drive, your photo uploads tend to clutter up the Recent File view in Drive. This bookmarklet will show you all files opened within the last two weeks, filtering out jpg's. (You can set the date range by changing the number of days on line 3 - the default is 14.)

@wvdijk
Copy link
Author

wvdijk commented Apr 9, 2020

Update Google disabled Photos to Drive sync, so this bookmarklet is now obsolete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment