upgrade to manifest V3
- add localizations - fix permissions Unfortunately, manifest V3 isn't as explicit compared to manifest V2. That's what I dislike, especially as it gives less power to UBO.
This commit is contained in:
		
							parent
							
								
									2c99782dbb
								
							
						
					
					
						commit
						f5a68eaa1a
					
				
					 1 changed files with 25 additions and 15 deletions
				
			
		|  | @ -1,19 +1,29 @@ | ||||||
| { | { | ||||||
|    "background": { | 	"manifest_version": 3, | ||||||
|       "scripts": [ "shopAI.js" ] | 	"name": "__MSG_manifest_name__", | ||||||
|    }, | 	"description": "__MSG_manifest_description__", | ||||||
|    "browser_action": { | 	"version": "0", | ||||||
|  | 	 | ||||||
|  | 	"permissions": [ "tabs", "activeTab", "storage"], | ||||||
|  | 	 | ||||||
|  | 	"action": { | ||||||
| 	  "default_icon": "gui/icons/logo_no_tiny.png", | 	  "default_icon": "gui/icons/logo_no_tiny.png", | ||||||
|       "default_popup": "gui/popup.htm" |       "default_popup": "gui/popup.htm" | ||||||
| 	}, | 	}, | ||||||
|    "description": "Shop wisely with AI!", | 
 | ||||||
|  | 	"content_scripts": [ | ||||||
|  | 		{ | ||||||
|  | 			"matches": ["http://*/*", "https://*/*"], | ||||||
|  | 			"js": ["shopAI.js"] | ||||||
|  | 		} | ||||||
|  | 	], | ||||||
|  | 	 | ||||||
| 	"icons": { | 	"icons": { | ||||||
| 		"1024": "gui/icons/logo.png", | 		"1024": "gui/icons/logo.png", | ||||||
| 		"512": "gui/icons/logo_tiny.png" | 		"512": "gui/icons/logo_tiny.png" | ||||||
| 	}, | 	}, | ||||||
|    "manifest_version": 2, | 	 | ||||||
|    "name": "ShopAI", |  | ||||||
| 	"options_page": "gui/popup.htm", | 	"options_page": "gui/popup.htm", | ||||||
|    "permissions": [ "tabs", "webRequest", "webRequestBlocking", "*://*/*" ], | 	 | ||||||
|    "version": "1" | 	"default_locale": "en" | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue