-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmacruby-docs.user.js
More file actions
25 lines (21 loc) · 840 Bytes
/
macruby-docs.user.js
File metadata and controls
25 lines (21 loc) · 840 Bytes
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
// ==UserScript==
// @name MacRuby Docs JS - Adds MacRuby/RubyMotion syntax to Apple's Objective-C/Cocoa docs.
// @namespace http://twitter.com/joakimk
// @description Adds MacRuby/RubyMotion syntax to Apple's Objective-C/Cocoa docs.
// @include http://developer.apple.com/library/*
// @include https://developer.apple.com/library/*
// @version 1.0
// ==/UserScript==
(function() {
var head = document.getElementsByTagName("head")[0];
var require = function(src) {
var script = document.createElement("script");
script.setAttribute("language", "javascript");
script.setAttribute("src", src);
head.appendChild(script);
};
var load_latest = function() {
require("https://raw.github.com/joakimk/macruby-docs-js/master/lib/macruby-docs.stable.js");
};
load_latest();
})();