මාධ්යවිකි:Gadget-removeAccessKeys.js
සටහන: සුරැකීමෙන් පසුව, වෙනස් කම් දැකගැනුමට ඔබගේ බ්රවුසරයෙහි කෑෂය මගහැරයෑමට ඔබට සිදුවිය හැක. ගූගල් ක්රෝම්, ෆයර්ෆොක්ස්, මයික්රොසොෆ්ට් එජ් සහ සෆාරි: Reload ඔබන අතරතුර ⇧ Shift ඔබන්න. සවිස්තරාත්ම උපදෙස් සහ වෙනත් බ්රව්සර වලට අදාළ තොරතුරු සඳහා, විකිපීඩියා:කෑෂය මගහැරයෑම වෙතට යොමු වන්න.
// **********************************************************************
// ** ***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 [[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();
});
});