Main / Flickr Hacks

January 17, 2006

GM Script: Prefetch Flickr Photostream

Tags: Flickr Hacks

Prefetch Flickr Photostream

I wrote a new GM script to prefetch the prev/next photos of current browsing photostream. By doing so, when you click the prev/next photo of current photostream, the photo will show up immediately. The script will wait for the page and current photo completely loaded, then start to fetch prev/next photos in background. The default numbers of photos to prefetch are six, three for prev and three for next. You can modify the variable MAX_BUFFER['prev'] to increase or decrease the numbers. There's an indicator to show the prefetching progress, a red bar means in transfer and a green one means completion.

Download: flickr.prefetch.user.js

December 23, 2005

Geotagging Flickr in UrMap

Tags: Flickr Hacks , Google Maps , Greasemonkey

Geotagging Flickr in UrMap

UrMap is an online map service of Taiwan. I wrote a greasemonkey script to make UrMap a geotagging tool. This script is for geotagging photos taken in Taiwan only. If you are interested, welcome to take a look at it.

Download: urmap.flickr.user.js

See also: flickr.tw/2005/12/geotagging_flickr_in_urmap.html

December 04, 2005

My scripts working with GM 0.6.4

Tags: Firefox , Flickr Hacks , Greasemonkey

Firefox 1.5 is finally relesaed and GM 0.6.4 is also released. Some of my GM scripts fail to work with the latest Greasemonkey. The following are the updated scripts that work with GM 0.6.4.


Chronological Flickr Photostream
Super Batch Processing for Flickr
Ajax Photo Blogging in Flickr
GMiF: Google Maps in Flickr
Toggle Recent Comments in Flickr Photostream
Flickr LfVr Switch

November 12, 2005

Standalone version of GMiF

Tags: Flickr API , Flickr Hacks , GMiF , Mashups

GMiF v3.5Standalone GMiF

GMiF is originally a greasemonkey script for Flickr, but now has a standalone version. I reuse the code of GMiF to build a new geotagged photo viewer by using the google maps as a frontend. The GM script and this new photo viewer share the same core library of GMiF. Any improvements on GMif will have effects upon both versions.

The viewer provides a permlink for each flickr user. For example,

If your flickr photo page URL is

http://www.flickr.com/photos/ckyuan/

then your flickr maps page URL is

http://flickr.yuan.cc/maps/ckyuan/

Note: This is Firefox only. Sorry for IE users. I'm tired of debugging JS in IE.

November 03, 2005

GM script: Chronological Flickr Photostream

Tags: Flickr Hacks , Greasemonkey

I wrote a greasemonkey script called "Chronological Flickr Photostream". This script will insert a photostream box into the photo page of Flickr to display the context photos in chronological order of date taken.

Official site: Yuan.CC Web Experiments
Download: flickr.chronological.user.js

October 29, 2005

GM script: New features of Super Batch Processing

Tags: Flickr Hacks , Greasemonkey

I just added two new features to the Super Batch Processing for Flickr script.

1. Add an 'update script' link to menu.
2. Add a 'move to top' feature.

'Update script' simply links to the location of script, so you can update the script easily.

'Move to top' is an interesting feature. The display of photostream in Flickr is in reverse chronological order of posted date. You can now move the photos to top of the photostream. The script will modify the posted date of photos in cart to current date/time. This change is permanent and can't be rollback. Be careful to use.

ps. if 'move to top' doesn't work, check if your computer clock is accurate.

Download: flickr.batch.user.js

October 27, 2005

GM script: Super Batch Processing for Flickr

Tags: Flickr Hacks , Greasemonkey

Super Batch Tool

Flickr is lacking of creating a list of arbitrary photos for batch operations. This script provides a "shopping cart" for you to collect your photos to process. After you added a number of photos in cart, you can edit as a batch, make an album, a slideshow, or a mosaic. Items in cart will be saved in greasemonkey storage and will be remembered while you're visiting different pages in flickr.

