User:Kaneiderdaniel/monobook.js

Source: Wikipedia, the free encyclopedia.
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.
// Olliminatore/monobook.js
 
function importPage(site){
document.write('<script type="text/javascript" src="/w/index.php?title=User:'
+ site + '&action=raw&ctype=text/javascript&dontcountme=s"><\/script>');
}
 
//importPage('Ilmari_Karonen/fixdiffwidth.js') // [[User:Ilmari_Karonen/fixdiffwidth.js]] 
 
if (document.URL.indexOf("&diff=",29)>0) addOnloadHook(function (){
// DIFF WIDTH FIX: v1.1 upd.: only if needed set max.width 
var diffT = document.getElementById("bodyContent"),
diffTable = diffT.getElementsByTagName("table")[0];
var diffT = diffTable.getElementsByTagName("tr")[0].getElementsByTagName("td"),
diffo = diffT[0], diffn = diffT[1],
diffoWidth = diffo.clientWidth,
diffnWidth = diffn.clientWidth;
if (diffnWidth==diffoWidth) return;
diffT = (diffnWidth + diffoWidth)/2;
diffTable.setAttribute("width", ((diffoWidth < diffnWidth)? diffnWidth: diffoWidth) +diffT+12);
});
 
importPage('PDD/godmode-light.js') // [[User:PDD/godmode-light.js]]
 
importPage('Ilmari_Karonen/sigdash.js') // [[User:Ilmari_Karonen/sigdash.js]] 
 
//importPage('Cacycle/diff.js') // [[User:Cacycle/diff]] text diff code
 
//importPage('Pilaf/livepreview.js') // [[User:Pilaf/Live_Preview]] page preview tool
 
//importPage('Cacycle/wikEd.js') // [[User:Cacycle/wikEd]] edit tool
 
importPage('Olliminatore/sign.js') // [[User:Olliminatore/sign.js]] check & automate signing
 
importPage('Invitatious/unsigned2.js') // [[User:Invitatious/unsigned2.js]]
 
importPage('Zocky/SearchBox.js');  // [[User:Zocky/SearchBox.js]] /* extended search & replace feature  */
 
// importPage('Lupin/popups.js') // [[User:Lupin/popups.js]]