Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes.
A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the
appropriate village pump. This code will be executed when previewing this page.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see
Wikipedia:Bypass your cache.
importScript('User:Alex Smotrov/histcomb.js')//<pre>// Compare link/*To install Compare link, put:// [[User:Superm401/Compare link.js]]importScript("User:Superm401/Compare link.js");in your monobook.In addition to the GFDL:This function (compare link) is free software; you can redistribute it and/ormodify it under the terms of the GNU General Public Licenseas published by the Free Software Foundation; either version 2of the License, or (at your option) any later version.This function is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See theGNU General Public License for more details.A copy of the GPL is available at http://www.prism.gatech.edu/~mflaschen3/gpl.txt .By modifying "Wikipedia:WikiProject User scripts/Scripts/Compare link":You agree to dual-license your contributions under both the GFDL (http://en.wikipedia.org/wiki/WP:GFDL)and version 2 of the GPL (http://www.prism.gatech.edu/~mflaschen3/gpl.txt) or any later versionof the GPL published by the FSF.*/functionfixCompare(){varhistForm=document.getElementsByTagName("form")[1];varfinalButton=document.getElementById("pagehistory").nextSibling;if(!finalButton||finalButton==null)return;varfirstButton=histForm.getElementsByTagName("input")[1];histForm.removeChild(finalButton);histForm.removeChild(firstButton);varcompareLink=document.createElement("a");vargenLink=mw.config.get('wgServer')+mw.config.get('wgScript')+"?title="+histForm.title.value+"&diff="+histForm.diff0].value+"&oldid="+histForm.oldid1].value;compareLink.setAttribute("href",genLink);compareLink.appendChild(document.createTextNode("Compare selected versions"));histForm.insertBefore(compareLink,document.getElementById("pagehistory"));varendLink=compareLink.cloneNode(true);histForm.appendChild(endLink);vardiffList=document.getElementById("pagehistory");diffList.setAttribute("onchange","updateCompare()");}functionupdateCompare(){varhistForm=document.getElementsByTagName("form")[1];vardiffList=document.getElementById("pagehistory");varcompareLink=diffList.previousSibling;varendLink=diffList.nextSibling;varoldInd=-1;vari=0;while(oldInd==-1&i<histForm.oldid.length){if(histForm.oldidi].checked)oldInd=i;i++;}vardiffInd=-1;varj=0;while(diffInd==-1&j<histForm.diff.length){if(histForm.diffj].checked)diffInd=j;j++;}vargenLink=mw.config.get('wgServer')+mw.config.get('wgScript')+"?title="+histForm.title.value+"&diff="+histForm.diffdiffInd].value+"&oldid="+histForm.oldidoldInd].value;compareLink.setAttribute("href",genLink);endLink.setAttribute("href",genLink);}if(window.location.href.indexOf("action=history")!=-1)$(fixCompare);//</pre>if(typeof(TwinkleConfig)=='undefined')TwinkleConfig={};// DO NOT REMOVE THIS LINE - ALL TWINKLE SETTINGS AFTER THISTwinkleConfig.showSharedIPNotice=false;TwinkleConfig.userTalkPageMode='tab';TwinkleConfig.watchRevertedPages=[];TwinkleConfig.watchWarnings=false;
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes.
A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the
appropriate village pump. This code will be executed when previewing this page.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see
Wikipedia:Bypass your cache.
importScript('User:Alex Smotrov/histcomb.js')//<pre>// Compare link/*To install Compare link, put:// [[User:Superm401/Compare link.js]]importScript("User:Superm401/Compare link.js");in your monobook.In addition to the GFDL:This function (compare link) is free software; you can redistribute it and/ormodify it under the terms of the GNU General Public Licenseas published by the Free Software Foundation; either version 2of the License, or (at your option) any later version.This function is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See theGNU General Public License for more details.A copy of the GPL is available at http://www.prism.gatech.edu/~mflaschen3/gpl.txt .By modifying "Wikipedia:WikiProject User scripts/Scripts/Compare link":You agree to dual-license your contributions under both the GFDL (http://en.wikipedia.org/wiki/WP:GFDL)and version 2 of the GPL (http://www.prism.gatech.edu/~mflaschen3/gpl.txt) or any later versionof the GPL published by the FSF.*/functionfixCompare(){varhistForm=document.getElementsByTagName("form")[1];varfinalButton=document.getElementById("pagehistory").nextSibling;if(!finalButton||finalButton==null)return;varfirstButton=histForm.getElementsByTagName("input")[1];histForm.removeChild(finalButton);histForm.removeChild(firstButton);varcompareLink=document.createElement("a");vargenLink=mw.config.get('wgServer')+mw.config.get('wgScript')+"?title="+histForm.title.value+"&diff="+histForm.diff0].value+"&oldid="+histForm.oldid1].value;compareLink.setAttribute("href",genLink);compareLink.appendChild(document.createTextNode("Compare selected versions"));histForm.insertBefore(compareLink,document.getElementById("pagehistory"));varendLink=compareLink.cloneNode(true);histForm.appendChild(endLink);vardiffList=document.getElementById("pagehistory");diffList.setAttribute("onchange","updateCompare()");}functionupdateCompare(){varhistForm=document.getElementsByTagName("form")[1];vardiffList=document.getElementById("pagehistory");varcompareLink=diffList.previousSibling;varendLink=diffList.nextSibling;varoldInd=-1;vari=0;while(oldInd==-1&i<histForm.oldid.length){if(histForm.oldidi].checked)oldInd=i;i++;}vardiffInd=-1;varj=0;while(diffInd==-1&j<histForm.diff.length){if(histForm.diffj].checked)diffInd=j;j++;}vargenLink=mw.config.get('wgServer')+mw.config.get('wgScript')+"?title="+histForm.title.value+"&diff="+histForm.diffdiffInd].value+"&oldid="+histForm.oldidoldInd].value;compareLink.setAttribute("href",genLink);endLink.setAttribute("href",genLink);}if(window.location.href.indexOf("action=history")!=-1)$(fixCompare);//</pre>if(typeof(TwinkleConfig)=='undefined')TwinkleConfig={};// DO NOT REMOVE THIS LINE - ALL TWINKLE SETTINGS AFTER THISTwinkleConfig.showSharedIPNotice=false;TwinkleConfig.userTalkPageMode='tab';TwinkleConfig.watchRevertedPages=[];TwinkleConfig.watchWarnings=false;