google-chrome-extension

“Chrome extension throws CRX file Error ”CRX_REQUIRD_PROOF_MISSING"

走远了吗. 提交于 2020-06-10 04:15:33
问题 I have Chrome extension and create the crx file using developer mode. I uploaded the crx file to some internal url (www.xyz.com/internal.crx). Whenever i am trying to install the extension with URL (not in developer mode) it is throwing error Package is invalid: CRX_REQUIRD_PROOF_MISSING Same CRX file i used in developer mode with drag and drop and it's working fine. Please help to solve the problem with URL downloading and installing extension internally. 回答1: In recent versions of Chrome

“Chrome extension throws CRX file Error ”CRX_REQUIRD_PROOF_MISSING"

拜拜、爱过 提交于 2020-06-10 04:15:32
问题 I have Chrome extension and create the crx file using developer mode. I uploaded the crx file to some internal url (www.xyz.com/internal.crx). Whenever i am trying to install the extension with URL (not in developer mode) it is throwing error Package is invalid: CRX_REQUIRD_PROOF_MISSING Same CRX file i used in developer mode with drag and drop and it's working fine. Please help to solve the problem with URL downloading and installing extension internally. 回答1: In recent versions of Chrome

Read the version from manifest.json [duplicate]

…衆ロ難τιáo~ 提交于 2020-06-08 06:42:50
问题 This question already has answers here : Can I access a property from my manifest.json in my extension's JavaScript files? (2 answers) Closed 6 days ago . Is there a way for a Chrome extension to read properties from manifest.json ? I'd like to be able to read the version number and use it in the extension. 回答1: You can just use chrome.runtime.getManifest() to access the manifest data - you don't need to GET it and parse it. var manifestData = chrome.runtime.getManifest(); console.log

chrome extension onInstalled event

耗尽温柔 提交于 2020-06-08 05:09:11
问题 I have a question about chrome extension install/update event. If I add the onInstalled event listener in a top level code in the background script, is there a time frame in which my event listener will catch that event? I'm asking this, because my demos showed that if I have some logic that executes before I hook onInstalled listener, it looks like it will never be executed, like that event happens in the meantime. Can someone explain to me with more details how this event works, in the

Internationalization of HTML pages for my Google Chrome Extension

拜拜、爱过 提交于 2020-06-07 13:35:30
问题 I found a very easy way to implement translation (or localization) of my Google Chrome Extension, but that seems to apply only to .json , css and js files. But how to localize my html content, say in the popup or an options window? 回答1: What you would do is this. First, in your HTML use the same syntax as Chrome requires anywhere else. So your basic popup.html will be: <!DOCTYPE html> <html> <head> <title>__MSG_app_title__</title> </head> <body> <a href="http://example.com/" title="__MSG

Internationalization of HTML pages for my Google Chrome Extension

南楼画角 提交于 2020-06-07 13:30:43
问题 I found a very easy way to implement translation (or localization) of my Google Chrome Extension, but that seems to apply only to .json , css and js files. But how to localize my html content, say in the popup or an options window? 回答1: What you would do is this. First, in your HTML use the same syntax as Chrome requires anywhere else. So your basic popup.html will be: <!DOCTYPE html> <html> <head> <title>__MSG_app_title__</title> </head> <body> <a href="http://example.com/" title="__MSG

Replace chrome's WebAPI function using inject_script through chrome extension

被刻印的时光 ゝ 提交于 2020-06-01 06:50:12
问题 The bounty expires tomorrow . Answers to this question are eligible for a +100 reputation bounty. tarun14110 wants to draw more attention to this question. I am replacing navigator.credentials.create() and navigator.credentials.get() using chrome extension. navigator.credentials.create() for registering a 'security key' for 2nd-factor authentication. My replacement script works with some websites like Facebook and GitHub but doesn't work on some websites like Gmail, Twitter, Amazon AWS. What

How do I dynamically append a <span> tag into a specific location of the <p> tag?

本秂侑毒 提交于 2020-05-23 21:39:02
问题 In essence, I'm trying to implement a feature which highlights certain text when selected. This is strictly for the Google Chrome browser. For example: Before selection: <html> <body> <p>sample text</p> </body> </html> After selecting "text" from "sample text": <html> <body> <p>sample <span class="state-highlighted">text</span> </p> </body> </html> JavaScript: document.body.addEventListener("mousedown", (event) => { document.body.addEventListener("mouseup", (event) => { // Assume we have

Login & Authentication in Chrome Extension Practice

风格不统一 提交于 2020-05-23 13:23:06
问题 I'm working on a chrome extension and trying to implement an authentication method (firebase). I'm confused by what has to go where, since the popup.html doesn't allow inline script, it makes it a bit more difficult. As far as I see this there are 2 options: Call external page (hosted by me) from the extension, open in new tab, handle login there. But in this case, how does the extension communicate with the login page? Cookies? I need the confirmation inside my popup.js Try to handle Email

How to make dynamic changes to popup.html in Chrome extensions

此生再无相见时 提交于 2020-05-17 06:50:05
问题 I'd like to understand how can I make changes to the HTML of popup.html in a Chrome extension that reloads a given URL every x seconds and looks for a certain text in the webpage. More precisely: the extension's UI has two buttons "Run" and "Stop", respectively running and stopping the reload-and-search function above. I also wanted to include in the UI a "loading" gif to display when the user clicks on the "Run" button and the extension is searching for the text. The loading gif should