Questions tagged [manifest.json]

The `manifest.json` file is a JSON -formatted file that give you the ability to control your application and is the only file that every WebExtension must contain.

Every extension has a JSON-formatted manifest file, named manifest.json, that provides important information like :

  • Version
  • Name
  • Description
  • Default locale
  • Icons
  • Developer
  • Type ...
555 questions
0
votes
0 answers

Chrome.tabs is returning as undefined for a web app manifest

My Manifest File is manifest.json { "name": "Test", "description": "Test Desc", "version": "1.1", "background": { "scripts": ["./others/dependencies/src/background_tabs.js"] }, "permissions": [ "tabs", "http://*/*",…
0
votes
0 answers

How to receive input from extension to javascript?

I am currently writing a simple chrome extension that replaces custom words. Yes, I have also seen those various questions that are asking similar questions, but something is lacking and I cannot find it. I am very new to javascript and I am doing…
0
votes
0 answers

Chrome Extension Query : Related to Content Scripts

Here is a code snippet from my Manifest.json : "content_scripts": [ { "matches" : ["*://www.google.co.in/flights/*"], "js" : ["myScript.js"] } ], "content_security_policy": "script-src 'self' 'unsafe-eval';…
0
votes
1 answer

Gulp-rev different path in manifest.json

I am now trying to generate manifest.json file with gulp-rev. What I need is something like this: { "img/image.jpg": "folder/img/image-34c9d558b2.jpg"; } How do I put that "folder" in path there? I was trying to use gulp-rev-collector…
shitwithcode
  • 367
  • 1
  • 5
  • 10
0
votes
1 answer

google custom search engine return 'http' result urls cause error "Refused to load the script"

EDIT: I encountered this issue when I was loading my project as a chrome extension. I think this might be a chrome extension specific issue. When I try to search on the google customized search engine I get a result page but it is blank. When I…
0
votes
0 answers

manifest.json reference a text file instead of a string

I want to reference a text file (in this case sites.txt), instead of having it inside the manifest file, so I can easily edit it. As well as save on file size. Is this possible? I have seen people have extensions that have a whitelist that users…
0
votes
1 answer

Service worker's offline caching is not working if I add my PWA on home screen

I made a PWA. Currently is deployed on heroku. URL - https://plain-js-pwa.herokuapp.com/. My PWA installs service worker and manifest.json file. If I open it on chrome on mobile phone and put my phone on flight mode, then refreshing the url still…
0
votes
0 answers

Porting Firefox Add-on to Chrome Extension

I have a Firefox Add-on that I need to port to Chrome. What steps would I need to follow? I am trying to construct a Chrome's manifest.json file from Firefox's package.json, but I cannot find "main" entry in manifest.json. Whats the replacement for…
0
votes
1 answer

manifest.json not found in source code in local directory of many firefox webextensions

I am inspecting source code of Firefox web extensions by looking into *.xpi files located in Mozzila directory. In my local computer, which runs Fedora 25 - Firefox 52, it is ~/.mozilla/firefox/415m46wm.default/extensions The current issue I am…
0
votes
1 answer

Manifest is not valid JSON. Trailing comma not allowed

I am building browser extension This is manifest.json { "name": "JS Code Injection", "version": "1.0", "manifest_version": 2, "web_accessible_resources": [ "/injected.js" ], "content_scripts": [ { "matches": [ "*" ], …
user2950593
  • 9,233
  • 15
  • 67
  • 131
0
votes
1 answer

Microsoft Edge Content-security-policy Error

I am trying to load the google map inside my chrome extension using the following CSP defined in manifest.json "content_security_policy": "script-src 'self' 'unsafe-eval' https://maps.googleapis.com/ https://ssl.google-analytics.com; object-src…
0
votes
1 answer

How to set a app launch url as a page of third party website in google apps marketplace manifest.json file

How to set the app launch url as mentioned in below ( for eg i mentioned google.com) third party website. when we mentioned like this and upload this file in google apps marketplace dashboard it show this error, "This hosted web app specifies one or…
0
votes
1 answer

How can I edit a manifest.json file from a JS file?

I'm making a Google Chrome extension that parses a Twitter feed's source code when the user inputs the handle. I'm aware that you cannot extract an external site's source code unless you give it permission in the manifest.json file. However, the URL…
0
votes
1 answer

Manifest is not valid JSON. Line: 18, column: 2, Trailing comma not allowed

{ "name": "test", "version": "1.0.0", "description": "test", "icons": {"16": "images/icon16.png", "24": "images/icon24.png", "32": "images/icon32.png", "128": "images/icon128.png"}, "permissions": [ …
Laurent
  • 478
  • 7
  • 15
0
votes
1 answer

Extension background script doesn't load unless resaved

For Firefox, I have a page that loads in a new tab after clicking a browser icon button. The background script for the page runs fine the first time but not when reloading the page, clicking the button again with a tab already open, or after having…
1 2 3
36
37