Midori

Midori was a lightweight Webkit-based web browser developed by Christian Dywan. It was part of the Xfce Goodies project.

Note: The GitHub page for the project has not seen any activity since 2019-10-12. Since then, the only releases under the Midori name are on Android.

Some of its features were:

  • Full integration with GTK 3.
  • Fast rendering, due to the WebKitGTK engine.
  • Tabs, windows, and session management.
  • Flexible, configurable web search.
  • Support for user scripts and styles.
  • Straightforward bookmark management.
  • Customizable and extensible interface.
  • Common extensions such as AdBlock, form history, a speed dial, etc.

It has been fully rewritten in 2019 when it merged with the Astian Foundation, to use an Electron base.

Installation

Several options are available:

  1. Midori stable can be installed with the midori package.
  2. The development version is also available with the midori-gitAUR package.

Extensions

AdBlock

To enable the AdBlock extensions go to Menu > Preferences > Extensions and check the Advertisement blocker box.

The AdBlock extension from Midori uses the same lists as the AdBlock Plus extension for Firefox so you can get more lists from the AdBlock Plus site[dead link 2022-09-22 ]. You can also block specific images on various sites by right-clicking them and choosing Block image.

Search engines

As of version 9.0, Midori only allows choosing between Duck Duck Go, Yahoo and Google, as search engines. A custom search engine can still be added as follows:

  • Edit ~/.config/midori/config.
  • In [settings] section, add an URL for a custom search engine, with %s where search terms would go, for example:
location-entry-search=https://searx.monicz.pl/?q=%s

Midori also supports search engines, much in the fashion other browsers do. Various search engines have shortcuts so that they can be easily used from the address bar. To manage your search engines click on the icon in the search engine box and choose Manage Search Engines.

Of course you can do clever things with this features, such as provide various shortcuts for various websites (not just for searching). For example you can add another entry to the Search Engines dialog with the token arch and the necessary information for the Arch Linux homepage. Now you can access the Arch Linux website just by typing arch.

Another example can be to add a shortcut for an URL shortener:

  • just add a new search engine with the URL (or another shortener with similar functionality).
  • set a token for it (sh here).
  • get the short URL for any link by typing:
sh link

in the address bar.

User scripts

To enable the user scripts extensions go to Menu > Preferences > Extensions and check the User addons box. Midori's user scripts are compatible with Firefox's Greasemonkey scripts. You can find an extensive list of scripts on https://userscripts-mirror.org/ .

For manual installation, you have to create the folder and copy your scripts there. This folder will be automatically picked up by Midori and any compatible scripts will be loaded.

Flash plugin

Install the , and add to your .bashrc, , or corresponding shell configuration file.

Pepper Flash

To use Pepper flash in midori install or , and additionally install one of the following:

You should now have a file in .

To configure fresh wrapper copy the default configuration to your user's home and edit the file.

$ cp /usr/share/freshplayerplugin-git/freshwrapper.conf.example ~/.config/freshwrapper.conf

Next you will need to configure midori to use libfreshwrapper-flashplayer.so. You can do this by going to preferences->extentions and enabling the flash plugin or by adding the following to the configuration:

Tips and tricks

Flash Block

You can also get the common FlashBlock extension in the form of a user script either from userscripts-mirror.org or by using the FlashBlock WannaBe script, this script has to be installed in and , for the JavaScript file and the CSS file, respectively.

Personal AdBlock filters

Midori's AdBlock support is rather basic, you can only use pre-made lists or block some images. We can get around that by creating our own lists and telling Midori where to find them.

For this:

  • create a folder for your filters, such as ~/.local/share/midori/filters
  • in that folder create a file with the content you want to block:
  • go to Menu > Preferences > Extensions and click the configuration icon of Adblock and add:
file://.local/share/midori/filters/myadblockfilters.txt

Fix Pixelated Fonts

Some websites such as github.com tend to use bitmap font from X11, named Clean.

Easy fix is to disable bitmap fonts, run:

# ln -s /etc/fonts/conf.avail/70-no-bitmaps.conf /etc/fonts/conf.d/

Customizing Toolbars

Simple right-click somewhere on the top window to customize toolbars. It is possible to hide/show the statusbar, menubar, bookmarkbar and/or navigationbar.

Wayland

Set if you wish to enable client side decorations when running Midori under a window manager that uses Wayland.

gollark: ++magic py```pythonembed = discord.Embed(title="Title", description="Desc", color=0x00ff0f).set_thumbnail(url="https://i.osmarks.tk/ferris.png")await ctx.send(embed=embed)```
gollark: Odd.
gollark: ++magic py```pythonembed = discord.Embed(title="Title", description="Desc", color=0x00ff0f).set_thumbnail(url="https://media.discordapp.net/attachments/457999277311131649/772461444646174740/ferris.png")await ctx.send(embed=embed)```
gollark: ?????
gollark: ++magic py```pythonembed = discord.Embed(title="Title", description="Desc", color=0x00ff0f).set_thumbnail(url="https://i.osmarks.tk/bees.png")await ctx.send(embed=embed)```

See also

This article is issued from Archlinux. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.