User:The Founders Intent/standard.js
From Wikipedia, the free encyclopedia
If a message on your talk page led you here, please be wary of who left it. Code that you insert on this page could contain malicious content capable of compromising your account. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. If this is a .js page, the code will be executed when previewing the page.
Note: After saving, you have to bypass your browser's cache to see the changes. In Internet Explorer and Firefox, hold down the Ctrl key and click the Refresh or Reload button. Opera users have to clear their caches through Tools→Preferences, see the instructions for Opera. Konqueror and Safari users can just click the Reload button.
/* 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', wgServer+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)}; }); importScript('User:Ais523/topcontrib.js'); importScript('User:Where/commentLocalize.js'); importScript('Wikipedia:WikiProject User scripts/Scripts/AutoAFD.js'); importScript('User:Ais523/highlightmyname2.js'); importScript('User:EcceNux/replylinks.js'); importScript('User:Ais523/catwatch.js'); importScript('User:TheDJ/Gadget-HotCat.js'); // ---- START INSTALLATION CODE ---- // install [[User:Cacycle/wikEdDiff]] enhanced diff view using ajax document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEdDiff.js' + '&action=raw&ctype=text/javascript"></script>'); // ---- END INSTALLATION CODE ----

