Questions tagged [browser-extension]

Browser extensions are additions to a browser that add to or improve some part of the browser's functionality.

Browser extensions are additions to a browser that add to or improve some part of the browser's functionality.

Consider including browser-specific tags to your question, such as:

506 questions
207
votes
11 answers

How to get started with developing Internet Explorer extensions?

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…
Alex
  • 58,815
  • 45
  • 146
  • 176
60
votes
2 answers

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

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 =…
51
votes
6 answers

Chrome extension content script re-injection after upgrade or install

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…
35
votes
2 answers

Testing browser extensions

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…
ciembor
  • 6,732
  • 11
  • 51
  • 92
32
votes
2 answers

How to use React without unsafe inline JavaScript/CSS code?

Background I have to use a Content Security Policy for a react application. The reason, that is however not of a big matter here, is, that I am creating a WebExtension/Browser Extension/add-on and these do have such a content security policy, and…
31
votes
5 answers

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

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…
25
votes
0 answers

How to run a modern userscript on Internet Explorer?

I've found it's pretty easy to take a Greasemonkey-type userscript and turn it into extensions/addons for Chrome, Safari, and Firefox. And of course one can run them natively in Chrome, and simply in Firefox using the Greasemonkey addon. I'm now…
mix
  • 5,937
  • 14
  • 53
  • 85
21
votes
3 answers

Secure OAuth in Javascript

I have an api which uses OAuth 1.0a to authenticate applications using it. It's replacing an old api which used a number of custom built and hodge-podge calls which are being deprecated. It's well known that OAuth 1.0a is not secure in (client-side)…
Chris Salij
  • 2,966
  • 3
  • 24
  • 42
18
votes
1 answer

Debugging binary websockets frames

Packet analyzers like Wireshark, and Fiddler allows for low-level packet dump, and appears to be the recommended way to debug binary websocket frames. Major problems of this approach includes secure websocket layers, complexity, friction in the…
Silver Dragon
  • 5,110
  • 6
  • 37
  • 68
18
votes
1 answer

Content Security Policy for extensions and bookmarklets

Github has the following Content Security Policy: Content-Security-Policy:default-src *; script-src assets-cdn.github.com www.google-analytics.com collector-cdn.github.com; object-src assets-cdn.github.com; style-src 'self' 'unsafe-inline'…
16
votes
5 answers

What might be shufflling my query string parameters constructed in JavaScript?

So this might be a long, long shot, yet I am completely stumped on what might be causing this issue: I am delivering a client side JavaScript, that parses certain parameters on the page where it is embedded, uses these parameters to construct a URL…
m90
  • 10,334
  • 11
  • 53
  • 105
16
votes
5 answers

How to filter out the most active users from fan page?

I am creating a new website. I want to promote it using another my topic-related web service. I want to send some gifts to people which popularized my first website and fanpage. How to filter out lets say 20 users which likes/shares/comments most of…
noisy
  • 5,701
  • 9
  • 47
  • 86
14
votes
1 answer

How to develop custom filters for the Imagus hover zoom extension?

After I read about Hover Zoom being evil (yikes!), two articles made me instantly switch to another one, called Imagus: Hoverzoom’s Malware controversy, and Imagus alternative - ghacks.net Imagus is a Hover Zoom Replacement to Enlarge Images on…
Camilo Martin
  • 34,128
  • 20
  • 104
  • 150
13
votes
2 answers

JavaScript completely "tamper safe" variables

So, here is the issue. I have something like: // Dangerous __hostObject that makes requests bypassing // the same-origin policy exposed from other code. (function(){ var danger = __hostObject; })(); delete __hostOBject; Am I perfectly safe…
Benjamin Gruenbaum
  • 246,787
  • 79
  • 474
  • 476
12
votes
2 answers

Chrome Extension Icon Manifest

How to change Chrome Extension icon in this page? Here's my manifest code : { "manifest_version": 2, "name": "Demo", "description": "This is demo.", "version": "1.0", "browser_action": { "default_icon": "icon128.png", "icons": { …
Saint Robson
  • 5,211
  • 15
  • 63
  • 106
1
2 3
33 34