User:He7d3r/Tools/externISBN.js
Appearance
From Meta, a Wikimedia project coordination wiki
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
// [[File:User:He7d3r/Tools/externISBN.js]] (workaround for [[phab:T35355]]) /** * @source: [[w:en:User:Lunchboxhero/externISBN.js]] * @author: [[w:en:User:Lunchboxhero]] */ // <nowiki> (function(e,i){"use strict";e.config.get("wgCanonicalSpecialPageName")!=="Booksources"&&i.inArray(e.config.get("wgPageName"),["Wikilivros:Fontes_de_livros","Wikipedia:Book sources"])===-1&&i(function(){vare="//www.google.com/search?tbs=bks:1&q=isbn:MAGICNUMBER",o=/MAGICNUMBER/gi;i("#content").find("a").each(function(){this.href.match(/Special:BookSources\/(.*)/)&&i(this).attr("href",e.replace(o,RegExp.1ドル.replace(/[\D]*/g,"")))})})})(mediaWiki,jQuery); // </nowiki>