browser-extension

How to override content security policy while including script in browser JS console?

こ雲淡風輕ζ 提交于 2019-11-27 07:12:26
I was trying to include JQuery on an existing website using console this way: var script = document.createElement('script'); script.src = 'http://code.jquery.com/jquery-1.11.1.min.js'; script.type = 'text/javascript'; document.getElementsByTagName('head')[0].appendChild(script); Then I got this error: Content Security Policy: The page's settings blocked the loading of a resource at http://code.jquery.com/jquery-1.11.1.min.js .. During development I might want to include external Javascript. I might not want to copy paste the entire JQuery code since it does not look neat. How to override the

How to view/delete local storage in Firefox? [closed]

不打扰是莪最后的温柔 提交于 2019-11-27 05:02:04
问题 In Google Chrome there is an easy way to see what's in local storage as well as modify or delete it after inspecting it. Is there a tool or something to do the same in Firefox? 回答1: You can delete localStorage items one by one using Firebug (a useful web development extension) or Firefox's developer console. Firebug Method Open Firebug (click on the tiny bug icon in the lower right) Go to the DOM tab Scroll down to and expand localStorage Right-click the item you wish to delete and press

Testing browser extensions

前提是你 提交于 2019-11-27 05:00:16
问题 I'm going to write bunch of browser extensions (the same functionality for each popular browser). I hope, that some of the code will be shared, but I'm not sure about this yet. For sure some of extensions will use native API. I have not much experience with TDD/BDD, and I thought it's good time to start folowing these ideas from this project. The problem is, I have no idea how to handle it. Should I write different tests for each browser? How far should I go with these tests? These extensions

How to override content security policy while including script in browser JS console?

ε祈祈猫儿з 提交于 2019-11-26 13:01:33
问题 I was trying to include JQuery on an existing website using console this way: var script = document.createElement(\'script\'); script.src = \'http://code.jquery.com/jquery-1.11.1.min.js\'; script.type = \'text/javascript\'; document.getElementsByTagName(\'head\')[0].appendChild(script); Then I got this error: Content Security Policy: The page\'s settings blocked the loading of a resource at http://code.jquery.com/jquery-1.11.1.min.js .. During development I might want to include external

How to get started with developing Internet Explorer extensions?

时光毁灭记忆、已成空白 提交于 2019-11-26 00:12:51
问题 Does anyone here have experience with/in developing IE extensions that can share their knowledge? This would include code samples, or links to good ones, or documentation on the process, or anything. I really want to do this, but I\'m hitting a giant wall with lousy documentation, lousy code/example code/lack thereof. Any help/resources you could offer would be greatly appreciated. Specifically, I would like to start with how to get access to/manipulate the DOM from within a IE extension.