Year of the Dragon: Through May 28th, claim free Expansion Pack (excluding Vecna Unleashed) or a Greater Elixir of Discovery! Speak to Xatheral in the Hall of Heroes. edit
Game mechanics • Newbie guide • In development • DDO Store • Social Media
Challenges • Classes • Collectables • Crafting • Enhancements • Epic Destinies • Favor • Feats
Glossary • Items • Maps • Monsters • Places • Quests • Races • Reincarnation • Skills • Spells
Please create an account or log in to build a reputation and unlock more editing privileges, and then visit DDO wiki's IRC Chat/Discord if you need any help!
MediaWiki:Gadget-removeAccessKeys.js
Jump to navigation
Jump to search
Note: After saving, you may have to bypass your browser's cache to see the changes, you can click here or try one of the methods below..
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl+F5 or Ctrl+r (⌘ Command+r on a Mac)
- Google Chrome: Press Ctrl+⇧ Shift+R (⌘ Command+⇧ Shift+R on a Mac)
- Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl+F5
- Konqueror: Click Reload or press F5
- Opera: Clear the cache in Tools ‣ Preferences
//<nowiki>
( function ( mw, $ ) {
if ( skin == 'vector' ) {
var head = document.getElementById( 'mw-head' );
if ( head ) {
removeKeys( head.getElementsByTagName( 'a' ) );
}
var panel = document.getElementById( 'mw-panel' );
if ( panel ) {
removeKeys(panel.getElementsByTagName( 'a' ) );
}
} else {
var columnOne = document.getElementById( 'column-one' );
if ( !columnOne ) {
columnOne = document.getElementById( 'mw_portlets' );
}
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' ) );
function removeKeys( nodeList ) {
var el;
for ( var i = 0; i < nodeList.length; i++ ) {
el = nodeList[ i ];
if ( !el.accessKey ) {
continue;
}
if ( !window.removeAccessKeys || removeAccessKeys.indexOf( el.accessKey ) >= 0 ) {
el.accessKey = ''; //el.setAttribute( 'accessKey', '' );
if ( el.title ) {
el.title = el.title.replace( mediaWiki.util.tooltipAccessKeyRegexp, '' );
}
}
}
}
} )( mediaWiki, jQuery );
//</nowiki>[[Category:Gadgets]]