google-chrome-extension

Chrome webRequest listening to only user entered URLs

吃可爱长大的小学妹 提交于 2020-08-23 06:14:54
问题 I'm making a Chrome extension that only allows users to access websites that are on a given whitelist. chrome.webRequest.onBeforeRequest is perfect for intercepting and examining the URLs but the problem I am having is that it examines all incoming URLs including when a webpage is trying to load resources. I want it to only examine user entered URLs and if that URL is on the whitelist I want it to allow that webpage to load any resources it needs, regardless of if they are on the whitelist or

Chrome webRequest listening to only user entered URLs

流过昼夜 提交于 2020-08-23 06:14:10
问题 I'm making a Chrome extension that only allows users to access websites that are on a given whitelist. chrome.webRequest.onBeforeRequest is perfect for intercepting and examining the URLs but the problem I am having is that it examines all incoming URLs including when a webpage is trying to load resources. I want it to only examine user entered URLs and if that URL is on the whitelist I want it to allow that webpage to load any resources it needs, regardless of if they are on the whitelist or

Assignment to constant variable exception

那年仲夏 提交于 2020-08-20 15:45:10
问题 I am getting the following exception: Value currently is [object Object] popup.html:1 Error handling response: TypeError: Assignment to constant variable. at chrome-extension://....../popup.js:19:18 Trying to get the input from my Chrome extension and using it in here... const settings = { name: "", email: "", tel: "", cc_number: "", cc_exp: "", cc_csc: "", address_line1: "", address_level2: "", address_level1: "", postal_code: "" } function getSettingsfromStorage() { chrome.storage.local.get

issue in website login using chrome extension

僤鯓⒐⒋嵵緔 提交于 2020-08-20 14:15:35
问题 I am creating a chrome extension for basic functionality for my social account. A person created simple extension to open the site after clicking in the popup.js submit button and it worked well. But when i tried to create a functionality in different project from scratch to start from login and then proceed it doesn't work. i am trying to send input values to the login form. in console when i put the code document.getElementsByClassName("_2hvTZ pexuQ zyHYP")[0].value = "username"; it shows

issue in website login using chrome extension

霸气de小男生 提交于 2020-08-20 14:12:50
问题 I am creating a chrome extension for basic functionality for my social account. A person created simple extension to open the site after clicking in the popup.js submit button and it worked well. But when i tried to create a functionality in different project from scratch to start from login and then proceed it doesn't work. i am trying to send input values to the login form. in console when i put the code document.getElementsByClassName("_2hvTZ pexuQ zyHYP")[0].value = "username"; it shows

Send message from content script to another

北战南征 提交于 2020-08-05 02:03:55
问题 I am developping a google chrome extension. My purpose is to send message from my script1.js to script2.js. Here is what i wrote in my manifest.json { "matches": ["https://www.google.fr/"], "css": ["styles.css"], "js": ["script1.js"] }, { "matches": ["my_website.html"], "css": ["styles.css"], "js": ["script2.js"] }, Here is what i wrote in script1.js: chrome.runtime.sendMessage('hello world!!!!!!'); and in script2.js: chrome.runtime.onMessage.addListener(function(response,sender,sendResponse)

Azure AD App Redirect URI for Chrome Exntension

江枫思渺然 提交于 2020-07-30 04:18:23
问题 I'm using the Microsoft Authentication Library for JavaScript (MSAL.js) version 1.3.2 in my chrome extension built on React JS. I have two login scenario I need to support in order to get a bearer token used in the rest of my application: promptLogin() handles the first time the user authenticates in my extension. getTokenAsync() handles acquiring a bearer token silently for a user who has already authenticated in my extension. This approach returns an id token that I do not use, should I?

Why is my chrome extension icon working everywhere except in Chrome Web Store?

北慕城南 提交于 2020-07-22 07:17:20
问题 My icons for my chrome extension were set up correctly however the logo does not show in chrome web store. I noticed I am not the only one with this problem because I can include Zoom Scheduler from official Zoom: My extension has the same issue. Every icon works everywhere else, in chrome://extension, in the context menu and on the popup but not in the chrome web store. Here are my manifest.json settings: "icons": {"16":"icon16.png", "32":"icon32.png", "48":"icon48.png", "128": "icon128.png"

Chrome Unpacked Extension Disappears

风流意气都作罢 提交于 2020-07-20 15:46:29
问题 I am currently developing a Chrome Extension, i test it as an unpacked extension in dev mode, normally the extension remains connected when restarting chrome, however suddenly it is removed every-time i close chrome with no explanation or indication that something is wrong with my extension Any ideas what went wrong, or why this may happen? Thanks 回答1: What worked for me, after having lost 2 days trying almost everything : export your bookmarks... uninstall CHROME delete C:\Users\%USERNAME%

How to disable chrome alert notification?

半世苍凉 提交于 2020-07-20 04:04:05
问题 I need to turn alert notification off by my extension. The alert function is a javascript built-in function and i override it like below in content script but it still works. content script: window.alert = function(){} It does not turn it off. The problem is realy simple but it does not work and i am going crazy :) manifest.json: "content_scripts": [ { "js": [ "assets/js/jquery-1.12.4.min.js", "assets/js/common.js", "assets/js/handlers.js" ], "matches": [ "http://*/*", "https://*/*" ], "run