Gebruiker:Henna/monobook.js

Uit Wikipedia, de vrije encyclopedie

Opmerking: nadat u de wijzigingen hebt gepubliceerd is het wellicht nodig uw browsercache te legen.

  • Firefox / Safari: houd Shift ingedrukt terwijl u op Vernieuwen klikt of druk op Ctrl-F5 of Ctrl-R (⌘-Shift-R op een Mac)
  • Google Chrome: druk op Ctrl-Shift-R (⌘-Shift-R op een Mac)
  • Internet Explorer / Edge: houd Ctrl ingedrukt terwijl u op Vernieuwen klikt of druk op Ctrl-F5
  • Opera: druk op Ctrl-F5.
document.write('<script type="text/javascript" src="'
+ 'http://nl.wikipedia.org/w/index.php?title=Gebruiker:Valhallasw/hennading.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');


// [[en:User:Lupin/popups.js]] - please include this line 

mw.loader.load(
             'https://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js'
             + '&action=raw&ctype=text/javascript&dontcountme=s');

/* <pre><nowiki> */

$(addToolBoxLinks);

//**************************************************************************************//
// Buttons for template-uniformisation (uniformisatie van sjablonen) from User:Gerbennn //
//**************************************************************************************//

function header(){
        document.editform.wpTextbox1.value = "{|style=\"margin:0.5em 0 0.5em 0; clear:both;\" width=100% class=toccolours \n"+document.editform.wpTextbox1.value;
        document.editform.wpSummary.value = "Uniform met {{navigatie}}";
        document.editform.wpMinoredit.checked = false;}

//*******************************************************************//
// redirect shortcut & other handy stuff//
//*******************************************************************//
function categorie() {
        insertTags("[[Categorie:","]]\n","");
        document.editform.wpSummary.value = "+cat";
        document.editform.wpMinoredit.checked = true;}

function addlilink(tabs, url, name, id){
	var na = document.createElement('a');
	na.href = url;
	na.appendChild(document.createTextNode(name));
	var li = document.createElement('li');
	li.id = id;
	li.appendChild(na);
	tabs.appendChild(li);
	return li;
}

function addToolBoxLinks()
	{
	        var tb = document.getElementById('p-tb').getElementsByTagName('ul')[0];
		addlilink(tb, '/wiki/Special:Ipblocklist', 'IPBlocklist', '');
		addlilink(tb, 'http://www.copyscape.com', 'Copyscape', '');
		addlilink(tb, 'http://www.affenkrieger.de/wiki/wikicc.php', 'Affenkrieger', '');
	        
                if(document.title.indexOf("Gebruiker:") == 0) {
                   addlilink(tb, '/wiki/Wikipedia:Blokkeringsmeldingen', 'Blokmelding', '');
                   }
}
//*******************************************************************//
// marking articles //
//*******************************************************************//
function auteur() {
        document.editform.wpTextbox1.value = "{{auteur}}\n"+document.editform.wpTextbox1.value;
        document.editform.wpSummary.value = "auteur";
        document.editform.wpMinoredit.checked = false;
	document.editform.submit();}

function wiu() {
        document.editform.wpTextbox1.value = "{{wiu}}\n"+document.editform.wpTextbox1.value;
        document.editform.wpSummary.value = "wiu";
        document.editform.wpMinoredit.checked = false;}

function weg() {
        document.editform.wpTextbox1.value = "{{weg}}\n"+document.editform.wpTextbox1.value;
        document.editform.wpSummary.value = "weg";
        document.editform.wpMinoredit.checked = false;
	document.editform.submit();}


function nuweg() {
        document.editform.wpTextbox1.value = "{{nuweg}}\n"+document.editform.wpTextbox1.value;
        document.editform.wpSummary.value = "nuweg";
        document.editform.wpMinoredit.checked = false;
        document.editform.submit();}

function woordenb() {
        document.editform.wpTextbox1.value = "{{wb}}\n"+document.editform.wpTextbox1.value;
        document.editform.wpSummary.value = "wb-def";
        document.editform.wpMinoredit.checked = false;
	document.editform.submit();}

function reclame() {
        document.editform.wpTextbox1.value = "{{reclame}}\n"+document.editform.wpTextbox1.value;
        document.editform.wpSummary.value = "reclame";
        document.editform.wpMinoredit.checked = false;
	document.editform.submit();}

