We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8be116c commit a4cace9Copy full SHA for a4cace9
features/show-emoji-names/script.js
@@ -6,14 +6,13 @@ export default async function ({ feature, console }) {
6
});
7
8
ScratchTools.waitForElements("span.emoji-text img.emoji", function (img) {
9
- console.log(img);
10
img.title = capitalize(
11
img.src.split("/")[5].split(".")[0].replaceAll("-", " ")
12
);
13
14
15
function capitalize(string) {
16
- string
+ return string
17
.split(" ")
18
.map((word) => {
19
return word[0].toUpperCase() + word.substring(1);
0 commit comments