Features:

  1. A cart to collect photos you select, up to 100 photos
  2. A checkbox attached on the upper-right corner of each photo
  3. Editing photos as a batch, beyond sets, tagged photos, or date-based photos
  4. Connecting to external flickr tools, such as Flcikr Album Maker, Photo Mosaic, or Slideshow.
  5. Working fine with "GM: Batch Enhancer"

Special thanks to fd/John for his permission to feed the list of photos to his flickr toys. (slideshow and mosaic)

Download: flickr.batch.user.js

Update to Ajax Photo Blogging in Flickr

Tags: Flickr Hacks , Greasemonkey

This is an update for Ajax Photo Blogging in Flickr script.

Well, I got something done. The new version of this script now supports two types of blog API, Metaweblog and Atom API. Blogger.com invented and uses Atom API.

For Atom API, your blog service.edit URI is like this:

"https://www.blogger.com/atom/123456"

which 123456 is your blog-id. You can find your blogger.com service.edit URI by checking the HTML source of your blog. Find the following line:

<link rel="service.post" type="application/atom+xml" title="blogname" href="https://www.blogger.com/atom/123456" />

You dont need to worry about login scheme. If you've logged on blogger.com, no username/passwd is needed. If not, it will prompt an authentication dialog to ask you login.

Download: flickr.blog.user.js

October 21, 2005

GM script: Ajax Photo Blogging in Flickr (v 0.1)

Tags: Flickr Hacks , Greasemonkey

Ajax Photo Blogging

I've written a new GM script called "Ajax Photo Blogging". It's not an improved version of official "Blog this" tool, however, I create a new one in Ajax approach to let you blog faster and easier.

The features of the tool:

  1. Blogging and posting in Ajax way in background.
  2. Posting to your blog via XMLRPC by calling GMxmlhttpRequest of greasemonkey.
  3. Working fine and testing in Movable Type 3.2 now.
  4. Adding the URL of new post to the photo description or comment, depend on if you are the owner of photo or not.

The pros -

  1. No need to save your blog password in Flickr.
  2. Blogging and commenting at one-click.

The cons -

  1. Storing your blog password in local machine causes inconvenience when not using your own computer.
  2. You need to know the detail tech info of your blog, eg. XMLRPC endpoint URL, blogid...
  3. I only test under my blog environment now. Mine is Movable Type 3.2. I believe all MT series will work fine. If any of you are interested in this script, please have a try and let me know the result. Your feedback is appreciated.

ps. The pieces of code to add comment and description are contributed by steeev in my GMiF project. Thank you.

Download: flickr.blog.user.js

September 30, 2005

GMiF and Toggle comments scripts updated

Tags: Flickr Hacks , GMiF , Greasemonkey

Flickr just changed some internal object and function names of Javascript, such as, 'photo_hash' becomes 'global_photos', and 'getCookie()' becomes '_get_cookie()'.

Two updated scripts:

GMiF: flickr.gmap.user.js
Toggle Comments: flickr.comments.toggle.user.js

June 24, 2005

GM script: del.icio.us Flickr Contacts (v1.3 + GM 0.5.1)

Tags: Flickr Hacks , Greasemonkey

Some of us have so many contacts in flickr, say 50+, 100+, even 200+. However it is kinda hard to find our contacts efficiently. So I wrote a Greasemonkey user script to add tags at our flickr contacts to del.icio.us bookmarks system. The use of adding tags and searching contacts is very easy. All have been integrated to flickr pages. You can see the group photo spool for screenshots.

Please note it will prompt to ask you to login to del.icio.us system. It is completely safe to login. The request comes from del.icio.us directly, not from my script. Additionally, the script will implicitly add a tag named "flickr:contacts" to your contacts. Please don't remove it from del.icio.us. It is for the script to identify the contacts from your flickr.

Download flickr.contact.user.js, and start to tag your contacts.

del.icio.us Contacts - Search Results

Google Ads

Powered by
Movable Type 3.2