Skip to content

Instantly share code, notes, and snippets.

Last active August 29, 2015 14:04
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Script menu script for Fargo. inserts last 10 flickr photos from user (replace my id for yours) into a series of headlines below current.
My Flickr-medium
var theurl = "";
function(data) {
xmlDoc = $.parseXML(data);
var ii = 0;;
$xml = $(xmlDoc),
$xml.find("entry").each(function() {
if (ii > 10) {
return true;
var kittenhtml = $(this).find("content").text();
var wpar = 'width=\"[0-9][0-9][0-9]\"';;
op.insert(string.replaceAll(string.replaceAll(string.replaceAll(string.replaceAll(trimWhitespace(kittenhtml), "<p>", ""), "</p>", ""), "_m.jpg", ".jpg"), wpar, ""), 'down');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment