Skip to content

Saw this tweet on @guardiantt's feed: "Check out today’s Talk of Trinidad photoblog. http://ht.ly/iCwsP . Click any photo to see the caption." and I thought better could be done.

Notifications You must be signed in to change notification settings

irwinwilliams/GuardianCaptioner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

GuardianCaptioner

Saw this tweet on @GuardianTT's feed:

"Check out today’s Talk of Trinidad photoblog. http://www.guardian.co.tt/gallery/talk-trinidad-09-march-2013?utm_source=iStarr&utm_medium=github&utm_campaign=innovation Click any photo to see the caption."

and I thought better could be done.

so, if you make a bookmarklet using the captioner.js contents, it will display captions.

You should see a caption for every photo you hover over in the gallery.

How to make it work (technical way):

  1. Go to a Trinidad Guardian photoblog, like, http://www.guardian.co.tt/gallery/talk-trinidad-09-march-2013?utm_source=iStarr&utm_medium=github&utm_campaign=innovation
  2. Clear the address bar
  3. Type javascript:
  4. Copy/paste this script command (function(){ s=document.createElement('SCRIPT'); s.type='text/javascript'; s.src='https://raw.github.com/irwinwilliams/GuardianCaptioner/master/captioner.min.js'; document.getElementsByTagName('head')[0].appendChild(s); })();

so that your browser's address bar reads: javascript:(function(){ s=document.createElement('SCRIPT'); s.type='text/javascript'; s.src='https://raw.github.com/irwinwilliams/GuardianCaptioner/master/captioner.min.js?'; document.getElementsByTagName('head')[0].appendChild(s); })();

You should see a caption for every photo you hover over in the gallery.

About

Saw this tweet on @guardiantt's feed: "Check out today’s Talk of Trinidad photoblog. http://ht.ly/iCwsP . Click any photo to see the caption." and I thought better could be done.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published