Xfce Wiki

Sub domains
 

This is an old revision of the document!


Midori - FAQ

Dieses ist eine Zusammenstellung von häufig gestellte Fragen über den Web Browser Midori. Jeder der möchte kann diese Seite erweitern und verbessern.

Erste Schritte

Über Midori

Was ist "Midori" und warum sollte ich den nutzen?

Midori ist ein Web Browser is a Web Browser, der die Ziele hat leicht und schnell zu arbeiten. Dieser passt gut in die Philosophie von Xfce und macht das Beste aus den zur Verfügung stehenden Ressourcen.

Wie spricht man Midori aus und was bedeutet dieser Name?

Ausgesprochen wird er “midoɺi” mit einem Bayerischen / Japanischen “r” oder wie “Mee-DOH-Ree” wie im Englischen oder Italienischen. Der Name kommt aus dem Japanischen Wort 緑 (みどり) und steht für die Farbe “grün”.

Es ist eine Pfote von einer grünen Katze die dem Buchstaben “M” aus “Midori” ähnelt. Zudem ist die Pfote geschwungen, was betonen soll das dieses Programm schnell arbeitet.

Auf welchen Plattformen läuft Midori?

Midori ist im Grunde sehr portabel und sollte auf allen Plattformen, die die Abhängigkeiten unterstützen laufen.

Unter welcher Lizenz wird Midori gestellt?

Midori und alle gelieferten Artworks sind lizensiert unter der LGPL2.

Allgemeine Probleme

There are missing icons/ warnings

The set of themed icons Midori can use is very limited. For instance icons for a new tab or the throbber are not guaranteed to be available. To fix this, install a Freedesktop.org spec compliant icon theme, such as Tango or Gnome, or one that is compatible with these.

Tweaking Midori on the Gtk level

If you don't have a desktop application that takes care of Gtk settings or if your interface doesn't support a particular feature, you can modify any settings easily manually by specifying them in a text file called ~/.gtkrc-2.0 or /etc/gtk-2.0/gtkrc:

Use Tango as a fallback for your icon theme:

gtk-icon-theme = "MySuperFancyTheme"
gtk-fallback-icon-theme = "Tango"

Use a smaller toolbar:

gtk-toolbar-icon-size = GTK_ICON_SIZE_SMALL_TOOLBAR

Enable changing hotkeys while hovering menu items:

gtk-can-change-accels = 1

Midori stürzt kurz nach dem eine Seite geladen wurde ab

Es scheint ein Bug in Glib 2.16 zu sein. Die empfohlene Lösung besteht darin, Glib auf 2.18 zu aktualisieren.

Flash / Netscape Plugins laufen nicht

Um Flash / Netscape Plugins zum laufen zu bringen, muss man die MOZ_PLUGIN_PATH setzt. Dieses kann man wie folgt machen:

export MOZ_PLUGIN_PATH="/usr/lib/mozilla/plugins:/opt/mozilla/lib/plugins"

Nun ist es möglich aus der selben Shell Midori zu starten und die Plugins zu nutzen. Sobald die Shell geschlossen wurde, ist dieses wieder verfallen. Es empfielt sich dieses Systemweit zur verfügung stellen und die Zeile entweder in der ~/.bash_profile oder /etc/profile.d einzutragen. Eventuell auch an einen Ort, den eine Distribution dafür vorgesehen hat.

HTTPS URLS laden nicht

Dieses ist ein Problem von WebKit. Es ist möglich dieses zu beheben wenn man Midori folgend startet:

WEBKIT_IGNORE_SSL_ERRORS="1" midori

Wichtig ist es auch zu wissen, da bis jetzt WebKit noch kein Interface dafür bietet sich als Benutzer auf eine Seite einzuloggt die HTTP(s) Passwortgeschützten geschützt ist. Es ist aber möglich folgendes zu benutzen:

https://<benutzer>:<passwort>@<internetseite>

Features

Download-Manager

Es ist möglich mit Midori verschiedene externen Download-Manager zu benutzen und in den Einstellungen von Midori ist es dann möglich ein ausführbares Programm angeben.

Eine Liste mit verfügbaren Download-Manager ist auf der Wikipedia-Internetseite zu finden.

GGet

Ein Download-Manager in erster Linie für den GNOME-Desktop, ist GGet, aber er funktioniert auch auf anderen Unix / GTK +-Umgebungen.

wget.sh

Mit folgendem Shell-Skript, kann wget benutzt werden für die Downloads und der Benutzer wird informiert wenn der Download gestartet und abgeschlossen ist.

Sie benötigen einen Benachrichtigungs Daemon, eventuell haben Sie bereits ein von GNOME, aber es gibt auch den notification-daemon-xfce und notifyd (nur im git).

