मीडियाविकि:Gadget-removeAccessKeys.js

विकिपिडिया, एक स्वतन्त्र विश्वकोशबाट
सूचना: सम्पादनहरू प्रकाशित गरेपछि, परिवर्तनहरू हेर्नको लागि तपाईंले आफ्नो ब्राउजरको क्यासलाई बाइपास गर्नुपर्छ। गुगल क्रोम, फायरफक्स, माइक्रोसफ्ट एजसफारी: 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();
 });
});