r95353 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r95352‎ | r95353 | r95354 >
Date:23:25, 23 August 2011
Author:wikinaut
Status:deferred
Tags:
Comment:
version 0.200; added a link to google
Modified paths:
  • /trunk/tools/viaf/viaf.user.js (modified) (history)

Diff [purge]

Index: trunk/tools/viaf/viaf.user.js
@@ -2,9 +2,9 @@
33 // @name viaf
44 // @namespace viaf
55 // @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
99 // @include *
1010 // ==/UserScript==
1111
@@ -25,6 +25,7 @@
2626 * 20110817 disabled the built-in update checker; it has set 1-day cookie
2727 * "update" for every page by mistake.
2828 * 20110823 changed viaf.org link composition
 29+ * 20110824 added google link
2930 *
3031 ***/
3132
@@ -39,7 +40,7 @@
4041 var maxVIAFNumbers = 30;
4142
4243 // Script update checker source: http://a32.me/2009/11/greasemonkey/
43 -var VERSION = "0.198";
 44+var VERSION = "0.200";
4445 var SCRIPT_NAME = "viaf"
4546 var SCRIPT_URL = "http://$$$yourhost$$$/"+SCRIPT_NAME+".user.js"
4647
@@ -138,6 +139,7 @@
139140 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>" ) );
140141 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>" ) );
141142 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>" ) );
142144 // newLink.unshift( $( "<label class='show-summary'><input type='checkbox' class='show-summary-checkbox' checked='checked'><span id='show-summary-text'></span></label>" ) );
143145
144146 // add a space as the last character after the last added links

Status & tagging log