Skip to content

Instantly share code, notes, and snippets.

@indolering
Created January 27, 2009 04:47
Show Gist options
  • Save indolering/53183 to your computer and use it in GitHub Desktop.
Save indolering/53183 to your computer and use it in GitHub Desktop.
GetSatisfaction.com to Trac bridge
CmdUtils.makeBookmarkletCommand({
name: "tracit",
url: "javascript:(function()%7Bgstrac_script=document.createElement('SCRIPT');gstrac_script.type='text/javascript';f='https://ubiquity.mozilla.com/trac/';gstrac_script.src='http://getsatisfaction.com/gstrac.js?x='+(Math.random());document.getElementsByTagName('head')%5B0%5D.appendChild(gstrac_script);%7D)()"
})
/*
ToDo
•Make GSFN detection and allow for it to work from any page
•Nix modal dialogue box and just open a new tab with a pre-filled Trac ticket.
These might help:
http://trac-hacks.org/wiki/XmlRpcPlugin
http://trac-hacks.org/changeset/3092
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment