User:Beyond My Ken/monobook.js: Difference between revisions
Appearance
Content deleted Content added
No edit summary |
No edit summary |
||
Line 14: | Line 14: | ||
importScript('User:Lunchboxhero/externISBN.js'); |
importScript('User:Lunchboxhero/externISBN.js'); |
||
importScriptURI('http://en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Haza-w/cactions.js'); |
importScriptURI('http://en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Haza-w/cactions.js'); |
||
importScript('User:UncleDouggie/smart watchlist.js'); |
<!--importScript('User:UncleDouggie/smart watchlist.js');--> |
Revision as of 01:58, 30 March 2012
function externISBN() {
for (var i = 0; i < document.links.length; i++)
{
if( document.links[i].href.match(/isbn=(.*)/) ) {
document.links[i].href='http://www.amazon.com/exec/obidos/ASIN/'+RegExp.$1;
}
}
}
addOnloadHook(externISBN);
var magicURL = "http://www.amazon.com/gp/search?ie=UTF8&field-isbn=MAGICNUMBER&tag=wikipedia08-20";
importScript('User:Lunchboxhero/externISBN.js');
importScriptURI('http://en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Haza-w/cactions.js');
<!--importScript('User:UncleDouggie/smart watchlist.js');-->