//*******************************************************************//
// anonymous user messages //
//*******************************************************************//
function wa() {
        document.editform.wpTextbox1.value = "{{welkomanoniem}}\n\n~~~~";
        document.editform.wpSummary.value = "wa";
        document.editform.wpMinoredit.checked = false;}

function zb() {
        document.editform.wpTextbox1.value = "{{zb}}\n#~~~~~ je kan in de zandbak je eerste oefeningen doen... Bij vragen [http://nl.wikipedia.org/w/wiki.phtml?title=Overleg_gebruiker:Obarskyr&action=edit&section=new klik hier]";
        document.editform.wpSummary.value = "zb";
        document.editform.wpMinoredit.checked = false;}

function puber() {
        document.editform.wpTextbox1.value = "{{puber}}\n#~~~~~ je kan in de zandbak je eerste oefeningen doen... Bij vragen [http://nl.wikipedia.org/w/wiki.phtml?title=Overleg_gebruiker:Obarskyr&action=edit&section=new klik hier]";
        document.editform.wpSummary.value = "pbr";
        document.editform.wpMinoredit.checked = false;}

function ws() {
        document.editform.wpTextbox1.value = "{{ws}}"+document.editform.wpTextbox1.value
        document.editform.wpSummary.value = "ws";
        document.editform.wpMinoredit.checked = false;}

function dsVan() {
        document.editform.wpTextbox1.value =      document.editform.wpTextbox1.value.replace(/\n+$/,"")+"\n#~~~~~ vandalisme op ''  '' teruggedraaid door [[Gebruiker:Obarskyr|Obarskyr]]";
        document.editform.wpSummary.value = document.editform.wpSummary.value + " + ds";
        document.editform.wpMinoredit.checked = false;}

function dsLeeg() {
        document.editform.wpTextbox1.value =      document.editform.wpTextbox1.value.replace(/\n+$/,"")+"\n#~~~~~ leeghalen van ''  '' teruggedraaid door [[Gebruiker:Obarskyr|Obarskyr]]";
        document.editform.wpSummary.value = document.editform.wpSummary.value + " + ds";
        document.editform.wpMinoredit.checked = false;}

function dsspam() {
        document.editform.wpTextbox1.value =      document.editform.wpTextbox1.value.replace(/\n+$/,"")+"\n#~~~~~ linkspam op ''  '' teruggedraaid door [[Gebruiker:Obarskyr|Obarskyr]]";
        document.editform.wpSummary.value = document.editform.wpSummary.value + " + ds";
        document.editform.wpMinoredit.checked = false;}

function ispam() {
        document.editform.wpTextbox1.value =      document.editform.wpTextbox1.value.replace(/\n+$/,"")+"\n<small>Gebruik geen externe links als we het binnen Wikipedia kunnen oplossen <br>Plaats geen links naar externe adressen voor informatie waarover we in Wikipedia een artikel willen hebben! Is een externe link toch nodig, zet die dan onderaan de pagina in een aparte linksectie en laat duidelijk zien dat het hier om een externe link gaat. Als je bijvoorbeeld een artikel schrijft over René Descartes en je weet bijvoorbeeld van een geweldig goed artikel op het web over Rationalisme, plaats dan de externe link (het adres van dat artikel) niet bij het woord 'Rationalisme' in de tekst, maar onderaan de pagina in een aparte sectie externe links. Bovendien wil je dat er ook in Wikipedia zelf een artikel komt over Rationalisme (als dat er nog niet zou zijn) dus maak je daarvoor zó een interne link: Rationalisme.</small><br>Dit is afkomstig van [[Wikipedia:Toch een paar regels]]. Gelieve dit in de toekomst in acht te nemen. ~~~~ ";
        document.editform.wpSummary.value = document.editform.wpSummary.value + " + ds";
        document.editform.wpMinoredit.checked = false;}


function dsOnzin() {
        document.editform.wpTextbox1.value =      document.editform.wpTextbox1.value.replace(/\n+$/,"")+"\n#~~~~~ toevoegen onzin op ''  '' teruggedraaid door [[Gebruiker:Obarskyr|Obarskyr]]";
        document.editform.wpSummary.value = document.editform.wpSummary.value + " + ds";
        document.editform.wpMinoredit.checked = false;}

