Skip to content

Commit

Permalink
ignore emojis in app description
Browse files Browse the repository at this point in the history
  • Loading branch information
YeudaBy committed Aug 30, 2021
1 parent e944467 commit b183904
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions gpa.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
function removeEmoji(textWith) {
reg = /(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe23\u20d0-\u20f0]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe23\u20d0-\u20f0]|\ud83c[\udffb-\udfff])?)*/g
return textWith.replace(reg, "*");
}

chrome.runtime.onMessage.addListener(
function(request, sender, sendResponse) {

Expand All @@ -8,6 +13,9 @@ chrome.runtime.onMessage.addListener(
let mail = document.querySelector(".euBY6b").textContent;
let imgUrl = document.querySelector("img.T75of.sHb2Xb").src;

description = removeEmoji(description);


if (request.get === "info")

{
Expand Down
Binary file modified icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Package Name",
"description": "Find the package name from play store.",
"version": "2.5",
"version": "2.6",
"manifest_version": 3,
"permissions": ["tabs"],
"action": {
Expand Down

0 comments on commit b183904

Please sign in to comment.