Skip to content

Commit

Permalink
Merge pull request #1 from izidorio/dev
Browse files Browse the repository at this point in the history
fix add manifest v3
  • Loading branch information
izidorio authored Feb 16, 2023
2 parents 0831709 + 376546f commit 4557531
Show file tree
Hide file tree
Showing 22 changed files with 383 additions and 406 deletions.
3 changes: 3 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# ! /Bin /bash
echo "empacotanto o sistema .... \n"
zip -r addon-zappull.zip src manifest.json
36 changes: 20 additions & 16 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,28 @@
{
"manifest_version": 2,
"name": "ZapPull",
"version": "0.6.2",
"description": "Extensão que baixa em .csv ou copia para a área de transferência os participantes dos Grupos do WhatsApp. https://github.com/izidorio/addon-zappull",
"author": "Izidorio Bento <[email protected]>",
"icons": {
"16": "src/assets/icons/icon16.png",
"48": "src/assets/icons/icon48.png",
"128": "src/assets/icons/icon128.png"
},
"background": {
"page": "src/html/background.html"
},
"description": "Exportar os participantes dos Grupos do WhatsApp. https://github.com/izidorio/addon-zappull",
"version": "1.0.0",
"manifest_version": 3,
"author": "Bento, Izidorio <[email protected]>",
"permissions": ["activeTab", "scripting", "storage"],
"host_permissions": ["https://web.whatsapp.com/"],
"content_scripts": [
{
"matches": ["https://web.whatsapp.com/"],
"js": ["src/js/content_script.js"],
"matches": ["https://web.whatsapp.com/*"],
"js": ["src/content.js"],
"css": ["src/assets/style.css"]
}
],
"permissions": ["https://web.whatsapp.com/"],
"web_accessible_resources": ["src/js/*"]
"web_accessible_resources": [
{
"resources": ["src/modules/*.js"],
"matches": ["https://web.whatsapp.com/*"]
}
],
"icons": {
"16": "src/assets/icons/16x16.png",
"32": "src/assets/icons/32x32.png",
"48": "src/assets/icons/48x48.png",
"128": "src/assets/icons/128x128.png"
}
}
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
7 changes: 7 additions & 0 deletions src/content.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
"use strict";

const script = document.createElement("script");
script.setAttribute("type", "module");
script.setAttribute("src", chrome.runtime.getURL("src/modules/main.js"));
const body = document.body || document.getElementsByTagName("body")[0];
body.append(script);
1 change: 0 additions & 1 deletion src/html/background.html

This file was deleted.

1 change: 0 additions & 1 deletion src/js/background.js

This file was deleted.

5 changes: 0 additions & 5 deletions src/js/content_main.js

This file was deleted.

5 changes: 0 additions & 5 deletions src/js/content_script.js

This file was deleted.

66 changes: 0 additions & 66 deletions src/js/models/handle.js

This file was deleted.

134 changes: 0 additions & 134 deletions src/js/models/setButtons.js

This file was deleted.

51 changes: 0 additions & 51 deletions src/js/models/template.js

This file was deleted.

13 changes: 0 additions & 13 deletions src/js/models/user.js

This file was deleted.

Loading

0 comments on commit 4557531

Please sign in to comment.