google-chrome-extension

Add right click option to chrome extension's icon

爱⌒轻易说出口 提交于 2021-02-07 06:20:07
问题 Most of these questions seem to pertain to adding a right click to elements and pages using context menus. I would like to know if it is possible to add a right click option to a Chrome extension's icon. I.e. put an option such as "Documentation" between "Options" and "Disable" 回答1: There is no API for that currently and I am not aware of any in the works. If there was anything, it would be in the Browser Action or Page Action documentation. 回答2: You can use Chrome create contextMenus API and

How to force Chrome to NOT open SaveAs Dialog when downloading a URL?

一世执手 提交于 2021-02-06 20:01:27
问题 Chrome Build: the newest, 33+ A Chrome Extension extracts certain urls from currently viewed site and then downloads a subset of them (quite often hundreds of files). Expected Behavior: Files are downloaded into the default Download-Folder without questioning where and under which filename they have to be saved. Problem: If a user has enabled the option "Ask where to save each file before downloading" in Chrome->Settings->Advanced Settings->Downloads then when trying to download, for example,

How to force Chrome to NOT open SaveAs Dialog when downloading a URL?

蹲街弑〆低调 提交于 2021-02-06 20:00:57
问题 Chrome Build: the newest, 33+ A Chrome Extension extracts certain urls from currently viewed site and then downloads a subset of them (quite often hundreds of files). Expected Behavior: Files are downloaded into the default Download-Folder without questioning where and under which filename they have to be saved. Problem: If a user has enabled the option "Ask where to save each file before downloading" in Chrome->Settings->Advanced Settings->Downloads then when trying to download, for example,

How to force Chrome to NOT open SaveAs Dialog when downloading a URL?

北城以北 提交于 2021-02-06 19:59:38
问题 Chrome Build: the newest, 33+ A Chrome Extension extracts certain urls from currently viewed site and then downloads a subset of them (quite often hundreds of files). Expected Behavior: Files are downloaded into the default Download-Folder without questioning where and under which filename they have to be saved. Problem: If a user has enabled the option "Ask where to save each file before downloading" in Chrome->Settings->Advanced Settings->Downloads then when trying to download, for example,

How to force Chrome to NOT open SaveAs Dialog when downloading a URL?

三世轮回 提交于 2021-02-06 19:59:06
问题 Chrome Build: the newest, 33+ A Chrome Extension extracts certain urls from currently viewed site and then downloads a subset of them (quite often hundreds of files). Expected Behavior: Files are downloaded into the default Download-Folder without questioning where and under which filename they have to be saved. Problem: If a user has enabled the option "Ask where to save each file before downloading" in Chrome->Settings->Advanced Settings->Downloads then when trying to download, for example,

how to communicate between a options page and background page of chrome extension

◇◆丶佛笑我妖孽 提交于 2021-02-06 11:53:18
问题 I face a problem. Through message passing I transferred DOM data from content script to background page. What i would like to know is how you can establish a communication channel between Options page and background page. The API chrome.extension.getBackgroundPage() is not useful. Nor is traditional message passing through sendRequest and addlistener working . How do i transfer this data from background page to the options page? Could someone provide a tested snippet to explain? this is what

How to create sockets in google chrome extension?

折月煮酒 提交于 2021-02-06 03:16:17
问题 I created small hello world extension for google chrome http://code.google.com/chrome/extensions/getstarted.html. I need to use sockets in extension for peer to peer communication using UDP. Is there any firefox Jslib equivalent in google chrome or how we can use other languages in google chrome extension? I doubt its possible in google chrome, looking at its documentation. ? Are there any other ways to achieve p2p communication in extension? 回答1: Chrome has an packaged app support for raw

How to create sockets in google chrome extension?

﹥>﹥吖頭↗ 提交于 2021-02-06 03:13:07
问题 I created small hello world extension for google chrome http://code.google.com/chrome/extensions/getstarted.html. I need to use sockets in extension for peer to peer communication using UDP. Is there any firefox Jslib equivalent in google chrome or how we can use other languages in google chrome extension? I doubt its possible in google chrome, looking at its documentation. ? Are there any other ways to achieve p2p communication in extension? 回答1: Chrome has an packaged app support for raw

Chrome Bookmarks API -

荒凉一梦 提交于 2021-02-05 18:57:02
问题 I'm attempting to create a simple example that would just alert the first 5 bookmark titles. I took Google's example code and stripped out the search query to see if I could create a basic way to cycle through all Nodes. The following test code fails my alert test and I do not know why. function dumpBookmarks() { var bookmarkTreeNodes = chrome.bookmarks.getTree( function(bookmarkTreeNodes) { (dumpTreeNodes(bookmarkTreeNodes)); }); } function dumpTreeNodes(bookmarkNodes) { var i; for (i = 0; i

addEventListener Executing Before Being Clicked

好久不见. 提交于 2021-02-05 11:32:06
问题 I'm Developing a basic Chrome extension centred around a video game. In order to create the menu I have used HTML and come up with: <head> <title>Inheritance Popup</title> <script src="popup.js"></script> </head> <body style="background-color:#4d2b88"> <img src= "start_screen.png" id='startScreenImage' style="z-index: -1;"> <img src= "start_button.png" id='startButtonImage' style="position:absolute; left:65px; top:145px;"> <img src= "info_button.png" id='infoButtonImage' style="position