MediaWiki:Gadget-removeAccessKeys.js: Difference between revisions
Content deleted Content added
this line is actually redundant. |
add support for vector. |
||
Line 9:
addOnloadHook(function(){
if (skin == "vector") {
var columnOne = document.getElementById('column-one');▼
if (!columnOne) return;▼
removeKeys(columnOne.getElementsByTagName('a'));▼
var cactions = document.getElementById('p-cactions');▼
} else {
▲ if(cactions) removeKeys(cactions.getElementsByTagName('a'));
if (!columnOne) columnOne = document.getElementById('mw_portlets');
▲ if(personal) removeKeys(personal.getElementsByTagName('a'));
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'));
|