browser-action

How to open Browser_Action from content.js? Is it even possible?

被刻印的时光 ゝ 提交于 2020-01-24 01:52:27
问题 I am working on a chrome extension that allows users to open the browser_action by pressing a keystroke that THEY have assigned from the options-page . I would like to use document.onkeyup = function(){ Chrome.runtime.openPopup(); }; or something along those lines... I know that this Particular Extension API ( runtime. openPopup ) only functions for mozilla firefox . I am building this extension for Chrome & Opera so this is not an option for me. How might I go about this? Would it be through

chrome extension popup not open immediately

痞子三分冷 提交于 2019-12-30 11:34:15
问题 I'm writing a chrome extension. When i click the browser action button in the first time - all goes well. When i click the browser action button the second time, after several minutes of not clicking it, it takes more than 10 seconds until the popup is shown. I've tried commenting out all of the periodic methods in the background and all of the methods in the load event of the popup, but it still doesn't shown immediately. any suggestions? 回答1: I had a similar issue with the popup when I was

Modify local storage via popup, and use stored values in contentscript

吃可爱长大的小学妹 提交于 2019-12-11 03:08:07
问题 I'm trying my hand at creating a chrome extension, but am running into a wall. I want to be able to use the browser-action popup to write/modify values into local storage (extension storage). Then, I want to use the stored values in a content script. From what I've read, it looks like I need a background file? but I'm not sure. Some coded examples would be extremely appreciated! Thanks for your help! 回答1: You can avoid using a background page as a proxy if you use chrome.storage API. It's a

Bypassing the “no popup” if I want a javascript to run when extension clicked

孤街浪徒 提交于 2019-12-08 01:40:58
问题 I have a chrome extension which I want to fire whenever I press the popup. Currently I can do this only if I remove the popup.html from manifest.json, since there's a restriction on that. However, I need the popup.html How do I get both? I have tried placing the exact same thing everywhere, in the popup.html, in the popup.js (which is linked correctly in the popup.html) and nothing. In short, if I place this in the background.js: chrome.browserAction.onClicked.addListener(function(info, tab)

Bypassing the “no popup” if I want a javascript to run when extension clicked

依然范特西╮ 提交于 2019-12-06 10:06:45
I have a chrome extension which I want to fire whenever I press the popup. Currently I can do this only if I remove the popup.html from manifest.json, since there's a restriction on that. However, I need the popup.html How do I get both? I have tried placing the exact same thing everywhere, in the popup.html, in the popup.js (which is linked correctly in the popup.html) and nothing. In short, if I place this in the background.js: chrome.browserAction.onClicked.addListener(function(info, tab) { speakMe(); }); It works. However, that implies no popup.html in the manifest. So, naturally, I try

Add browser action button in internet explorer BHO

本小妞迷上赌 提交于 2019-11-27 18:21:05
So. I'm working on a BHO in IE and I want to add a browser action like this: In internet explorer it would look something like The only tutorials and docs I've found were on creating toolbar items. None mentioned this option. I know this is possible because crossrider let you do this exact thing. I just don't know how. I can't find any documentation on how I would implement this in a BHO. Any pointers are very welcome. I tagged this with C# as a C# solution would probably be simpler but a C++ solution, or any other solution that works is also very welcome. EDIT: https://github.com/somanuell

Add browser action button in internet explorer BHO

心已入冬 提交于 2019-11-27 04:16:18
问题 So. I'm working on a BHO in IE and I want to add a browser action like this: In internet explorer it would look something like The only tutorials and docs I've found were on creating toolbar items. None mentioned this option. I know this is possible because crossrider let you do this exact thing. I just don't know how. I can't find any documentation on how I would implement this in a BHO. Any pointers are very welcome. I tagged this with C# as a C# solution would probably be simpler but a C++