Skip to content

Commit

Permalink
Merge pull request #119 from Sav22999/beta
Browse files Browse the repository at this point in the history
3.21.1
  • Loading branch information
Sav22999 authored Apr 20, 2024
2 parents 242a8a4 + 49b0874 commit 6fa7edd
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
*.zip
.idea/*
img/.DS_Store
*/.DS_Store
Binary file modified img/.DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion js/emojis.js
Original file line number Diff line number Diff line change
Expand Up @@ -1559,7 +1559,7 @@ emojis_language[lang][11] = {
"🤿": ["Diving Mask", ":diving_mask:"],
"🦺": ["Safety Vest", ":safety_vest:"],
"🥻": ["Sari", ":sari:", "Saree", "Shari"],
"🩲": ["Briefs", ":briefs:"],
"🩲": ["Briefs", ":briefs:", "Undies", "Underwear", "Underpants", "Jocks", "Panties"],
"🩳": ["Shorts", ":shorts:"],
"🛼": ["Roller Skate", ":roller_skate:", "Inline Skate", "Roller Derby"],
"🩴": ["Flip Flop", ":flip_flop:", "Thong Sandal"],
Expand Down
44 changes: 43 additions & 1 deletion js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -1941,6 +1941,48 @@ function setSkinToneEmojis() {
all_emojis[3] = JSON.parse(string[3]);
all_emojis[8] = JSON.parse(string[8]);
all_emojis[12] = JSON.parse(string[12]);

addDescriptionTitleToButtons();
}

function addDescriptionTitleToButtons() {
for (let emoji in all_emojis[2]) {
all_emojis[2][emoji].push(titles["😀"]);
}
for (let emoji in all_emojis[3]) {
all_emojis[3][emoji].push(titles["🙋"]);
}
for (let emoji in all_emojis[4]) {
all_emojis[4][emoji].push(titles["🦊"]);
}
for (let emoji in all_emojis[5]) {
all_emojis[5][emoji].push(titles["🅰️"]);
}
for (let emoji in all_emojis[6]) {
all_emojis[6][emoji].push(titles["🍎"]);
}
for (let emoji in all_emojis[7]) {
all_emojis[7][emoji].push(titles["🏳️‍🌈"]);
}
for (let emoji in all_emojis[8]) {

all_emojis[8][emoji].push(titles["🏊"]);
}
for (let emoji in all_emojis[9]) {
all_emojis[9][emoji].push(titles["✈️"]);
}
for (let emoji in all_emojis[10]) {
all_emojis[10][emoji].push(titles["🖱️"]);
}
for (let emoji in all_emojis[11]) {
all_emojis[11][emoji].push(titles["👗"]);
}
for (let emoji in all_emojis[12]) {
all_emojis[12][emoji].push(titles["🖐️"]);
}
for (let emoji in all_emojis[13]) {
all_emojis[13][emoji].push(titles["🛎️"]);
}
}

function editMode() {
Expand Down Expand Up @@ -2120,7 +2162,7 @@ function setLanguageFile() {
all_emojis = emojis.slice();
setSkinToneEmojis();

checkEmojis(); //TODO!for-test-only
//checkEmojis(); //TODO!for-test-only
}

function setLanguageUI() {
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "Emoji",
"version": "3.21",
"version": "3.21.1",
"author": "Saverio Morelli (Sav22999)",
"description": "Insert emojis using a web browser, and customise the experience and the add-on in Settings.",
"icons": {
Expand Down
Binary file modified screenshots/.DS_Store
Binary file not shown.

0 comments on commit 6fa7edd

Please sign in to comment.