Created
January 27, 2009 04:47
-
-
Save indolering/53183 to your computer and use it in GitHub Desktop.
GetSatisfaction.com to Trac bridge
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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