Jump to content

User:TheresNoTime/ariahiderefs

From Wikipedia, the free encyclopedia
ariahiderefs
Author(s)TheresNoTime
UpdatedMarch 2, 2023
    (20 months ago)
SourceUser:TheresNoTime/ariahiderefs.js

Changes the HTML of the superscript citation numbers from

<sup id="cite_ref-6" class="reference">
    <a href="#cite_note-1">[1]</a>
</sup>

to

<sup id="cite_ref-6" class="reference" aria-hidden="true">
    <a href="#cite_note-1">[1]</a>
</sup>

which should prevent most screen readers from reading the number aloud.

Note

[edit]

Installing this script will make navigating to citations very difficult using a screen reader — this is a "quality of life" script, and arguably reduces the accessibility of the page.

Installation instructions

[edit]

Hint: It's much easier if you get ScriptInstaller, then navigate to User:TheresNoTime/ariahiderefs.js and click "Install" at the top.

However, here's the manual method:

  1. Place {{subst:iusc|User:TheresNoTime/ariahiderefs.js}} on Special:MyPage/common.js or a skin-specific page, like Special:MyPage/vector.js.
  2. Clear your cache and enjoy!