Wikipedia talk:WikiProject User scripts/Scripts/removeAccessKeys

This script will disable browser access keys on Wikipedia pages. Gadgets installation:

This script will disable browser access keys on Wikipedia pages. Gadgets installation:

Installation:


Example 1: disable z, f and . (dot) access keys

var removeAccessKeys = 'zf.';
importScript('Wikipedia:WikiProject User scripts/Scripts/removeAccessKeys');


Example 2: disable all keys

importScript('Wikipedia:WikiProject User scripts/Scripts/removeAccessKeys');

Gadget does not work with new Vector skin

Hi. I could not find another place to report this problem, so I hope it is OK to report it here. I filed this as a bug against the Vector skin, but it was closed as INVALID, saying the gadget is responsible.

(https://bugzilla.wikimedia.org/show_bug.cgi?id=22092)

The "Disable access keys" gadget does not work with the Vector skin. It works with all of the other skins on the Wikipedia preferences page.

To repeat: - Log in to wikipedia.org - Go to "My preferences" page - Select the "Gadgets" tab - Choose "Disable access keys", and Save - Select the "Appearance" tab - Click "Preview" next to the Vector skin, and try an access key (on OS X, type <Ctrl-T>), and notice that it performs the Wikipedia action. - Click "Preview" next to another skin (e.g., Modern), and try the same access key. Notice that it does not perform the action.

Please allow this gadget to work with the Vector skin.

Redlever (talk) 19:34, 13 January 2010 (UTC)Reply

Fixed —TheDJ (talkcontribs) 15:20, 20 January 2010 (UTC)Reply
Adding a comment here in case somebody else finds this page the same way I did.
The Gadget does not work with the Vector skin again. Or, more precisely, it works with the "Vector legacy (2010)" skin but it does not work with the current default "Vector (2022)" skin. Gilijev (talk) 11:06, 2 February 2024 (UTC)Reply

Simplified

Hi. I just wrote a simplified alternative for the script that works better even. Would be nice be replaced with current script:

$(function () { $("[accesskey]").removeAttr("accesskey").each(function () { this.title = this.title.replace(/ \[alt-.*/, ''); }); });

(cc: TheDJ) –ebraminiotalk 16:50, 15 July 2014 (UTC)Reply

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.