google-chrome-extension

Setting up a proxy for a specific url in chrome extension

老子叫甜甜 提交于 2021-02-11 14:44:09
问题 I'm working on a chrome extension where a button click would trigger a function that calls a specific url and gets back the response. This specific url needs to be accessed through a proxy. All other requests are handled normally. It seemed like pac file would fit the bill nicely, but there is one problem with it. The url that I need to access through a proxy has a path in in, like so: https://www.myurl.com/segment-1/segment-2/segment-3 The PAC example I lifted from Chrome documentation is

How to load an extension in a cefsharp WPF project?

送分小仙女□ 提交于 2021-02-11 14:44:08
问题 I'm trying to load an extension in cefsharp embedded browser in a WPF project. But application freezes while doing so. Here is the code I have been doing to load a very simple extension: var setting = new CefSettings(); setting.RegisterExtension( new V8Extension( "test", "document.body.style.backgroundColor='red'")); Cef.Initialize(setting); Any help would be appreciated. 来源: https://stackoverflow.com/questions/59334116/how-to-load-an-extension-in-a-cefsharp-wpf-project

How to load an extension in a cefsharp WPF project?

有些话、适合烂在心里 提交于 2021-02-11 14:42:29
问题 I'm trying to load an extension in cefsharp embedded browser in a WPF project. But application freezes while doing so. Here is the code I have been doing to load a very simple extension: var setting = new CefSettings(); setting.RegisterExtension( new V8Extension( "test", "document.body.style.backgroundColor='red'")); Cef.Initialize(setting); Any help would be appreciated. 来源: https://stackoverflow.com/questions/59334116/how-to-load-an-extension-in-a-cefsharp-wpf-project

Setting up a proxy for a specific url in chrome extension

做~自己de王妃 提交于 2021-02-11 14:42:21
问题 I'm working on a chrome extension where a button click would trigger a function that calls a specific url and gets back the response. This specific url needs to be accessed through a proxy. All other requests are handled normally. It seemed like pac file would fit the bill nicely, but there is one problem with it. The url that I need to access through a proxy has a path in in, like so: https://www.myurl.com/segment-1/segment-2/segment-3 The PAC example I lifted from Chrome documentation is

Permissions for modifying DOM in Chrome extension context menu

梦想的初衷 提交于 2021-02-11 14:41:38
问题 I have intermediate knowledge of chrome extension development. Context: Manifest has activeTab and contextMenus permissions. Clicking context menu item should inject content into DOM This works fine for regular web pages, but fails on default Chrome PDF viewer with the following error: Cannot access contents of the page. Extension manifest must request permission to access the respective host. However, if I inject the content first using a key command, then modify that content in the context

Sending information regarding all tabs but listener only working once and displays final tab's URL

扶醉桌前 提交于 2021-02-11 13:50:56
问题 My extension is sending the tab URL's of all tabs in the window when I press a button. For some reason it's only sending one message, only the last tab's URL is received. What I wish to do is create a list of all the URL's of each tab. So for instance if one had two tabs 'google.ca' and 'bing.ca' I would be able to gather this information and ultimately list both URL's. At the moment I am only getting back one URL though, which in this example would be bing.ca. background.js chrome

Manipulate the DOM using jQuery, without changing the react code

泪湿孤枕 提交于 2021-02-11 12:33:52
问题 Let's say I want to develop a third party plugin, like a chrome extension. So I will have absolutely no privilege to change the javascript code of the page. All I can do is add things external to the page. So I would use jQuery to manipulate the DOM. But if the page is rendered by react, what I did to the DOM would be erased in the react lifecycle. I see some tutorials teaching how to integrate jQuery in to a react app. But this is not what I need. Is there any way to manipulate the DOM

Chrome extension api chrome.sessions how to get session ID

情到浓时终转凉″ 提交于 2021-02-11 08:22:18
问题 The chrome.sessions api specifies these three functions getRecentlyClosed − chrome.sessions.getRecentlyClosed( Filter filter, function callback) getDevices − chrome.sessions.getDevices( Filter filter, function callback) restore − chrome.sessions.restore(string sessionId, function callback) I see however no way to retrieve a sessionID to pass into the chrome.sessions.restore function. How can I get the current sessions ID for restoring it somewhen in future? Can I restore sessions indefinitely

Chrome extension api chrome.sessions how to get session ID

寵の児 提交于 2021-02-11 08:16:05
问题 The chrome.sessions api specifies these three functions getRecentlyClosed − chrome.sessions.getRecentlyClosed( Filter filter, function callback) getDevices − chrome.sessions.getDevices( Filter filter, function callback) restore − chrome.sessions.restore(string sessionId, function callback) I see however no way to retrieve a sessionID to pass into the chrome.sessions.restore function. How can I get the current sessions ID for restoring it somewhen in future? Can I restore sessions indefinitely

How to load/build Chrome App/Extension and run programmatically

南楼画角 提交于 2021-02-11 07:44:26
问题 I'm looking to make a Chrome App similar to Google's own Chrome Dev Editor, an application built using web standards to create Chrome Apps/Extensions In Chrome Dev Editor, it's possible to run the Chrome apps/extensions you create right within the app itself. It builds the apps and executes them. Is there a specific API to do this for the app I want to make? If so what is it and where is the documentation for it? Any guidance on this subject would be appreciated. Thank you! -Rick 回答1: Chrome