MediaWiki:Gadget-removeAccessKeys.js
注意: 保存後、変更を確認するにはブラウザーのキャッシュを消去する必要がある場合があります。
- Firefox / Safari: Shift を押しながら 再読み込み をクリックするか、Ctrl-F5 または Ctrl-R を押してください (Mac では ⌘-R)
- Google Chrome: Ctrl-Shift-R を押してください (Mac では ⌘-Shift-R)
- Internet Explorer / Microsoft Edge: 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 [[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();
});
} );