MediaWiki:Gadget-removeAccessKeys.js: Difference between revisions

Content deleted Content added
Random832 (talk | contribs)
this line is actually redundant.
add support for vector.
Line 9:
 
addOnloadHook(function(){
if (skin == "vector") {
var columnOne = document.getElementById('column-one');
if (!columnOne) columnOnevar head = document.getElementById('mw_portletshead');
if(cactionshead) removeKeys(cactionshead.getElementsByTagName('a'));
if (!columnOne) return;
var columnOnepanel = document.getElementById('column-onepanel');
removeKeys(columnOne.getElementsByTagName('a'));
if(personalpanel) removeKeys(personalpanel.getElementsByTagName('a'));
var cactions = document.getElementById('p-cactions');
} else {
if(cactions) removeKeys(cactions.getElementsByTagName('a'));
var personalcolumnOne = document.getElementById('pcolumn-personalone');
if (!columnOne) columnOne = document.getElementById('mw_portlets');
if(personal) removeKeys(personal.getElementsByTagName('a'));
if (!columnOne) return;
removeKeys(columnOne.getElementsByTagName('a'));
var cactions = document.getElementById('p-cactions');
if(cactions) removeKeys(cactions.getElementsByTagName('a'));
var personal = document.getElementById('p-personal');
if(personal) removeKeys(personal.getElementsByTagName('a'));
}
removeKeys(document.getElementsByTagName('input'));
removeKeys(document.getElementsByTagName('label'));