User:Nardog/InsertAnyChar
| Description | Insert any character by exploring or searching in the entire Unicode chart |
|---|---|
| Updated | February 17, 2026 (3 months ago) |
| Browsers | Chrome, Firefox, etc. (ES2021+ needed) |
| Source | User:Nardog/InsertAnyChar.js |
This script allows you to quickly look up a Unicode name or block and insert any character while editing. It adds a button (
) to the WikiEditor toolbar, which opens a sidebar where you can browse the Unicode chart and browse blocks or search by character name.
It uses the sidebar interface from Realtime Preview, so this script's button only appears while that feature is turned off.
Installation
Add the following to your common.js or global.js:
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Nardog/InsertAnyChar.js&action=raw&ctype=text/javascript');
Or you may enable the script installer in Preferences → Gadgets and click "Install" in the infobox on this page.
Usage
- Characters
- List of characters. Each entry consists of a preview, the character name, the name of the block it belongs to, and the hexadecimal code point. Surrogates are excluded.
- Clicking an entry inserts the character into the edit textbox. Clicking the block name makes the list contain only the characters from the block.
- The names, originally in all caps, are put in title case for legibility. This is programmatically done so some names may have inappropriate capitalization.
- When showing only a block, the block name at the top is linked to the official PDF on unicode.org, so the characters can be viewed even if your computer doesn't have font support. Clicking Reset resets the list but retains the position so you can browse adjacent blocks.
Filter- Toggles the textbox for filtering the list. Search terms must be alphanumeric (there is no phrasal search). Negation is possible by prefixing a term with a hyphen (e.g.
cjk ideograph -extension). Exact matches appear before initial matches, which appear before partial matches. For the CJK Ideograph, Tangut Ideograph, and Private Use blocks, a term may also match hexadecimal code points.
Compact view- Makes the list two-dimensional with only the previews shown. The character names, blocks, and code points will be available in tooltips.
- Blocks
- List of blocks. Clicking an entry makes the Characters tab active with only the characters from the block.
Preview options-
- Font stack
- Choose from "Serif first" and "Sans-serif first".
- Language
- IETF language tag, useful for characters under Han unification.
- Variation selector
- Variation selector to be appended after each character in preview (but not to be inserted into the textbox). 15 disables emojis, 16 forces them.
Notes
The script fetches the entire Unicode data from Wiktionary when the button is clicked and stores it, so it may be memory-intensive.
You can customize the font stack for the characters in the list by specifying font-family for .insertanychar-char (and .insertanychar-sans .insertanychar-char for "Sans-serif first") in your CSS.
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.
- 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:
- 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.
- 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.
- 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.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.