MediaWiki:Gadget-removeAccessKeys.js: Difference between revisions

Content deleted Content added
Random832 (talk | contribs)
support for modern skin
Line 10:
addOnloadHook(function(){
var columnOne = document.getElementById('column-one');
if (!columnOne) columnOne = document.getElementById('mw_portlets');
if (!columnOne) return;
removeKeys(columnOne.getElementsByTagName('a'));
removeKeys(var cactions = document.getElementsByTagNamegetElementById('inputp-cactions'));
if(cactions) removeKeys(documentcactions.getElementsByTagName('labela'));
var personal = document.getElementById('p-personal');
if(personal) removeKeys(personal.getElementsByTagName('a'));
removeKeys(columnOne.getElementsByTagName('a'));
removeKeys(columnOne.getElementById('p-cactions').getElementsByTagName('a'));
removeKeys(document.getElementsByTagName('input'));
removeKeys(document.getElementsByTagName('label'));
})