Category : manifest

In the olden days "Add to homescreen" let you specify/override the shortcut name. With PWAs now being first-class Apps they seem to take the name from the manifest and that’s it. NB: I’m certainly not asking for that silly/ugly hosting-browser badge that add-to-homescreen mandates, but if I have 4 versions of my app on my ..

Read more

I have this warning appearing in my safari extension preferences. However I have tried removing every single part of the permissions in the manifest.json of the safari extension however no luck. This extension was created using the xCode tool to port the firefox extension to safari. Source: Ask Javascript..

Read more

Following are the error while working: Not working with sr in script tag like following: <script src="https://js.stripe.com/v3/" async></script> After adding it manually now mounting card but not know how to create checkout after form submission with card values. Following function not working: fetch(‘/create-checkout-session’, { method: ‘POST’, }) .then(function (response) { console.log(‘response’, response); // return response.json(); ..

Read more

I’m trying to send new tab URL from background.js to content.js. The .sendMessage() performs but doesn’t get to the content.js background.js: chrome.tabs.onUpdated.addListener( function (tabId, changeInfo, tab) { if (changeInfo.url) { chrome.tabs.sendMessage(tabId, { url: changeInfo.url }) } } ); content.js: chrome.runtime.onMessage.addListener(function(request, sender, callback) { console.log(‘here’); }); manifest.json: { “manifest_version”: 2, “name”: “Url tracker”, “description”: “Track your ..

Read more

"name": "Simple Stock Checker", "description": "This extension is used to check stock levels on Shopify based websites", "version": "1.0", "manifest_version": 3, "background": { "service_worker": "background.js" } This is my background.js for a chrome extension I am working on. I am having trouble making it work with my manifest file, however, what I do need help ..

Read more

https://developer.chrome.com/docs/extensions/mv3/content_scripts/ I encountered a problem while coding by referring to the link above. I tried "Inject with static declarations" because I wanted it to function as soon as I entered a specific site, but it didn’t work. Strangely, when I tried it on another site, it worked well. (Both sites work fine when the button ..

Read more