Here’s how to enable custom reactions in Facebook Messenger right now

Here’s how to enable custom reactions in Facebook Messenger right now

Facebook is known for testing new features with users all the time. Some are cool and useful, however, many are often held behind a barrier of exclusivity, with some people seemingly getting whatever the new feature is and many more not. One such feature is custom reactions, which Facebook said is coming to the Messenger platform soon. Message reactions are fun and useful ways to quickly communicate, but the ones that Facebook Messenger offers by default don’t cover all the bases. I discovered a way to enable them, and all you need is your computer, Tampermonkey, and a script that I wrote.


Enabling custom reactions in Facebook Messenger

First of all, you’re going to need to install Tampermonkey as a Chrome or Firefox extension. Tampermonkey is an extension that allows you to run “userscripts” on pages, which are custom JavaScript programs to modify pages, and we’re going to use it to enable custom reactions. Once you install Tampermonkey, click your extensions in the top right and select the Tampermonkey icon. You’ll be greeted with this screen.

Click “create a new script”.

Next, you’ll want to paste in all of the following code into the window that you’ve been brought into.

// ==UserScript==\n// @name         Enable custom reacts\n// @namespace\n// @version      0.1\n// @description  Enable custom reacts\n// @author       Adam Conway\n// @match*\n// @grant        none\n// ==/UserScript==\n(function() {\n  'use strict';\n  const heart = '\u2764';\n  const clown = '\u{1F921}';\n  const heartEncoded = encodeURIComponent(heart);\n  const clownEncoded = encodeURIComponent(clown);\n  const promptText = `React with:\n1: ${heart} (Heart),\n2: ${clown} (Clown)`;\n\n  const oldOpen =;\n = function() {\n      const query = arguments[1];\n      // Catch heart react specifically\n      if (query.includes('ADD_REACTION') && query.includes(heartEncoded)) {\n      // Get replacement reaction\n      const new_reaction = Number.parseInt(prompt(promptText, '2'));\n      // Replacing queries\n      if (1 === new_reaction) {\n        arguments[1] = query.replace(heartEncoded, heartEncoded);\n      } else if (2 === new_reaction) {\n        arguments[1] = query.replace(heartEncoded, clown);\n      }\n    }\n    // Send\n    oldOpen.apply(this, arguments);\n  }\n})();

Tampermonkey facebook messenger script

Click File -> Save, and then reload Messenger’s Website on your computer. Make sure that your heart react is set to the default heart react, and not the purple heart react. If it worked, try to react to a message on Facebook with a heart and you’ll get this prompt at the top.

Type “2” and you should see that you reacted to the message with a clown face.

Clown emoji react on Facebook Messenger

Next, restart Facebook Messenger on your phone, and you should see the following when you try to react to a message.

And that’s it!

Let us know if this worked for you in the comments below, or if you’re one of the lucky ones to get custom reactions in Facebook Messenger already!

About author

Adam Conway
Adam Conway

I'm the senior technical editor at XDA-Developers. I have a BSc in Computer Science from University College Dublin, and I'm a lover of smartphones, cybersecurity, and Counter-Strike. You can contact me at [email protected] My Twitter is @AdamConwayIE and my Instagram is adamc.99.

We are reader supported. External links may earn us a commission.