function morelinks() {
var tabs = document.getElementById('p-cactions').cloneNode(true);
tabs.id = 'mytabs';
var listitems = tabs.getElementsByTagName('LI');
for (i=0;i<listitems.length;i++) {
if(listitems.id) listitems.id = 'mytabs-' + listitems.id;
}
document.getElementById('column-content').appendChild(tabs);
}
if (window.addEventListener) window.addEventListener("load",morelinks,false);
else if (window.attachEvent) window.attachEvent("onload",morelinks);
function InsertButtonsToToolBar()
{
//Tabel invoegen
mwCustomEditButtons = {
"imageFile": "http://upload.wikimedia.org/wikipedia/en/6/60/Button_insert_table.png",
"speedTip": "Table",
"tagOpen": "\n{| border='1' \n|- \n| 1 || 2\n|- \n| 3 || 4",
"tagClose": "\n|}\n",
"sampleText": ""}
//Enter
mwCustomEditButtons = {
"imageFile": "http://upload.wikimedia.org/wikipedia/en/1/13/Button_enter.png",
"speedTip": "Line break",
"tagOpen": "<br />",
"tagClose": "",
"sampleText": ""}
//Small Text
mwCustomEditButtons = {
"imageFile": "http://upload.wikimedia.org/wikipedia/en/5/58/Button_small.png",
"speedTip": "Small",
"tagOpen": "<small>",
"tagClose": "</small>",
"sampleText": "Small Text"}
//Onzichtbare tekst
mwCustomEditButtons = {
"imageFile": "http://upload.wikimedia.org/wikipedia/en/3/34/Button_hide_comment.png",
"speedTip": "Insert hidden Comment",
"tagOpen": "<!-- ",
"tagClose": " -->",
"sampleText": "Comment"}
//Gallery
mwCustomEditButtons = {
"imageFile": "http://upload.wikimedia.org/wikipedia/en/1/12/Button_gallery.png",
"speedTip": "Insert a picture gallery", // <nowiki>
"tagOpen": "\n<gallery>\n",
"tagClose": "\n</gallery>", // </nowiki>
"sampleText": "Image:FileName.jpg|Caption1\\Image:FileName2.jpg|Caption2"}
}
$( InsertButtonsToToolBar );
//------------------------------------------------------------------------------------
// 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 (wgCanonicalSpecialPageName == "Newpages")
window.addEventListener ('DOMContentLoaded',addHideLinks,false);