User:Esrever/monobook.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.
importScript('User:Dr pda/articlehistory.js'); importScript('User:Magnus Manske/fixdisambig.js'); // [[User:Lupin/popups.js]] document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); // [[User:Outriggr/metadatatest.js]] <nowiki> importScript('User:Outriggr/metadatatest.js'); assessmentMarkAsMinor = false; assessmentMyTemplateCode = ["{{WikiProject Universities|class=}}", "{{WPBiography|class=|priority=}}", "{{macprojectarticle|class=}}", "{{LGBTProject|class=}}", "{{WikiProject Computing|class=|importance=}}", "{{WPSchools|class=|importance=}}", "{{Business|class=}}", "{{Anglicanismproject|class=}}", "{{Environment|class=}}"]; assessmentDefaultProject = "WikiProject Universities"; // </nowiki> importScript('User:Dr pda/persondata.js'); //[[User:Dr pda/persondata.js]] /* <pre><nowiki> */ function addTab(id, after, caption, url) { if (!document.getElementById(id)) { var edit = document.getElementById(after); if (!edit) return; //If the previous tab doesn't exist, don't add this one var editparent = edit.parentNode; //+ var aseclinkcaption = document.createTextNode(caption) //'<a href="/index.php?title=User_talk:Astronouth7303&action=edit&section=new">' var aseclink = document.createElement('a'); aseclink.setAttribute('href',url); var addsectionlinkcaption = aseclink.appendChild(aseclinkcaption); //'<li id="ca-addsection">' var asec = document.createElement('li'); asec.setAttribute('id',id); var addsectionlink = asec.appendChild(aseclink); var addsection = editparent.insertBefore(asec,edit.nextSibling); } } function addEditSection() { var arti = wgPageName; addTab("ca-addsection", 'ca-edit', '+', wgScriptPath+"/index.php?title="+escape(arti)+"&action=edit§ion=new"); addTab("ca-editfirst" , 'ca-edit', '0', wgScriptPath+"/index.php?title="+escape(arti)+"&action=edit§ion=0"); } if (window.addEventListener) window.addEventListener("load",addEditSection,false); else if (window.attachEvent) window.attachEvent("onload",addEditSection); /* </nowiki></pre> */