function dsNieuw() {
        document.editform.wpTextbox1.value =      document.editform.wpTextbox1.value.replace(/\n+$/,"")+"\n#~~~~~ aanmaken onzinartikel verwijdert door [[Gebruiker:Obarskyr|Obarskyr]]";
        document.editform.wpSummary.value = document.editform.wpSummary.value + " + ds";
        document.editform.wpMinoredit.checked = false;}

function idem() {
        document.editform.wpTextbox1.value =
document.editform.wpTextbox1.value.replace(/\n+$/,"")+"\n#~~~~~ idem teruggedraaid door [[Gebruiker:Obarskyr|Obarskyr]]";
        document.editform.wpSummary.value = document.editform.wpSummary.value + " + ds";
        document.editform.wpMinoredit.checked = false;}

function PAanval() {
        document.editform.wpTextbox1.value =
document.editform.wpTextbox1.value.replace(/\n+$/,"")+"\nJe hebt daarnet een niet constructieve [link uiting] bijdrage aan wikipedia geleverd. De [[Wikipedia:Geen persoonlijke aanvallen|richtlijnen]] van wikipedia proberen dit te vermijden. Daarom is je de mogelijkheid gegeven na <duur> weer met constructief werk te beginnen, aangezien ik ervan [[Wikipedia:Ga uit van goede wil|uitga]] dat je bij je  nieuwe edits goed werk zal leveren. ~~~~";
        document.editform.wpSummary.value = document.editform.wpSummary.value + " + ds";
        document.editform.wpMinoredit.checked = false;}

//*******************************************************************//
//*******************************************************************//
//*******************************************************************//
// Event functions //
//*******************************************************************//

// Add the buttons to the page //
function addButtons() {
        str = "<input type=button value=Nav-Sjabl-Begin onclick=\"header()\" class=subbutt><input type=button value=Redirect onclick=\"redirect()\" class=subbutt><input type=button value=DP onclick=\"dp()\" class=subbutt><input type=button value=Categorie onclick=\"categorie()\" class=subbutt><input type=button value=NoCat onclick=\"nocat()\" class=subbutt><br><input type=button value=Auteur onclick=\"auteur()\" class=subbutt><input type=button value=WIU onclick=\"wiu()\" class=subbutt><input type=button value=weg onclick=\"weg()\" class=subbutt><input type=button value=nuweg onclick=\"nuweg()\" class=subbutt><input type=button value=Wb-def onclick=\"woordenb()\" class=subbutt><input type=button value=Reclame onclick=\"reclame()\" class=subbutt><input type=button value=PAanval onclick=\"PAanval()\" class=subbutt>";

if(location.href.match(/gebruiker:/)) {
             str = "<input type=button value=WelkomAno onclick=\"wa()\" class=subbutt><input type=button value=WS onclick=\"ws()\" class=subbutt><input type=button value=\"Idem\" onclick=\"idem()\" class=subbutt><input type=button value=\"Vand. op\" onclick=\"dsVan()\" class=subbutt><input type=button value=\"Leegh. van\" onclick=\"dsLeeg()\" class=subbutt><input type=button value=\"Onz. op\" onclick=\"dsOnzin()\" class=subbutt><input type=button value=\"Onzin-Art.\" onclick=\"dsNieuw()\" class=subbutt><input type=button value=Zandbak onclick=\"zb()\" class=subbutt accesskey=²><input type=button value=Puber onclick=\"puber()\" class=subbutt accesskey=\<><input type=button value=Blok onclick=\"blok()\" class=subbutt><input type=button value=Linkdoss onclick=\"dsspam()\" class=subbutt><input type=button value=Linkinfo onclick=\"ispam()\" class=subbutt><input type=button value=PAanval onclick=\"PAanval()\" class=subbutt>";
        }
document.getElementById("editpage-copywarn").innerHTML="<form action=\"\">"+str+"</form><br/>"+document.getElementById("editpage-copywarn").innerHTML;        
        return false; 
}

//*******************************************************************//
// Declare events //
//*******************************************************************//
if(location.href.match(/action=(edit)|(submit)/)) {
  if (window.addEventListener) {
    window.addEventListener("load", addButtons, false);
  } else if (window.attachEvent) {
    window.attachEvent("onload", addButtons);
  }
} 

//</nowiki></pre>