From b55dc8ae5226f591c3da25777c46b0bceece4edb Mon Sep 17 00:00:00 2001 From: Renato Lima Date: Sun, 1 Aug 2021 03:32:02 -0300 Subject: [PATCH] Faz o upgrade para Manifest V3 --- manifest.json | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/manifest.json b/manifest.json index 6f74db4..f9edcdd 100644 --- a/manifest.json +++ b/manifest.json @@ -1,24 +1,19 @@ { - "manifest_version": 2, + "manifest_version": 3, "name": "Mercado Livre Plus", "description": "Extensão para Google Chrome que melhora a listagem de produtos no Mercado Livre.", "version": "0.0.0.7", - "browser_action": { + "action": { "default_icon": "icon96.png", "default_popup": "popup.html" }, "background": { - "scripts": [ - "background.js", - "jquery-3.2.0.min.js" - ], - "persistent": false + "service_worker": "background.js" }, - "content_security_policy": "script-src 'self' https://http2.mlstatic.com; object-src 'self'", "content_scripts": [ { "matches": [ - "*://*.mercadolivre.com.br/*" + "*://*.mercadolivre.com.br/*" ], "js": [ "jquery-3.2.0.min.js", @@ -27,8 +22,8 @@ "run_at": "document_end" } ], - "permissions": [ - "*://*.mercadolivre.com.br/*" + "host_permissions": [ + "*://*.mercadolivre.com.br/*" ], "icons": { "16": "icon16.png",