yugui (owner)

Revisions

gist: 53803 Download_button fork
public
Public Clone URL: git://gist.github.com/53803.git
Embed All Files: show embed
x #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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);
    });
  }
});