How to set Unicode character as icon text in browser action in Chrome extension?

I just started developing the Chrome extension, and I'm almost ready, except for this little problem.

I want to set the Unicode character as the icon text in the browser action, but what I have tried so far does NOT work .

Here's what it looks like now. enter image description here

  • Unicode Character - 💩 (also known as 'poop')
  • Its Unicode is U + 1F4A9 (from here )

What I have tried so far:

chrome.browserAction.setBadgeText({text: '💩'});   //shows '💩'
chrome.browserAction.setBadgeText({text: 'U+1F4A9;'});    //shows 'Ú+1F4A9;'
chrome.browserAction.setBadgeText({text: '\U1F4A9;'});    //shows '\U1F4A9;'
chrome.browserAction.setBadgeText({text: '\\U1F4A9;'});   //shows '\\U1F4A9;'
chrome.browserAction.setBadgeText({text: '💩'});          //shows empty box

What should I do to show 💩?

UPDATE . As @Xan mentioned in his answer and comment, this interface cannot be controlled.

, <title>💩</title>, , Chrome , 💩 .

, Chrome . enter image description here

, Chrome 💩 ( ) ( )?

+4
1

Rob, .

, , , Chrome 1 , .

, .

+4

Source: https://habr.com/ru/post/1598557/


All Articles