Questions tagged [safari-extension]

A legacy API to extend Apple's Safari web browser. As of Safari 14/MacOS 11, a framework named Safari Web Extension implements the standard browser extension APIs. Safari App Extensions, introduced with MacOS 10.12 ("Sierra"), is aimed at integration of native applications with the browser.

Safari Extensions is the term Apple used for a legacy API to extend the browser. As of MacOS 11, Safari Web Extensions (safari-web-extension) is the official framework to implement browser extensions in JS, while Safari App Extensions (safari-app-extension) focus on the integration of native applications with the browser and their communication.

Legacy documentation can be found starting at the Safari Extensions Development Guide.

662 questions
32
votes
1 answer

Can a site invoke a browser extension?

I am a newbie to the browser extension development and I understand the concept of browser extensions altering the page and injecting codes into it. Is there a way this direction can be turned around? I write an extension that provides a set of…
25
votes
1 answer

Safari Extension : How to add menu and sub menu on bars?

Here I am working with safari extension development. I have successfully get developer certificate on safari browser. Here I am able to create menu and sub menu on toolbar item but as per my project requirement I have to include menu and menu items…
Yashwant Kumar Sahu
  • 3,356
  • 7
  • 27
  • 42
23
votes
6 answers

Convert Google Chrome Extension to Firefox or Safari extension

Is it possible to convert a Google Chrome extension to a Firefox or Safari browser extension?
21
votes
4 answers

Safari extension cookies not recognized/passed

I've recently been porting a Chrome extension to Safari, and encountered this kind of error (bug, feature, etc.) So, in global page i have a XMLHTTP request to a secure page which is available only after you login. Example: I simply login using…
Alex K
  • 6,737
  • 9
  • 41
  • 63
19
votes
3 answers

Can you modify http request headers in a Safari extension?

I can do this in FF and IE, and I know it doesn't exist in Chrome yet. Anybody know if you can do this in a Safari plugin? I can't find anything that says one way or another in the documentation.
Adam
  • 301
  • 1
  • 5
  • 7
19
votes
2 answers

How can I build a Safari extension package from the command line?

Instead of going to Extension Builder > Build Package…, I'd like to built a .safariextz package from the MyExtension.safariextension folder. I know I can unpack an extension with xar -xf. I suspect the way back involves packing it with xar, but then…
kch
  • 77,385
  • 46
  • 136
  • 148
18
votes
2 answers

I want to add react devtools to Safari browser

I want to add react devtools to Safari browser I didn't find a way to install it I want to see the react sign on the websites made by react Thank you
15
votes
2 answers

Will Safari ever support WebExtensions api?

My web extension works with Chromium browsers, Firefox, Edge, but as I understand - it is impossible now just to open the same codebase with Safari browser?
Vitaly Zdanevich
  • 13,032
  • 8
  • 47
  • 81
14
votes
0 answers

iOS - How to debug a Safari ContentBlocker extension?

I've written a very simple Safari Content Blocker and wrapper app. However, I'm at a loss as to how to go about debugging it. I've tried running the wrapper app and then running Safari, both within the iOS simulator. However, I do not see my…
Shadowman
  • 11,150
  • 19
  • 100
  • 198
13
votes
4 answers

Start safari with extension using safariDriver in selenium

I want to start my browser with my extensions. In chrome I can use the chromeOptions as in code sample below. Firefox works in a similar way. ChromeOptions options = new ChromeOptions(); options.addExtensions(new…
mosaad
  • 2,276
  • 5
  • 27
  • 49
13
votes
1 answer

Safari Extension Companion is always null

I am developing a Safari Extension for my local Mac App, I want to use SafariExtension Companion to communicate between them. However, in my Global.html of the extension, whenever I am trying to get safari.extension.companion, it is always null. Do…
Terence
  • 443
  • 3
  • 13
12
votes
6 answers

How to debug safari extension popover?

How to open javascript console for extension popover in safari? Thanks.
user124722
12
votes
2 answers

HTTPS page was not allowed to run insecure content from safari-extension:// URI

I face a strange behavior in a Safari extension with Safari 9.1 (11601.5.17.1). I try to insert a new Iframe with an src pointing to an html file in the extension package using "safari-extension://...". The URL is correct and the content is…
Emmanuel Sellier
  • 526
  • 1
  • 5
  • 13
12
votes
4 answers

Safari Extension Questions

I'm in the process of building my first Safari extension--a very simple one--but I've run into a couple of problems. The extension boils down to a single, injected script that attempts to bypass the native feed handler and redirect to an http://…
Rob Wilkerson
  • 40,476
  • 42
  • 137
  • 192
12
votes
1 answer

Is it possible to monitor all network traffic in a Safari Extension?

Since the newer versions of Safari (I'm running version 5.2) seem to have removed the "Activity" viewer from the "Window" menu, I would like to write an extension to have this feature back. However, in order to do that I think that I will need to…
jacobq
  • 11,209
  • 4
  • 40
  • 71
1
2 3
44 45