Skip to content

Instantly share code, notes, and snippets.

@yugui
Created January 28, 2009 03:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yugui/53803 to your computer and use it in GitHub Desktop.
Save yugui/53803 to your computer and use it in GitHub Desktop.
CmdUtils.CreateCommand({
name: "ruby-dev",
takes: {"number": noun_arb_text},
execute: function(number) {
if (number && number.text && number.text.length != 0) {
window.content.location.href = "http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-dev/" + number.text;
} else {
window.content.location.href = "http://blade.nagaokaut.ac.jp/ruby/ruby-dev/index.shtml";
}
}
});
CmdUtils.CreateCommand({
name: "ruby-core",
takes: {"number": noun_arb_text},
execute: function(number) {
if (number && number.text && number.text.length != 0) {
window.content.location.href = "http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/" + number.text;
} else {
window.content.location.href = "http://blade.nagaokaut.ac.jp/ruby/ruby-core/index.shtml";
}
}
});
CmdUtils.CreateCommand({
name: "commons-marker",
execute: function() {
jQuery.get("http://commonsmarker.com/boot/tools_loader.js", {}, function(script) {
var document = Application.activeWindow.activeTab.document;
eval(script);
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment