| Description | Add reaction emojis to your favorite comments on Wikimedia project talk pages. |
|---|---|
| Maintainers | SuperGrey, SunAfterRain |
| Updated | January 2026 |
| Script location | github.com/QZGao/Reaction/blob/main/src/main.ts Distribution: User:SuperGrey/gadgets/Reaction.js |
| Version control | 👁 GitHub icon QZGao/Reaction |
| Skin support | Any |
Reaction is a user script that allows users to add reaction emojis (like 👍, ❤️, 😂, etc.) to comments on talk pages across Wikimedia projects.
The general purpose for this user script, is to express support to individual comments, without adding new lines to some heavily clustered comment threads. It enhances user interaction and engagement by providing a simple way to express feedback.
This user script shows full attribution and accountability in the tooltips of the Reactions (by hovering), with usernames and timestamps attached to each of them.
Usage
[edit]Installation of the user script
[edit]To enable Reaction on all Wikimedia projects:
- Visit your global.js page on Meta:
Special:MyPage/global.js
If you want to enable Reaction on only a specific Wikimedia project:
- Visit your common.js page:
Special:MyPage/common.json your wiki of choice.
On that JS page, copy in the code, then click "Publish changes":
mw.loader.load("//meta.wikimedia.org/w/index.php?title=User:SuperGrey/gadgets/Reaction.js&action=raw&ctype=text/javascript");// Backlink: [[meta:Reaction]]
Prepare Template and Module on your wiki
[edit]If your wiki does not host Template:Reaction and Module:Reaction, you need to install those first.
- Create
Template:Reactionwith the content fromReaction.template.wikitext. - Create
Template:Reaction/styles.csswith the content from Template:Reaction/styles.css. - Choose the appropriate language version of
Module:Reactionfrom theReaction.module.*.luafiles in the latest GitHub release, and createModule:Reactionon your wiki with its content.
Customization
[edit]Enable/hide all reactions
[edit]The "add or remove Reactions" function of the user script is not enabled by default. If you wish to enable the "add or remove Reactions" function, or if you wish to hide all reactions, you can find the relevant settings in the "Appearance" menu or the "Tools-Actions" menu.
Confirmation prompt
[edit]If you want a confirmation prompt before submitting, add this code above your installation:
ujsReactionConfirmedRequired=true;
Clear "Recent" emojis
[edit]The list of "Recent" emojis is stored in the browser's local storage. If you want to clear this list, follow these steps:
- Press ++ (Windows/Linux) or ++ (Mac) to open Developer Tools.
- Go to "Application → Storage → Local Storage → <current Wikimedia site>" (Chromium) or "Storage → Local Storage → <current Wikimedia site>" (Firefox) to find local storage data.
- Delete the
emoji-mart.frequentlyandemoji-mart.lastentries. - Reload the page.
Prevent others from Reacting to you
[edit]If you want to prevent others from Reacting to you, you can find the relevant settings in the "Appearance" menu or the "Tools-Actions" menu. Once configured, anyone through this user script will not be able to add Reaction emotes to you.
You can also prevent others from Reacting to you without installation of this script, by creating a Special:MyPage/Reaction-config.js on your wiki of choice with the following contents:
ujsReactionConfig={ blacklist:true };
Internationalization
[edit]To help with translating the interface to more languages, or fixing a bunch of existing translations, visit the GitHub repo.
History
[edit]This script was created in April 2025, to give zh:Template:Reaction (which was created back in November 2024 by 魔琴) a user interface. The script was relocated to Meta-Wiki in December 2025, to allow more wikis to give it a try.
Wikis that installed the Template and the Module (please update this list):
- Meta-Wiki - Template:Reaction & Module:Reaction
- Chinese Wikipedia - zh:Template:Reaction & zh:Module:Reaction
