User:Goodvac/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:Goodvac/monobook.css. |
importScript('User:AzaToth/twinkle.js'); // TWINKLE
importScript('User:AzaToth/morebits.js');
importScript('User:Omegatron/monobook.js/floatingSidebar.js');
importScript('User:Cameltrader/Advisor.js');
importScript('Wikipedia:AutoEd/complete.js');
importScript('User:Mr.Z-man/closeAFD.js');
refToolbarInstalled = 'bypass';
importScript('User:Goodvac/reftoolbar.js');
importScript('User:John254/mass rollback.js')
importScript('User:Porchcorpter/rollback.js');
if(mwCustomEditButtons) {
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "//upload.wikimedia.org/wikipedia/commons/1/1d/Bouton_Vandale1.png",
"speedTip": " ",
"tagOpen": "<!-- ",
"tagClose": " -->",
"sampleText": "Insert comment here"
};
}
// <pre><nowiki>
/////////////////////////////////////////////////////////////////////////////////////////////////////////
// Personal toolbox - from http://en.wikipedia.org/wiki/User:Brian0918/monobook.js
/////////////////////////////////////////////////////////////////////////////////////////////////////////
function mylinks() {
var boxclone = document.createElement("div");
boxclone.id = 'p-navclone';
boxclone.setAttribute("class","portlet");
var titolo = document.createElement("h5");
titolo.innerHTML = "my links";
boxclone.appendChild(titolo);
var corpo = document.createElement("div");
corpo.setAttribute("class","pBody");
var list_ul = document.createElement("ul");
var list_e = document.createElement("li");
list_e.id = 'v-monobookjs';
var link_e = document.createElement("a");
link_e.href = '/wiki/User:Goodvac/monobook.js';
link_e.innerHTML = 'My monobook.js';
list_e.appendChild(link_e);
list_ul.appendChild(list_e);
var list_j = document.createElement("li");
list_j.id = 'v-ars';
var link_j = document.createElement("a");
link_j.href = '/wiki/Wikipedia:Article_Rescue_Squadron/Rescue_list';
link_j.innerHTML = 'ARS';
list_j.appendChild(link_j);
list_ul.appendChild(list_j);
var list_k = document.createElement("li");
list_k.id = 'v-afd';
var link_k = document.createElement("a");
link_k.href = '/wiki/Wikipedia:Articles_for_deletion/Old/Open_AfDs?action=purge';
link_k.innerHTML = 'AfD/Old';
list_k.appendChild(link_k);
list_ul.appendChild(list_k);
var list_l = document.createElement("li");
list_l.id = 'v-csd';
var link_l = document.createElement("a");
link_l.href = 'http://toolserver.org/~russell/cgi-bin/csd.py';
link_l.innerHTML = 'CSD';
list_l.appendChild(link_l);
list_ul.appendChild(list_l);
var list_m = document.createElement("li");
list_m.id = 'v-google';
var link_m = document.createElement("a");
link_m.href = 'https://www.google.com/search?q="' + encodeURIComponent(mw.config.get('wgPageName')).replace( /_/g, '+' ) + '"&tbm=nws&tbs=ar:1';
link_m.innerHTML = 'G News archive';
list_m.appendChild(link_m);
list_ul.appendChild(list_m);
corpo.appendChild(list_ul);
boxclone.appendChild(corpo);
document.getElementById("column-one").appendChild(boxclone);
}
if (window.addEventListener) window.addEventListener("load",mylinks,false);
else if (window.attachEvent) window.attachEvent("onload",mylinks);
// </nowiki></pre>