// ] - please include this line
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Dschwen/highlightredirects.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
//------------------------------------------------------------------------------------
// Provide links to hide all pages by an editor in Special:Newpages
// By ] - 3 april 2006 - released under GPL: please include this line
//-------------------------------------------------------------------------------------
txtHideLink = 'verberg';
function hideEdits(editor)
{
newpages=document.getElementById('bodyContent').getElementsByTagName('li');
for (i=0;i<newpages.length;i++)
{
editorName=newpages.getElementsByTagName('a').innerHTML;
if (editorName == editor)
newpages.style.display='none';
}
}
function addHideLinks()
{
newpages=document.getElementById('bodyContent').getElementsByTagName('li');
for (i=0;i<newpages.length;i++)
{
editorLink=newpages.getElementsByTagName('a');
var hideLink = document.createElement('span');
hideLink.innerHTML='<a href="javascript:hideEdits(\'' + editorLink.innerHTML+ '\')">(' + txtHideLink + ')</a> - ';
newpages.insertBefore(hideLink, editorLink);
if ((i % 50) == 0) akeytt();
}
akeytt();
}
if (document.location.href.indexOf(':Newpages') != -1)
window.addEventListener ('DOMContentLoaded',addHideLinks,false);
// This is based on the original code at en:User:MarkS/extraeditbuttons.jsbased which
// was based on the original code on Wikipedia:Tools/Editing tools
//
// The original code was on the project page and needed to be cut and paste to the user's
// monobook.js page. However, this caused problems with the quote marks. So I have moved
// it to its own page.
//
// I do not know a lot about Javascript so please do not ask for a complicated change
//
// See the ] for changes log
function InsertButtonsToToolBar()
{
//<nowiki>
//Strike-Out Button
mwCustomEditButtons = {
"imageFile": "http://upload.wikimedia.org/wikipedia/en/c/c9/Button_strike.png",
"speedTip": "doorstrepen",
"tagOpen": "<s>",
"tagClose": "</s>",
"sampleText": "Tekst doorstrepen"}
//Left-Text Button
mwCustomEditButtons = {
"imageFile": "http://upload.wikimedia.org/wikipedia/en/e/ea/Button_align_left.png",
"speedTip": "links uitlijnen",
"tagOpen": "<div style='text-align: left; direction: ltr; margin-left: 1em;'>\n",
"tagClose": "\n</div>",
"sampleText": "tekst links uitlijnen"}
//Center-Text Button
mwCustomEditButtons = {
"imageFile": "http://upload.wikimedia.org/wikipedia/en/5/5f/Button_center.png",
"speedTip": "centreren",
"tagOpen": "<div style='text-align: center;'>\n",
"tagClose": "\n</div>",
"sampleText": "tekst centreren"}
//Superscript
mwCustomEditButtons = {
"imageFile": "http://upload.wikimedia.org/wikipedia/en/8/80/Button_upper_letter.png",
"speedTip": "superscript",
"tagOpen": "<sup>",
"tagClose": "</sup>",
"sampleText": "Superscript tekst"}
//Subscript
mwCustomEditButtons = {
"imageFile": "http://upload.wikimedia.org/wikipedia/en/7/70/Button_lower_letter.png",
"speedTip": "subscript",
"tagOpen": "<sub>",
"tagClose": "</sub>",
"sampleText": "Subscript tekst"}
//Small Text
mwCustomEditButtons = {
"imageFile": "http://upload.wikimedia.org/wikipedia/en/5/58/Button_small.png",
"speedTip": "klein",
"tagOpen": "<small>",
"tagClose": "</small>",
"sampleText": "Kleine tekst"}
//Comment
mwCustomEditButtons = {
"imageFile": "http://upload.wikimedia.org/wikipedia/en/3/34/Button_hide_comment.png",
"speedTip": "Invoegen verborgen commentaar",
"tagOpen": "<!-- ",
"tagClose": " -->",
"sampleText": "Commentaar"}
//Secondary Headline
mwCustomEditButtons = {
"imageFile": "http://upload.wikimedia.org/wikipedia/en/e/e9/Button_headline2.png",
"speedTip": "Kopje op derde niveau",
"tagOpen": "\n===",
"tagClose": "===",
"sampleText": "Kopje op derde niveau"}
//Code
mwCustomEditButtons = {
"imageFile": "http://upload.wikimedia.org/wikipedia/en/2/23/Button_code.png",
"speedTip": "Invoegen code",
"tagOpen": "<code>",
"tagClose": "</code>",
"sampleText": "Code"}
//Template button
mwCustomEditButtons = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/3/3b/Button_template_alt.png",
"speedTip": "Sjabloon",
"tagOpen": "{{",
"tagClose": "}}",
"sampleText": "sjabloonnaam"}
//Category button
mwCustomEditButtons = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/5/5a/Button_category_alt.png",
"speedTip": "Categorie",
"tagOpen": "[[Categorie:",
"tagClose": "]]",
"sampleText": "Categorietitel"}
//Reference button
mwCustomEditButtons = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/a/a0/Button_references_alt.png",
"speedTip": "Reference footer",
"tagOpen": "<references/>",
"tagClose": "",
"sampleText": ""}
//Reference link button
mwCustomEditButtons = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/79/Button_reflink.png",
"speedTip": "<ref>",
"tagOpen": "<ref>",
"tagClose": "</ref>",
"sampleText": "Invoegen referentie"}
//</nowiki>
}
$( InsertButtonsToToolBar );
//------------------------------------------------------------------------------------
// Provide links to hide all edits by an editor in Special:Recentchanges
// Note: This script doesn't work with the "Enhanced recent changes (JavaScript)"
// By ] - December 12th, 2006 - Released under the GNU GPL
// Based on ]
// By ] - 3 april 2006 - released under GPL: please include this line
//-------------------------------------------------------------------------------------
function rchideEdits(editor)
{
listitems = document.getElementById('bodyContent').getElementsByTagName('li');
for (i=0; i<listitems.length; i++)
{
editorName = ''
editorLinks = listitems.getElementsByTagName('a');
for (j=0; j<editorLinks.length; j++)
{
if(editorLinks.href.indexOf('Gebruiker:') != -1 && editorLinks.href.indexOf('title=Gebruiker:') == -1 && editorLinks.innerHTML.indexOf('Gebruiker:') == -1)
{
editorName = listitems.getElementsByTagName('a').innerHTML;
break;
}
}
if (editorName == editor)
{
listitems.style.display='none';
}
}
}
function rcaddHideLinks()
{
listitems = document.getElementById('bodyContent').getElementsByTagName('li');
for (i=0; i<listitems.length; i++)
{
editorLinks = listitems.getElementsByTagName('a');
for (j=0; j<editorLinks.length; j++)
{
if(editorLinks.href.indexOf('Gebruiker:') != -1 && editorLinks.href.indexOf('title=Gebruiker:') == -1 && editorLinks.innerHTML.indexOf('Gebruiker:') == -1)
{
editorLink = editorLinks;
var hideLink = document.createElement('span');
hideLink.innerHTML='(<a href="javascript:rchideEdits(\'' + editorLink.innerHTML+ '\')">v</a>) ';
listitems.insertBefore(hideLink, editorLink);
break;
}
}
if ((i % 50) == 0)
{
akeytt();
}
}
akeytt();
}
addOnloadHook(
function ()
{
if (document.location.href.indexOf('Speciaal:RecenteWijzigingen') != -1)
{
rcaddHideLinks();
}
}
)
//Edit sectie 0
$(function () {
var x;
if (!(x = document.getElementById('ca-edit') )) return;
var url;
if (!(url = x.getElementsByTagName('a') )) return;
if (!(url = url.href )) return;
var y = mw.util.addPortletLink('p-cactions', url+"§ion=0", '0', 'ca-edit-0',
'Edit the lead section of this page', '0', x.nextSibling);
y.className = x.className; // steal classes from the the edit tab...
x.className = 'istalk'; // ...and make the edit tab have no right margin
// exception: don't steal the "selected" class unless actually editing section 0:
if (/(^| )selected( |$)/.test(y.className)) {
if (!document.editform || !document.editform.wpSection
|| document.editform.wpSection.value != "0") {
y.className = y.className.replace(/(^| )selected( |$)/g, "$1");
x.className += ' selected';
}
}
});
/* Version 2.beta.4
]
'''Zeusmode''' - by ] - is an extensive elaboration of Sam Hocevar's godmode-light script and some other ]. It has been tested with ] and ]. Some functionality is retained when using ].
*/
//<pre><nowiki>
// ZeusMode 2.beta - SETTINGS - ]
zmver=0.041;
isSysop=true;
zmUseQuickTemplate=true;
zmUseLocalTemplates=true;
zmUseCustomTemplates=false;
zmCustomTemplateLocation="";
zmUseRevert=true;
zmUsePlace=true;
zmUseUndo=false;
zmUseRollback=false;
zmUseWatchlist=true;
zmUseSinceLinks=true;
zmUseSinceTab=true;
zmUseLastTab=true;
zmUseNewPages=true;
zmUseMarkPatrolled=true;
zmUseMisc=true;
zmUseBlockRequest=false;
zmRecentChangesLink=true;
zmRecentChangesDefault="?hidepatrolled=1&hideliu=1&limit=50";
zmUseUserListLinks=true;
// --- END OF ZEUSMODE SETTINGS
document.write('<scr'+'ipt type="text/javascript"'
+ 'src="http://nl.wikipedia.org/w/index.php?title=Gebruiker:Zanaq/Zeusmode/zm.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></scr'+'ipt>');
//</nowiki></pre>
//------------------------------------------------------------------------------------
// Adds extra links to Special:Listusers
// By ] - 7 march 2008 - released under GPL: please include this line
//-------------------------------------------------------------------------------------
txtAdded = ' (<a href="https://wikines.com/nl/Overleg_gebruiker:$1">Overleg</a> - <a href="https://wikines.com/nl/Speciaal:Bijdragen/$1">Bijdragen</a> - <a href="/w/index.php?title=Speciaal:Logboeken&type=block&page=$1">Blokkeerlogboek</a>)';
function addExtraUserLinks()
{
regusers=document.getElementById('bodyContent').getElementsByTagName('li');
for (i=0;i<regusers.length;i++)
{
editorLink=regusers.getElementsByTagName('a');
regusers.innerHTML += txtAdded.replace(/\$1/g, editorLink.innerHTML);
}
}
if (wgCanonicalSpecialPageName == "Listusers")
window.addEventListener ('DOMContentLoaded',addExtraUserLinks,false);
//om gewoon altijd het markeerlog te tonen
if ((document.location.href.indexOf('?title=Speciaal:Logboeken') > 1) && (document.location.href.indexOf('&hide_patrol_log') < 1))
document.location.href +="&hide_patrol_log=0";
// adminpopups
popupAdminLinks=true;