browser-extension

REST development plugin for browser with all HTTP methods

我的梦境 提交于 2020-01-29 14:29:10
问题 Is there a plugin for any web browser which gives you a GUI to perform PUT's, DELETE's etc? I've written a navigable REST app, and I would like to be able to poke around a bit with my browser to try it out and to demo the API, but since they all lack DELETE and PUT it becomes cumbersome. 回答1: There are several FireFox plugins for that, including "Poster" and "REST client". 回答2: You can poke around easily by serving http://www.aminus.net/wiki/Okapi alongside your regular site content. It

Multiple JS files in Chrome Extension - how to load them?

人走茶凉 提交于 2020-01-22 05:40:17
问题 I've wrote a Chrome Extension. My background.js file is quite large, so I want to split it to smaller parts and load specified methods when required (some kind of lazy-loading). I've done this with Firefox: // ( call for load specified lib ) var libPath = redExt.basePath + 'content/redExt/lib/' + redExt.browser + '/' + libName + '.js'; var service = Components.classes["@mozilla.org/moz/jssubscript-loader;1"].getService(Components.interfaces.mozIJSSubScriptLoader); service.loadSubScript(

How can Chrome extensions basically cURL other pages?

家住魔仙堡 提交于 2020-01-15 03:09:09
问题 I'm thinking about writing a Chrome extension that will need to, on a certain dynamic page of a certain site, grab a few links and analyze the contents of the linked pages. I actually don't know much about writing browser extensions, so I wanted to see if it was doable before I committed myself to learning how. I do know that extensions typically execute Javascript but I am unaware of how to get that sort of result with Javascript. 回答1: Use jquery ajax to fetch the content of other pages. 回答2

Firefox 5, 6, 7 and XULRunner: Which versions are which?

会有一股神秘感。 提交于 2020-01-13 20:35:32
问题 I'm trying to recompile a Firefox extension that has binary components for use with Firefox 5 now that the beta is out. According to this I need to rebuild the binary components. What I can't figure out is which xulrunner to download and build against from here. Is there a table that matches up FF versions (5, 6, 7) with code names (Beta, Central, Aurora) with Xul Runner versions (2, etc)? Any decent guide would be great. Update It looks like the SDK / Mozilla version number has been changed

Sending data from popup to extension.js not working

浪尽此生 提交于 2019-12-31 04:15:25
问题 I am working on a browser extension using crossrider. I need to send some data from popup to extension.js My code of popup <!DOCTYPE html> <html> <head> <!-- This meta tag is relevant only for IE --> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <script type="text/javascript"> /************************************************************************************ This is your Popup Code. The crossriderMain() code block will be run every time the popup is opened. For more information,

Chrome extension content script re-injection after upgrade or install

守給你的承諾、 提交于 2019-12-28 01:43:54
问题 After the Chrome extension I'm working on is installed, or upgraded, the content scripts (specified in the manifest) are not re-injected so a page refresh is required to make the extension work. Is there a way to force the scripts to be injected again? I believe I could inject them again programmatically by removing them from the manifest and then handling which pages to inject in the background page, but this is not a good solution. I don't want to automatically refresh the user's tabs

Customize CrossRider installer

只谈情不闲聊 提交于 2019-12-25 00:24:08
问题 Let me detail what I'm trying to accomplish: I have 1 application that (besides the specific app code) also contains a CrossRider extension. Based on the options that the user selects when installing the application, he can enable/disable various features. To do this, my application contains a flag that dictates how it will work (for example if flag = 1 then it will connect to site 1, if flag = 2 then it will connect to site 2 etc.). I need to be able to pass this flag to my CrossRider

Edge: browserAction.setIcon not working when using a default icon with multiple sizes

こ雲淡風輕ζ 提交于 2019-12-24 07:32:34
问题 I can't get browser.browserAction.setIcon to work in Microsoft Edge when manifest.json is specifying a default icon in multiple sizes: manifest.json { "manifest_version": 2, "name": "test", "version": "0.0.1", "author": "John Doe", "background": { "scripts": ["background.js"], "persistent": false }, "browser_action": { "default_icon": { "19": "icon.png", "38": "icon2.png" } } } background.js setInterval(function() { browser.browserAction.setIcon({ path: "testimage.png" }); }, 2000); No error

open source, multi-platform, browser-based screen capture extension? [closed]

☆樱花仙子☆ 提交于 2019-12-23 18:36:36
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I'm considering a project that involves the browser user being able to screen capture the contents of any web page (preferably the whole page, not just the visible portion), do some simple annotation on the image (circles, arrows, underlines, text labels) and send the annotated image to the server. I see that

Browser extensions: how can injecting javascript code into a page work without conflicts?

我的未来我决定 提交于 2019-12-23 12:46:30
问题 I have started developing browser extensions. I noticed a common concept is that the extension can inject JS code into the current browser tab. I am a bit puzzled of how that doesn't cause issues on a regular basis. I mean, how can things still work if I inject version x of JQuery (through my browser extension) in a page that has already included version y of JQuery? Won't there be a conflict for the $() function? How is it possible things go that smoothly? Is there any particular technique