Go Back To Groovy Home from Groovy Wiki.
by
fumokmm
2011-05-08 [2011/05/08 09:04:15]
Add link to go back to Groovy Home from Groovy Wiki. (for Firefox GreaseMonkey)
@@ -4,7 +4,6 @@
* @include http://docs.codehaus.org/display/GROOVY/*
* @license MIT License
* @require http://code.jquery.com/jquery-1.6.min.js
- * @private
*/
(function() {
@@ -13,9 +12,6 @@
'<a id="editPageLink" href="' + backUrl + '" class="edit" accessKey="b" >' +
'<span>Go <u>B</u>ack</span></a>' +
'</li>';
- alert('debug1');
var parentUl = $('#editPageLink').parent().parent();
- alert('debug2');
$(parentUl).html(addHtml + $(parentUl).html());
- alert('debug3');
})();
/*
* @title Go Back To Groovy Home from Groovy Wiki.
* @description Add link to go back to Groovy Home from Groovy Wiki.
* @include http://docs.codehaus.org/display/GROOVY/*
* @license MIT License
* @require http://code.jquery.com/jquery-1.6.min.js
*/
(function() {
var backUrl = location.href.replace(/docs\./, 'groovy.').replace(/\/display\/GROOVY/, '');
var addHtml = '<li class="ajs-button normal">' +
'<a id="editPageLink" href="' + backUrl + '" class="edit" accessKey="b" >' +
'<span>Go <u>B</u>ack</span></a>' +
'</li>';
var parentUl = $('#editPageLink').parent().parent();
$(parentUl).html(addHtml + $(parentUl).html());
})();
- Permalink
- このページへの個別リンクです。
- RAW
- 書かれたコードへの直接のリンクです。
- Packed
- 文字列が圧縮された書かれたコードへのリンクです。
- Userscript
- Greasemonkey 等で利用する場合の .user.js へのリンクです。
- Loader
- @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
- Metadata
- コード中にコメントで @xxx と書かれたメタデータの JSON です。