#!/bin/sh
 
test -z "$1" && exit 1
 
notify-send -t 800 -u low -i gtk-save Midori\ Download "Der Download wurde gestartet...
$*"
XDG_DOWNLOAD_DIR=${XDG_DOWNLOAD_DIR:-~/downloads}
wget $* -P $XDG_DOWNLOAD_DIR || exit 2
notify-send -u low -i gtk-save Midori\ Download "Der Download ist abgeschlossen.
<a href=\"file://$XDG_DOWNLOAD_DIR\">$XDG_DOWNLOAD_DIR</a>"

Proxy Server

By running a local proxy you can modify web content even before it has reached Midori. That allows you to do things similar to what user scripts and user styles provide and even others that neither is suitable for.

Privoxy

Privoxy ist eine Non-Caching-Web-Proxy mit Filter Fähigkeiten und besonderer Unterstützung um Werbung zu blockieren, bevor sie geladen werden.

http://www.privoxy.org/faq/

Mousehole

Mousehole ist ein Skriptfähiger Proxy Server geschrieben in Ruby.

http://code.whytheluckystiff.net/mouseHole/

Search Engines

Search engines are tools to ease searches on different web sites. In order to search something with a website, that site must provide a search feature available with a web form. In this example, we will setup a search engine for the English Wikipedia.

Step 1: Search the web form, and find the right parameters

The search form of the Wikipedia web site is available in the left column. Just enter your search terms (for example “Midori browser”) and validate. You're then directed to a result page. You can see its address in the location bar. It is http://en.wikipedia.org/wiki/Special:Search?search=Midori+browser&go=Go. Notice that your search terms are present in the result page address.

Step 2: Setting up a search engine in Midori

Now, open the Search Engine Manager

Here it is

If you validate the Add button, you are presented an interface to enter different parameters. Choose a name and a description. Then enter a search URL. That is your previous search URL with your search term replaced with %s. When searching something with that search engine, Midori will use the search URL, replace %s with your search terms, and bring you to computed URL. We don't care about the icon yet. A token can be used as a shorthand for a keyboard search. It's therefore important to use an easy to remember token. For example, we use “wp” for the Wikipepdia. More to come about tokens latter.

Now, your search engine is created.

You can check its presence in the Midori search bar

Step 3: Use your search engine

Now, you can use it by typing your search term in the location bar. If you search for “Midori browser”, you should be redirected to http://en.wikipedia.org/wiki/Special:Search?search=Midori+browser&go=Go. Since we assigned the token “wp” to our search engine, you can also access the result page by typing “wp Midori browser” in the location bar.

Tip: You can go through the this tutorial and replace all instances of “en.” in “en.wikipedia.org” with “fr.” or any other Wikipedia country code and you will have your Wikipedia search in your favourite language.

User scripts

Overview

UserScripts are scripts applied on some, or on all web pages. They can modify pages locally to add or alter functionality. That includes fixing bugs in web pages. User scripts are also available in other browsers, in the form of Mozilla's Greasemonkey or Opera's User JavaScript.

GreaseMonkey compatibility

Midori's support for user scripts aims to be compatible with Greasemonkey to a good extend. Midori supports Greasemonkey's @include and @exclude metadata. So user scripts have a way to define on which pages they will be executed. Midori does not support advanced metadata, such as @require and @resource, so user scripts cannot define dependencies on other scripts. Midori also does not support greasemonkey's api. Be aware that scripts must be compatible with Webkit. A Greasemonkey script that makes use of functionality specific to Gecko will not work in Midori.

How to install a UserScript

First, you need to find some scripts (or write your own). You can find some at userscripts.org. As explained previously, a lot of scripts work, while others do not work.

To install a userscript, you have to download the script as a file, and put it in the folder ~/.local/share/midori/scripts (you may need to create that folder if it does not exist). Midori will automatically see and use it, which you can also see in the user scripts panel.

Note, if the script is only shown as source code on the page, you first have to create a new text file in a text editor, copy the source code into the new file, and save it as my-user-script.user.js where “.user.js” is the extension.

User styles

Overview

User styles are CSS Cascading Style sheets that are loaded locally and applied on top of web pages, similar to User scripts, in order to add or alter functionality and also fix bugs.

How to install a User style

Open up the Preferences and use the file chooser button beside User Stylesheet to choose a style sheet file. The style sheet will from now on be applied to all sites automatically.

Future Midori versions will also support multiple User styles, but this feature is currently not implemented.

Ad blocking via a User style

You can use Ad Blocking FiltersetP as a style sheet in order to remove advertisings from web sites.