Gebruiker:Erwin85/recentchangesfilter.js
Van Wikipedia
Hulp bij het instellen van uw voorkeuren Let op! Nadat u de veranderingen heeft opgeslagen, moet u de cache van uw browser nog legen om ze daadwerkelijk te zien.
Mozilla (incl. Firefox) | Ctrl+Shift+R |
Internet Explorer | Ctrl+F5 |
Opera | F5 |
Safari | Cmd+R |
Konqueror | F5 |
//------------------------------------------------------------------------------------ // 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 [[:nl:User:Erwin85]] - December 12th, 2006 - Released under the GNU GPL // Based on [[:nl:Help:Gebruik van scripts/Nieuwe artikelenscript]] // By [[User:Zanaq]] - 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[i].getElementsByTagName('a'); for (j=0; j<editorLinks.length; j++) { if(editorLinks[j].href.indexOf('Gebruiker:') != -1 && editorLinks[j].href.indexOf('title=Gebruiker:') == -1 && editorLinks[j].innerHTML.indexOf('Gebruiker:') == -1) { editorName = listitems[i].getElementsByTagName('a')[j].innerHTML; break; } } if (editorName == editor) { listitems[i].style.display='none'; } } } function rcaddHideLinks() { listitems = document.getElementById('bodyContent').getElementsByTagName('li'); for (i=0; i<listitems.length; i++) { editorLinks = listitems[i].getElementsByTagName('a'); for (j=0; j<editorLinks.length; j++) { if(editorLinks[j].href.indexOf('Gebruiker:') != -1 && editorLinks[j].href.indexOf('title=Gebruiker:') == -1 && editorLinks[j].innerHTML.indexOf('Gebruiker:') == -1) { editorLink = editorLinks[j]; var hideLink = document.createElement('span'); hideLink.innerHTML='(<a href="javascript:rchideEdits(\'' + editorLink.innerHTML+ '\')">Verberg</a>) '; listitems[i].insertBefore(hideLink, editorLink); break; } } if ((i % 50) == 0) { akeytt(); } } akeytt(); } addOnloadHook( function () { if (document.location.href.indexOf(':Recentchanges') != -1) { rcaddHideLinks(); } } )