Questions tagged [opera-extension]

This tag is dedicated to development of extensions for the Opera browser.

This tag is dedicated to development of extensions for the Opera browser. Opera extensions are being developed using web technologies such as JavaScript, HTML and CSS. Starting points:

116 questions
11
votes
4 answers

How to determine in which browser your extension background script is executing?

I'm talking about Chrome extensions, Firefox WebExtensions, Edge extensions... In a background script, not a content script, is there a clear way to know which browser I am using? I need to do different operations for different browsers. Yes,…
11
votes
4 answers

Client side usage of Stylus (CSS)

the new guy here. I've been looking for a good solution to using Stylus (compiled CSS) client side. Now, I know the tips regarding not using compiled CSS client side because: It breaks if JS is not in use. It takes extra time to compile in a live…
7
votes
3 answers

Opera Extension - persona.ini

I am uploading my first Opera Extension. It is very simple. It is a toolbar button that launches a popup window. It works perfectly fine in Opera developer mode. Opera is not letting me upload it successfully. It keeps saying the persona.ini…
GrantMVP37
  • 71
  • 1
  • 2
6
votes
1 answer

IndexedDB getAll() ordering

I'm using getAll() method to get all items from db. db.transaction('history', 'readonly').objectStore('history').getAll().onsuccess = ... My ObjectStore is defined as: db.createObjectStore('history', { keyPath: 'id', autoIncrement: true }); Can I…
5
votes
2 answers

Why in Opera the 'chrome_url_overrides' is not allowed for specified extension ID?

I am making a cross-browser extension, which overrides the standard "New Tab" page. There is a manifest.json key for that, called chrome_url_overrides: "chrome_url_overrides": { "newtab": "index.html" } It works in Chrome and Firefox! But in Opera…
Kaloyan Kosev
  • 12,483
  • 8
  • 59
  • 90
5
votes
3 answers

Match pattern for all Google search pages

I'm developing an extension which will perform a certain action on all Google search URLs - but not on other websites or Google pages. In natural language the match pattern is: Any protocol ('*://') Any subdomain or none ('www' or '') The domain…
DMCoding
  • 1,167
  • 2
  • 15
  • 30
4
votes
0 answers

webRequest.onBeforeRequest does not fire for certain URLs in Opera 48+

I'm using the webRequest API in an Opera extension to listen for outgoing requests like: chrome.webRequest.onBeforeRequest.addListener(req => console.log(req), {urls: ['*://*.example.net/*']}, ['blocking']); This behaves as expected for most URLs.…
m90
  • 11,434
  • 13
  • 62
  • 112
4
votes
1 answer

Generating md5/sha1/sha256 hash of downloaded file in Chrome Extension

How can I generate downloaded file's MD5/SHA1/SHA-256 using chrome API or other way?
4
votes
1 answer

is there an URL filter API in chrome extensions?

Old Opera 12 had an easy option to build own ad-blocking extension: http://dev.opera.com/articles/view/extensions-api-urlfilter/ My question is: Is there a similar thing in google chrome extension format ? (also this should apply for new opera…
rsk82
  • 28,217
  • 50
  • 150
  • 240
4
votes
1 answer

Install Opera extension from registry

I have developed a Opera extension. It's working fine. But I need to install my extension in the Windows registry or Windows file system. How can I to do this?
propostaff
  • 55
  • 3
  • 10
3
votes
2 answers

How do i 'share cookies' in opera extensions?

I'm trying to write my first extension for Opera. Its speeddial extension. I want it to show me some data from website, but to acces these data I need to be logged in. I'm logged in, and opera knows it ;-) (When I type website's adress in Opera's…
anonim1133
  • 95
  • 1
  • 7
3
votes
2 answers

Is there an API to automate uploading of Opera add-ons to addons.opera.com?

We're currently uploading each new version of our extension via https://addons.opera.com/developer/ Because we need to do similar tasks for Chrome and Firefox, the whole lot becomes tedious and error-prone. Is there a way to automate this, similar…
jsalvata
  • 2,155
  • 15
  • 32
3
votes
1 answer

API to get the list of all search providers/engines?

I am developing an Opera extension. At some moment it allows the user to perform search. Now I use chrome.tabs.update with { url: `https://google.com/search?q=${encodeURIComponent(query)}`}. This is not user friendly. The better approach is to…
nameless
  • 1,969
  • 11
  • 34
3
votes
1 answer

remove listener from injected script

I have Opera sidebar extension and when extension is fired (sb opened), I need to inject some code with message listener in active tab code works fine, the problem is that if I close sidebar and open it again, I'll get another listener injected…
3
votes
2 answers

Opera Sync and chrome.storage.sync

I would like to know how is chrome.storage.sync synced in Opera. The documentations talks about Opera Sync, is that Opera Link? Is there any web page to guide the users on how to enable the chrome.storage.sync extension settings sync? Does Opera…
bland.life
  • 125
  • 1
  • 12
1
2 3 4 5 6 7 8