/*
var docTitle=document.title;
// Originally based on https://en.wikipedia.org/w/index.php?title=User:JesseW/monobook.js&oldid=20755510
//See [[Wikipedia:WikiProject User scripts/Scripts/Show last diff]]
// addLastDiff
function addLastDiff()
{
mw.util.addPortletLink('p-cactions', mw.config.get('wgServer') + mw.config.get('wgScriptPath') + '/index.php?title=' + wgPageName + "&diff=cur&oldid=prev", 'last', 'ca-last', 'Show most recent diff');
}
function addUserLogs()
{
var user = docTitle.substring(docTitle.indexOf(":")+1,docTitle.indexOf("-")-1);
mw.util.addPortletLink("p-tb", "/w/index.php?title=Special:Log&user="+user, "User log", "t-userlog", null, null, "t-blockip");
mw.util.addPortletLink("p-tb", "/w/index.php?title=Special:Log&type=block&page=User:"+user, "Block log", "t-blocklog", null, null, "t-emailuser");
}
if (docTitle.indexOf("User:") === 0 || docTitle.indexOf("User talk:") === 0)
{
addOnloadHook(addUserLogs);
}
importScript("User:Superm401/easyMoveConfirm.js");
// [[:en:User:Superm401/Compare link.js]]
mw.loader.load( '//en.wikipedia.org/w/index.php?title=User:Superm401/Compare_link.js&action=raw&ctype=text/javascript' );
//Should only run if page has a history (i.e. is or could be editable)
function doHistorical()
{
var hist = document.getElementById('ca-history');
if(hist)
{
addLastDiff();
}
}
$(doHistorical);
function addPageLog()
{
mw.util.addPortletLink("p-tb", "/w/index.php?title=Special%3ALog&page=" + wgPageName, "Log", "t-pagelog", null, null, "t-whatlinkshere");
}
if(wgCanonicalNamespace != "Special")
{
addOnloadHook(addPageLog);
}
importScript("User:Superm401/catWarn.js");
importScript("User:Superm401/editNew.js");
//importScript("User:Superm401/resizeableImages.js");
// [[User:Superm401/noGalleryToggle.js]]
importScript("User:Superm401/noGalleryToggle.js");
//</pre>
*/