Difference between revisions of "Midori"

From ArchWiki
Jump to: navigation, search
m (Flash Block)
(update Pkg/AUR templates (https://github.com/lahwaacz/wiki-scripts/blob/master/update-package-templates.py))
 
(31 intermediate revisions by 16 users not shown)
Line 1: Line 1:
[[Category:Web Browser]]
+
[[Category:Web browser]]
 +
[[cs:Midori]]
 +
[[es:Midori]]
 
[[fr:Midori]]
 
[[fr:Midori]]
{{Article summary start}}
+
[[ja:Midori]]
{{Article summary text|This article contains information about the installation and configuration of the Midori browser, as well as various tips and trick.}}
+
{{Related articles start}}
{{Article summary heading|Related}}
+
{{Related|Browser Plugins}}
{{Article summary wiki|Browser Plugins}}
+
{{Related|Profile-sync-daemon}}
{{Article summary wiki|Profile-sync-daemon}}
+
{{Related|UZBL-Browser}}
{{Article summary wiki|UZBL-Browser}}
+
{{Related|Dillo}}
{{Article summary wiki|Dillo}}
+
{{Related articles end}}
{{Article summary end}}
+
 
[http://twotoasts.de/index.php/midori/ Midori] is a lightweight Webkit-based web browser developed by Christian Dywan. It is part of the [[Xfce]] Goodies project.
+
[http://midori-browser.org Midori] is a lightweight Webkit-based web browser developed by Christian Dywan. It is part of the [[Xfce]] Goodies project.
  
 
Some of its features are:
 
Some of its features are:
Line 23: Line 25:
 
== Installation ==
 
== Installation ==
  
A GTK+ 2 version of Midori can be [[Pacman|installed]] with the package {{Pkg|midori}}, available in the [[official repositories]].
+
GTK+2 and GTK+3 versions of Midori can be [[pacman|installed]] with the respective {{Pkg|midori-gtk2}} and {{Pkg|midori}} packages.
  
Development versions are available in the [[AUR]]:
+
Development versions are also available:
* {{AUR|midori-gtk2-git}} - for the GTK+ 2 version.
+
* {{AUR|midori-gtk2-bzr}}{{Broken package link|{{aur-mirror|midori-gtk2-bzr}}}} - GTK+ 2 development version.
* {{AUR|midori-git}} - for the GTK+ 3 and WebKitGTK3-based version.
+
* {{AUR|midori-bzr}} - GTK+ 3 and WebKitGTK3-based development version.
  
 
== Extensions ==
 
== Extensions ==
 +
 
=== AdBlock ===
 
=== AdBlock ===
 +
 
To enable the AdBlock extensions go to ''Menu > Preferences > Extensions'' and check the ''Advertisement blocker'' box.
 
To enable the AdBlock extensions go to ''Menu > Preferences > Extensions'' and check the ''Advertisement blocker'' box.
  
Line 36: Line 40:
  
 
=== Search engines ===
 
=== Search engines ===
 +
 
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''.
 
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''.
 
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:  
+
Another example can be to add a shortcut for an URL shortener:
 
* just add a new search engine with the URL {{ic|1=http://is.gd/create.php?longurl=}} (or another shortener with similar functionality).
 
* just add a new search engine with the URL {{ic|1=http://is.gd/create.php?longurl=}} (or another shortener with similar functionality).
 
* set a token for it (''sh'' here).
 
* set a token for it (''sh'' here).
 
* get the short URL for any link by typing:
 
* get the short URL for any link by typing:
  sh [link]
+
  sh ''link''
 
in the address bar.
 
in the address bar.
  
 
=== User scripts ===
 
=== 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 [https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/ Firefox's Greasemonkey] scripts. You can find an extensive list of scripts on [http://userscripts.org/ userscripts.org].
 
  
For manual installation, you have to create the folder {{ic|~/.local/share/midori/scripts}} and copy your scripts there. This folder will be automatically picked up by Midori and any compatible scripts will be loaded.  
+
To enable the user scripts extensions go to ''Menu > Preferences > Extensions'' and check the ''User addons'' box. Midori's user scripts are compatible with [https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/ Firefox's Greasemonkey] scripts. You can find an extensive list of scripts on http://userscripts-mirror.org/ .
  
=== Flash Plugin ===
+
For manual installation, you have to create the folder {{ic|~/.local/share/midori/scripts}} and copy your scripts there. This folder will be automatically picked up by Midori and any compatible scripts will be loaded.
To get the Flash plugin working in Midori you can install the {{AUR|midori-flash}} package from [[AUR]] or follow the instructions at [[Epiphany#Flash]].
+
  
== Tips and Tricks ==
+
=== Flash plugin ===
 +
 
 +
To get the Flash plugin working in Midori you can install the {{AUR|midori-flash}} package.
 +
 
 +
Alternatively, install the {{pkg|flashplugin}} from the main repository, and add {{ic|export MOZ_PLUGIN_PATH="/usr/lib/mozilla/plugins"}} to your {{pkg|.bashrc}}{{Broken package link|package not found}}, {{pkg|.xprofile}}{{Broken package link|package not found}}, or corresponding shell configuration file.
 +
 
 +
==== Pepper Flash ====
 +
 
 +
To use Pepper flash in midori install {{AUR|freshplayerplugin}} or {{AUR|freshplayerplugin-git}}, and additionally install one of the following:
 +
 
 +
* {{AUR|chromium-pepper-flash}}
 +
* {{AUR|chromium-pepper-flash-standalone}}
 +
* {{AUR|google-chrome}}
 +
* {{AUR|google-chrome-beta}}
 +
* {{AUR|google-chrome-dev}}
 +
 
 +
You should now have a {{ic|libfreshwrapper-flashplayer.so}} file in {{ic|/usr/lib/mozilla/plugins/}}.
 +
 
 +
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 your ~/.config/midori/config file:
 +
 
 +
    [extensions]
 +
    libnsplugin-manager.so/gecko-mediaplayer-dvx.so=true
 +
    libnsplugin-manager.so/gecho-mediaplayer-rm.so=true
 +
    libnsplugin-manager.so/gecho-mediaplayer.so=true
 +
    libnsplugin-manager.so/gecho-mediaplayer-qt.so=true
 +
    libnsplugin-manager.so/gecko-mediaplayer-wmp.so=true
 +
    libnsplugin-manager.so/libpipelight-silverlight5.1.so=true
 +
    libnsplugin-manager.so/libfreshwrapper-flashplayer.so=true
 +
 
 +
== Tips and tricks ==
  
 
=== Flash Block ===
 
=== Flash Block ===
You can also get the common FlashBlock extension in the form of a user script either from [http://userscripts.org/scripts/show/46673 userscripts.org] or by using the [http://rightfootin.blogspot.fr/2009/04/flashblock-wannabe.html FlashBlock WannaBe script], this script has to be installed in {{ic|~/.local/share/midori/scripts}} and {{ic|~/.local/share/midori/styles}}, for the JavaScript file and the CSS file, respectively.
+
 
 +
You can also get the common FlashBlock extension in the form of a user script either from [http://userscripts-mirror.org/scripts/show/46673 userscripts-mirror.org] or by using the [http://rightfootin.blogspot.fr/2009/04/flashblock-wannabe.html FlashBlock WannaBe script], this script has to be installed in {{ic|~/.local/share/midori/scripts}} and {{ic|~/.local/share/midori/styles}}, for the JavaScript file and the CSS file, respectively.
  
 
=== Personal AdBlock filters ===
 
=== 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.
 
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.
  
Line 86: Line 124:
 
* go to ''Menu > Preferences > Extensions'' and click the configuration icon of Adblock and add:
 
* go to ''Menu > Preferences > Extensions'' and click the configuration icon of Adblock and add:
 
  file://.local/share/midori/filters/myadblockfilters.txt
 
  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.
  
 
== See also ==
 
== See also ==
 +
 
* [http://wiki.xfce.org/midori/faq Midori FAQ]
 
* [http://wiki.xfce.org/midori/faq Midori FAQ]

Latest revision as of 17:13, 10 May 2016

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

Some of its features are:

  • Full integration with GTK+ 2 and 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.

Installation

GTK+2 and GTK+3 versions of Midori can be installed with the respective midori-gtk2 and midori packages.

Development versions are also available:

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. You can also block specific images on various sites by right-clicking them and choosing Block image.

Search engines

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 http://is.gd/create.php?longurl= (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 http://userscripts-mirror.org/ .

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

Flash plugin

To get the Flash plugin working in Midori you can install the midori-flashAUR package.

Alternatively, install the flashplugin from the main repository, and add export MOZ_PLUGIN_PATH="/usr/lib/mozilla/plugins" to your .bashrc[broken link: package not found], .xprofile[broken link: package not found], or corresponding shell configuration file.

Pepper Flash

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

You should now have a libfreshwrapper-flashplayer.so file in /usr/lib/mozilla/plugins/.

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 your ~/.config/midori/config file:

   [extensions]
   libnsplugin-manager.so/gecko-mediaplayer-dvx.so=true
   libnsplugin-manager.so/gecho-mediaplayer-rm.so=true
   libnsplugin-manager.so/gecho-mediaplayer.so=true
   libnsplugin-manager.so/gecho-mediaplayer-qt.so=true
   libnsplugin-manager.so/gecko-mediaplayer-wmp.so=true
   libnsplugin-manager.so/libpipelight-silverlight5.1.so=true
   libnsplugin-manager.so/libfreshwrapper-flashplayer.so=true

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 ~/.local/share/midori/scripts and ~/.local/share/midori/styles, 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:
myadblockfilters.txt
[Adblock]
! Title: Personal AdBlocker v1
! Last modified: 31 Oct 2012 18:14 UTC
! Expires: 365 days

! Comments are made with exclamation marks

! You can filter out some elements directly
http://forums.fedoraforum.org//forum/images/smilies/smile.gif

! Or use wildcards to filter out a bunch of stuff at once
http://ubuntuforums.org/images/rebrand/statusicon/subforum_*.gif

! Or use use DOM tags, ids or classes
www.phoronix.com#DIV.phxcms_header_legacy
www.phoronix.com#DIV.phxcms_bar_align
  • 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.

See also