<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://70.231.62.181/index.php?action=history&amp;feed=atom&amp;title=MyWiki%3AWikiProject_User_scripts%2FScripts%2FSet_Book_Source</id>
	<title>MyWiki:WikiProject User scripts/Scripts/Set Book Source - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://70.231.62.181/index.php?action=history&amp;feed=atom&amp;title=MyWiki%3AWikiProject_User_scripts%2FScripts%2FSet_Book_Source"/>
	<link rel="alternate" type="text/html" href="http://70.231.62.181/index.php?title=MyWiki:WikiProject_User_scripts/Scripts/Set_Book_Source&amp;action=history"/>
	<updated>2026-04-22T13:01:39Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>http://70.231.62.181/index.php?title=MyWiki:WikiProject_User_scripts/Scripts/Set_Book_Source&amp;diff=15617041&amp;oldid=prev</id>
		<title>imported&gt;Amorymeltzer: Amorymeltzer changed the content model of the page Wikipedia:WikiProject User scripts/Scripts/Set Book Source from &quot;wikitext&quot; to &quot;JavaScript&quot;: Page is javascript</title>
		<link rel="alternate" type="text/html" href="http://70.231.62.181/index.php?title=MyWiki:WikiProject_User_scripts/Scripts/Set_Book_Source&amp;diff=15617041&amp;oldid=prev"/>
		<updated>2021-02-07T14:31:48Z</updated>

		<summary type="html">&lt;p&gt;Amorymeltzer changed the content model of the page &lt;a href=&quot;https://en.wikipedia.org/wiki/WikiProject_User_scripts/Scripts/Set_Book_Source&quot; class=&quot;extiw&quot; title=&quot;wikipedia:WikiProject User scripts/Scripts/Set Book Source&quot;&gt;Wikipedia:WikiProject User scripts/Scripts/Set Book Source&lt;/a&gt; from &amp;quot;wikitext&amp;quot; to &amp;quot;JavaScript&amp;quot;: Page is javascript&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;//&amp;lt;pre&amp;gt;&lt;br /&gt;
//This code will change ISBN links to point to the url of your choice,&lt;br /&gt;
//instead of Special:Book_sources. &lt;br /&gt;
//&lt;br /&gt;
//How to use it:&lt;br /&gt;
//&lt;br /&gt;
//First, you must copy this code to your user javascript page. This is &lt;br /&gt;
//at User:&amp;lt;your username&amp;gt;/monobook.js . My username is Lunchboxhero so&lt;br /&gt;
//my javascript page is User:Lunchboxhero/monobook.js . You must be logged&lt;br /&gt;
//in to edit your javascript page.&lt;br /&gt;
//&lt;br /&gt;
//Once you have copied the code and saved the page, you need to refresh your&lt;br /&gt;
//browser&amp;#039;s cache. For Mozilla/Safari/Konqueror: hold down Shift while clicking &lt;br /&gt;
//Reload (or press Ctrl-Shift-R), IE: press Ctrl-F5, Opera: press F5.&lt;br /&gt;
//&lt;br /&gt;
//The code should now work, as long as you are logged in.&lt;br /&gt;
//&lt;br /&gt;
//You can change the destination URL.  Go to [[Wikipedia:Book sources]] and copy &lt;br /&gt;
//the URL of the site you want to use (right-click the link, then click &amp;quot;Copy Link &lt;br /&gt;
//Location&amp;quot;, &amp;quot;Copy Target&amp;quot;, or similar).  Put the new URL between the quotes next &lt;br /&gt;
//to magicURL, in place of the URL now there.&lt;br /&gt;
//&lt;br /&gt;
//Good luck, and if you have any questions, leave a comment on the discussion&lt;br /&gt;
//page of User:Lunchboxhero/monobook.js . Thanks to Superm401 and drrngravy for their&lt;br /&gt;
//improvements.&lt;br /&gt;
//&lt;br /&gt;
//(Every line that starts with &amp;quot;//&amp;quot; is a comment and can be discarded.)&lt;br /&gt;
&lt;br /&gt;
function externISBN() {&lt;br /&gt;
 var magicURL = &amp;quot;http://www.amazon.com/s?search-alias=stripbooks&amp;amp;field-isbn=MAGICNUMBER&amp;quot;;&lt;br /&gt;
 &lt;br /&gt;
  var magicRegex = /MAGICNUMBER/ig;&lt;br /&gt;
  if(mw.config.get(&amp;#039;wgPageName&amp;#039;) != &amp;quot;Special:Booksources&amp;quot;&lt;br /&gt;
           &amp;amp;&amp;amp; mw.config.get(&amp;#039;wgPageName&amp;#039;) != &amp;quot;Wikipedia:Book_sources&amp;quot;){&lt;br /&gt;
    for (var i = 0; i &amp;lt; document.links.length; i++) {       &lt;br /&gt;
      if( document.links[i].href.match(/Special:BookSources\/(.*)/) ) {&lt;br /&gt;
        document.links[i].href=magicURL.replace(magicRegex, RegExp.$1);&lt;br /&gt;
      }&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
addOnloadHook(externISBN);&lt;br /&gt;
&lt;br /&gt;
//&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Amorymeltzer</name></author>
	</entry>
</feed>