Skip to content

Instantly share code, notes, and snippets.

@bertrandom
Last active August 24, 2016 14:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save bertrandom/665795 to your computer and use it in GitHub Desktop.
Save bertrandom/665795 to your computer and use it in GitHub Desktop.
Bookmarklet for setting the date posted for a photo on Flickr to now
javascript:(function()%7Bvar photoId %3D location.href.match(%2F%5C%2Fphotos%5C%2F((%5B0-9%5D%2B%40N%5B0-9%5D%2B)%7C%5B0-9a-zA-Z-_%5D%2B)%5C%2F(%5B0-9%5D%2B)%2F)%5B3%5D%3Bwindow.appContext.flickrAPI.callMethod('flickr.photos.setDates'%2C %7B"date_posted"%3A Math.round(new Date().getTime() %2F 1000)%2C "photo_id"%3A photoId%7D).then(function() %7Bwindow.appContext.flickrAPI.callMethod('flickr.photos.setPerms'%2C %7B"is_public"%3A 1%2C "is_friend"%3A 0%2C "is_family"%3A 0%2C "photo_id"%3A photoId%7D)%3B%7D)%7D)()
@hartsell
Copy link

hartsell commented Jan 9, 2014

Doesn't work on the new photo page!

@bertrandom
Copy link
Author

I have a Chrome extension I wrote that does this.. haven't released it yet. Someone want to make a square icon for me?

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