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

How to prevent anything in a extension's popup page from opening links in a new tab

I have the following code for a Chrome extension Manifest.json: { "name": "Popup_DB", "version": "0.0.1", "manifest_version": 2, "description": "random", "browser_action": { "default_title": "Alt+C for opening", "default_popup":…
Ansh
  • 175
  • 1
  • 2
  • 13
0
votes
2 answers

How to make a Chrome Extension available on all tabs while on development (unpacked)?

I just started developing a small Chrome extension, and following the https://developer.chrome.com/extensions/getstarted tutorial, I tried to find a way so that even in developer mode, the extension can be clickable on all tabs. Right now, the…
A.I.S
  • 113
  • 3
  • 10
0
votes
0 answers

Chrome extension I'm developing disabled

I have been working on this extension a while. I just recently tried the trick of getting access to the window inside my background script by injecting a script tag into the page via the content script that sends a message to my extension and I had…
Dal
  • 165
  • 10
0
votes
1 answer

Loading JsonObject model in manifest.json - sapui5

I'm trying to set a data model inside my manifest.json within my webapp. Im using sapui5 and I'm quite new to it. the resource I'm getting from my api is a jsonObject but somehow the model is not initiated properly. I checked the model with…
vega
  • 11
  • 3
0
votes
0 answers

Google search in a chrome extension

I'm trying to create an extension where I can do a one-word google search. This is the manifest: { "manifest_version": 2, "name": "GoogleSearch", "description": "GoogleSearch", "version": "1.0", "browser_action":{ …
0
votes
1 answer

property "start_url" ignored,should be same origin as document

I was Usign a Cross-Domain Manifest.Json Here My Json File (located at http://123myblog14.co.nf/manifest.json): { "short_name": "Universal Manual", "name": "Universal Manual", "theme_color": "#4A90E2", "background_color": "#F7F8F9", …
Ajay Malik
  • 325
  • 4
  • 17
0
votes
1 answer

Block a domain for every Top Level Domain in Chrome Extension

I'm looking for a solution to the match pattern rules for making a Google Chrome Extension - I'm trying to block websites such as Pinterest, the problem is that Pinterest has a million TLDs and rather than write out... "*://pinterest.com/*,…
0
votes
1 answer

Load scripts via HTTP with Chrome Extension

I am developing a Chrome Extension, and I have this in my index.html head: I am getting this error: Refused to load the script …
Alexander Mills
  • 90,741
  • 139
  • 482
  • 817
0
votes
0 answers

How to select a random variable(String/Name of HTML file) in chrome extension's manifest.json

I am trying to make a chrome extension where I want to select a random page from 10 pages and set it as "new tab". How can I do that cause I cant use js? I am trying to do something like this "newtab": "%VAR%/index.html" %VAR% is selected randomly…
0
votes
1 answer

Testing Service Worker locally with hostname from hosts file

I am building a Progressive Web Application for work, but I am having trouble testing it locally because of the SSL requirements. Usually, it's simple to do because Chrome allows this to work if you are using localhost (even without SSL I…
0
votes
1 answer

Error in Google Chrome Lighthouse's Best Practice audit regarding manifest 'short_name'?

I'm getting an error when using Google Chrome's new auditing features (Lighthouse). I get the following message as a failed audit: Manfiest's short_name will be truncated when displayed on homescreen They suggest I make short_name less than 12…
0
votes
0 answers

Manifest is not valid JSON. Line: 10, column: 3, Unexpected data after root element

I'm learning about developing Google Chrome extensions. Upon attempting to load my extension, I receive the following message: Manifest is not valid JSON. Line: 10, column: 3, Unexpected data after root element. Below is my manifest.json file: { …
Davie Overman
  • 114
  • 1
  • 13
0
votes
1 answer

Rails 5.1 api webpacker and vuejs

I'm trying to create a Rails API and a client in VueJs using webpacker on Cloud9. After a standard installation : npm install -g yarn && rails _5.1.4_ new . --api --webpack=vue I'm using Foreman to launch rails and webpack, here is the file. #…
Alain ANDRE
  • 305
  • 1
  • 13
0
votes
1 answer

Fullscreen mode still not taking effect with Firefox 57

Just installed the long awaited Firefox 57 on my Android and am disappointed to see that Fullscreen still does not work :-( even though it was heralded here "The fullscreen value of the Web App Manifest display field is now supported in Firefox for…
McMurphy
  • 1,235
  • 1
  • 15
  • 39
0
votes
1 answer

Chrome Extension: Refused to load the script because it violates the following Content Security Policy directive: "script-src 'self'

I'm building a Chrome extension and using $.ajax (jsonp) to pull article titles and urls from a json array on a wordpress site. If I GET from a https site, it works fine, however if I GET from a http site I get the following error. Refused to load…