मीडियाविकि:Gadget-removeAccessKeys.js
ध्यान दें: प्रकाशित करने के बाद बदलाव देखने के लिए आपको अपने ब्राउज़र के कैश को हटाना पड़ सकता है।
- Firefox/Safari: Reload क्लिक समय Shift दबाएँ, या फिर Ctrl-F5 या Ctrl-R दबाएँ (Mac पर ⌘-R)
- Google Chrome: Ctrl-Shift-R दबाएँ (Mac पर ⌘-Shift-R)
- Internet Explorer/Edge: Refresh पर क्लिक करते समय Ctrl दबाएँ, या Ctrl-F5 दबाएँ
- Opera: Ctrl-F5 दबाएँ।
// **********************************************************************
// ** ***WARNING GLOBAL GADGET FILE*** **
// ** changes to this file affect many users. **
// ** please discuss on the talk page before editing **
// ** **
// **********************************************************************
// Imported from version as of: 2007-04-17T22:22:27
// Deactivating access keys, see [[:en:Wikipedia talk:WikiProject User scripts/Scripts/removeAccessKeys|talk page]]
$(function(){
var $nodeList;
if (mw.config.get('skin') === 'vector') {
$nodeList = $('#mw-head a, #mw-panel a');
} else {
$nodeList = $('#column-one a, #mw_portlets a, #p-cactions a, #p-personal a');
}
$nodeList = $nodeList.add('input, label').filter(function () {
return this.accessKey && (!window.removeAccessKeys || window.removeAccessKeys.indexOf(this.accessKey) !== -1);
});
mw.loader.using('mediawiki.util').then(function(){
$nodeList.removeAttr('accesskey').updateTooltipAccessKeys();
});
} );