Xfce Wiki

Sub domains
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
de:midori_faq [2009/01/01 10:06] – besseres Deutsch 85.179.21.177de:midori_faq [2009/01/01 10:10] – Teilübersetzt 85.179.21.177
Line 139: Line 139:
  
 Midori's support for user scripts aims to be compatible with Greasemonkey to a good extent. 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 [[http://wiki.greasespot.net/API_reference|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. Midori's support for user scripts aims to be compatible with Greasemonkey to a good extent. 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 [[http://wiki.greasespot.net/API_reference|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.
- +=== UserScript Einrichten ===
-===== 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 [[http://www.greasespot.net|Mozilla's Greasemonkey]] or [[http://www.opera.com/support/tutorials/userjs/|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 [[http://wiki.greasespot.net/API_reference|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 ===+
  
  
 ------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------
-This feature is current unstable and maybe dont work.+Dieses Feature ist noch instabil und wird möglicher Weise nicht fehlerfrei arbeiten.
 ------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------
  
-First, you need to find some scripts (or write your own). You can find some at [[http://userscripts.org/|userscripts.org]]. As explained previously, a lot of scripts work, while others do not work.+First, you need to find some scripts (or write your own). You can find some at [[http://usescripts.org/|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. 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. 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.
 +
 ===== Benutzerdefiniertes aussehen ===== ===== Benutzerdefiniertes aussehen =====