Difference between revisions of "Midori"

From ArchWiki
Jump to: navigation, search
(use new package templates, see Help:Style)
m (Flash Block)
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Category:Web Browser (English)]]
+
[[Category:Web Browser]]
{{i18n|Midori}}
+
 
[[fr:Midori]]
 
[[fr:Midori]]
 +
{{Article summary start}}
 +
{{Article summary text|This article contains information about the installation and configuration of the Midori browser, as well as various tips and trick.}}
 +
{{Article summary heading|Related}}
 +
{{Article summary wiki|Browser Plugins}}
 +
{{Article summary wiki|Profile-sync-daemon}}
 +
{{Article summary wiki|UZBL-Browser}}
 +
{{Article summary wiki|Dillo}}
 +
{{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.
  
{{Stub}}
+
Some of its features are:
 +
* Full integration with [[GTK+]] 2 and GTK+ 3.
 +
* Fast rendering, due to the [[Wikipedia:WebKit|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.
  
[http://www.twotoasts.de/index.php?/pages/midori_summary.html Midori] is a lightweight web browser by Christian Dywan.
+
== Installation ==
  
==Features==
+
A GTK+ 2 version of Midori can be [[Pacman|installed]] with the package {{Pkg|midori}}, available in the [[official repositories]].
* Full integration with GTK+ 2
+
* Fast rendering with WebKit
+
* Tabs, windows, and session management
+
* Flexible, configurable web search
+
* Support for user scripts and styles
+
* Straightforward bookmark management
+
* Customizable and extensible interface
+
* Extensions providing common features such as AdBlock, form history, mouse gestures, and cookie management
+
  
==Installation==
+
Development versions are available in the [[AUR]]:
{{Pkg|Midori}} is available in the [extra] repo and can be installed with:
+
* {{AUR|midori-gtk2-git}} - for the GTK+ 2 version.
# pacman -S midori
+
* {{AUR|midori-git}} - for the GTK+ 3 and WebKitGTK3-based version.
  
A development version ({{AUR|midori-git}}) is also available in the [[AUR]].
+
== 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 [http://easylist.adblockplus.org/en/ 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 {{ic|1=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 [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.
 +
 
 +
=== Flash Plugin ===
 +
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 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.
 +
 
 +
=== 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 {{ic|~/.local/share/midori/filters}}
 +
* in that folder create a file with the content you want to block:
 +
{{hc|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
 +
 
 +
== See also ==
 +
* [http://wiki.xfce.org/midori/faq Midori FAQ]

Revision as of 18:30, 31 October 2012

Template:Article summary start Template:Article summary text Template:Article summary heading Template:Article summary wiki Template:Article summary wiki Template:Article summary wiki Template:Article summary wiki Template:Article summary end 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

A GTK+ 2 version of Midori can be installed with the package midori, available in the official repositories.

Development versions are available in the AUR:

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 userscripts.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 from AUR or follow the instructions at Epiphany#Flash.

Tips and Tricks

Flash Block

You can also get the common FlashBlock extension in the form of a user script either from userscripts.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

See also