User:The Placebo Effect/monobook.js
Appearance
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. |
The accompanying .css page for this skin is at User:The Placebo Effect/monobook.css. |
importScript('User:Dr pda/articlehistory.js'); //[[User:Dr pda/articlehistory.js];
importScript('Wikipedia:WikiProject User scripts/Scripts/Six tabs');
importScript('User:Henrik/js/live-edit-counter.js');
importScript('User:Lupin/popups.js');
popupAdminLinks=true;
importScript('User:Ais523/votesymbols.js');
//importScript('User:AzaToth/twinkle.js');
importScript('User:AndyZ/peerreviewer.js');
importScript('User:Steel359/protection.js');
importScript('User:Ais523 non-admin/adminrights.js');
importScript('Wikipedia:WikiProject User scripts/Scripts/Single column diffs');
//importScript('User:Alex Smotrov/logpage.js');
importScript('User:Alex Smotrov/histcomb.js');
importScript('User:Mr.Z-man/hideClosedAFD.js');
importScript('Wikipedia:WikiProject User scripts/Scripts/CloseAFD.js');
// Admin tools
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Voice of All/adminnolupin/monobook.js'
+ '&action=raw&ctype=text/javascript');
/* Script to warn you if your userpage is changed by another user. By [[User:ais53]]. Note that the message persists until you edit
your userpage yourself. */
function upm_checkthisisme(xmlreq)
{
var junk;
try
{
var ed=xmlreq.responseText.split('<rev user="')[1].split('"')[0];
if(ed!=wgUserName) document.getElementById('siteSub').innerHTML+="<div class='usermessage'>Your userpage was changed by "+
"<a href='/wiki/User:"+encodeURI(ed)+"'>"+ed.split('<').join('<').split('>').join('>').split('&').join('&')+"</a>"+
" (<a href='/wiki/Special:Mypage'>your userpage</a>, <a href='/w/index.php?title=User:"+encodeURI(wgUserName)+"&diff=last'>"+
"last change</a>)";
} catch(junk) {};
}
addOnloadHook(function(){
var a = sajax_init_object();
a.open('GET', mw.config.get('wgServer')+mw.config.get('wgScriptPath')+'/api.php?action=query&prop=revisions&titles=User:'+
encodeURI(wgUserName)+'&rvlimit=1&rvprop=user&format=xml');
a.send('');
a.onreadystatechange = function(){if(a.readystate==4) upm_checkthisisme(a)};
});