Index: trunk/tools/viaf/viaf.user.js |
— | — | @@ -2,9 +2,9 @@ |
3 | 3 | // @name viaf |
4 | 4 | // @namespace viaf |
5 | 5 | // @require https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js |
6 | | -// @require http://$$$yourhost$$$/js/jquery.cookie.js |
7 | | -// @require http://$$$yourhost$$$/js/jquery.ba-replacetext.js |
8 | | -// @description locate VIAF numbers in texts and urls on web pages. (c) T.Gries Version 0.198 201108230150 |
| 6 | +// @require http://svn.wikimedia.org/viewvc/mediawiki/trunk/tools/viaf/jquery.cookie.js?view=co |
| 7 | +// @require http://svn.wikimedia.org/viewvc/mediawiki/trunk/tools/viaf/jquery.ba-replacetext.js?view=co |
| 8 | +// @description locate VIAF numbers in texts and urls on web pages. (c) T.Gries Version 0.200 201108240125 |
9 | 9 | // @include * |
10 | 10 | // ==/UserScript== |
11 | 11 | |
— | — | @@ -25,6 +25,7 @@ |
26 | 26 | * 20110817 disabled the built-in update checker; it has set 1-day cookie |
27 | 27 | * "update" for every page by mistake. |
28 | 28 | * 20110823 changed viaf.org link composition |
| 29 | + * 20110824 added google link |
29 | 30 | * |
30 | 31 | ***/ |
31 | 32 | |
— | — | @@ -39,7 +40,7 @@ |
40 | 41 | var maxVIAFNumbers = 30; |
41 | 42 | |
42 | 43 | // Script update checker source: http://a32.me/2009/11/greasemonkey/ |
43 | | -var VERSION = "0.198"; |
| 44 | +var VERSION = "0.200"; |
44 | 45 | var SCRIPT_NAME = "viaf" |
45 | 46 | var SCRIPT_URL = "http://$$$yourhost$$$/"+SCRIPT_NAME+".user.js" |
46 | 47 | |
— | — | @@ -138,6 +139,7 @@ |
139 | 140 | newLink.unshift( $( "<span> <a href='http://ru.librarything.com/commonknowledge/search.php?f=13&exact=1&q=VIAF%3A"+viaf+"' class='addedlink viaf' viaf='"+viaf+"'>ru</a></span>" ) ); |
140 | 141 | newLink.unshift( $( "<span> <a href='http://yi.librarything.com/commonknowledge/search.php?f=13&exact=1&q=VIAF%3A"+viaf+"' class='addedlink viaf' viaf='"+viaf+"'>yi</a></span>" ) ); |
141 | 142 | newLink.unshift( $( "<span> <a href='http://toolserver.org/%7Eapper/pd/person/viaf/"+viaf+"' class='addedlink viaf' viaf='"+viaf+"'>TS</a></span>" ) ); |
| 143 | + newLink.unshift( $( "<span> <a href='http://www.google.com/search?num=100&q=viaf+"+viaf+"' class='addedlink viaf' viaf='"+viaf+"'>G</a></span>" ) ); |
142 | 144 | // newLink.unshift( $( "<label class='show-summary'><input type='checkbox' class='show-summary-checkbox' checked='checked'><span id='show-summary-text'></span></label>" ) ); |
143 | 145 | |
144 | 146 | // add a space as the last character after the last added links |