One-click installation for Safari extensions

When the user downloads the firefox plugin (for example), the installation of the plugin begins as soon as the download is completed.

Is it possible to achieve the same in safari? that is, the user clicks the link to download the plugin, as soon as he downloads, he automatically starts the installation.

+4
source share
2 answers

I do not think that it is possible to do this in any other domain except extensions.apple.com.

, safari.installExtension() , extensions.apple.com(, , , API Chrome ).

, JS JS: https://extensions.apple.com/home/scripts/extensionInstall.js

JS typeof(safari.installExtension) JS "function". , , HTML, , ( script , ).

, : "undefined".

, , , http://extensions.joomla.org , . , , SSL. , , , , , , Apple.

+2

, ?

Apple https://extensions.apple.com , -, JS.

javascript "ExtensionOneClick" (https://extensions.apple.com/home/scripts/extensions.js).

:

// href : path to the extension ".safariextz" file
// id   : com.whatever.myextension-<safaridevelopper10charsid>

safari.installExtension(id, href);

-, "safari is undefined", , Safari ?

+1

All Articles