MediaWiki:Gadget-removeAccessKeys.js: Difference between revisions

Content deleted Content added
m ← Migration: wg* → mw.config.get('wg*')
update for edit request on talk page
Line 6:
// **********************************************************************
// Imported from version as of: 2007-04-17T22:22:27
// Deactivating access keys, see [[Wikipedia talk:WikiProject User scripts/Scripts/removeAccessKeys|talk page]]
 
jQuery( document ).ready( function( $ ) {
if (mw.config.get('skin') == "'vector"') {
var head = document.getElementById('mw-head');
if(head) removeKeys(head.getElementsByTagName('a'));
Line 34:
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(mw.util.tooltipAccessKeyRegexp, '');
}
}
}
 
//