midori-browser / core

Midori Web Browser - a lightweight, fast and free web browser using WebKit and GTK+
https://www.midori-browser.org/
GNU Lesser General Public License v2.1
387 stars 67 forks source link

How to add a Cross-browser web extension #461

Open giSe98 opened 1 year ago

giSe98 commented 1 year ago

I'm trying to add a simple extension but it is not seen by the browser (I added the extension both as crt and as a folder). Would anyone know how to show me the steps to take to add the extension and possibly also let me have an example of a working extension? hello-world.zip

ghost commented 1 year ago

Looking at my system extensions are found in ~/.local/share/midori/extensions/ and at least the default ones are all .xpi as in Firefox and its forks.

The .xpi file extension format is actually a .zip. The hello-world link actually points to a RAR archive, despite its .zip file extension. To install it you'll have to extract the contents and then repack it as a true zip archive, then change the .zip extension to .xpi.

giSe98 commented 1 year ago

Ok, but just put the .xpi file in the extensions folder ?

ghost commented 1 year ago

Yes. After that you open the browser, go to Menu > Preferences > Extensions and enable it in the list. (Menu being the "hamburger" button at the top-right of the main window)

giSe98 commented 1 year ago

It doesn't work. Do you have an email so I can illustrate the problem better?

ghost commented 1 year ago

Try [...] (removed e-mail address to prevent spam)