Xfce Wiki

Sub domains
 

Site Tools


Differences

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

Link to this comparison view

midori:faq [2013/10/18 05:46]
twobob [Common problems]
midori:faq [2014/04/18 21:30] (current)
axlrose [Midori and mediaHerald]
Line 526: Line 526:
             z-index: 9999;             z-index: 9999;
         }</​code>​         }</​code>​
 +
 +=== Tweaking fonts via CSS ===
 +
 +If changing system-wide font settings isn't bringing the desired results or rendering should be tweaked only for websites CSS can be an alternative. Add the following to **~/​.local/​share/​midori/​styles**,​ then restart Midori and make sure that it is enabled Tools → Userstyles.
 +
 +Customize as needed:
 +
 +<code css>* {
 +    font-smooth:​always;​
 +    -webkit-font-smoothing:​ antialiased;​
 +    text-rendering:​ optimizeLegibility
 +}</​code>​
 +
  
 ===== Understanding WebKit Version Numbers ===== ===== Understanding WebKit Version Numbers =====
Line 544: Line 557:
  
 Midori'​s support for WebKit2 is still provisional,​ and likely unsuitable for real-world daily usage; much work is being done in this area so that Midori can use WebKit2 by default at some point in the future. Midori'​s support for WebKit2 is still provisional,​ and likely unsuitable for real-world daily usage; much work is being done in this area so that Midori can use WebKit2 by default at some point in the future.
 +
 +====== Midori and mediaHerald ======
 +
 +
 +mediaHerald is a dbus service (/​org/​midori/​mediaHeraldallow) users to connect to dbus and check the titme and url of the video that midori plays in **YOUTUBE**,​ **VIMEO** or **DAILYMOTION**,​ the extension which does the work is called webmedia-now-playing.
 +
 +If you want to get the video title and the uri is easy more than easy :-) .
 +<code bash>
 +#!/bin/sh
 +
 +eval $(dbus-send --session --print-reply --dest=org.midori.mediaHerald /​org/​midori/​mediaHerald org.freedesktop.DBus.Properties.GetAll string:"​org.midori.mediaHerald"​ | awk '
 +    /​string ​ *"​VideoTitle/​{
 +        while (1) {
 +            getline line
 +            if (line ~ /string "/)
 +                sub(/​.*string /, "​TITLE=",​ line)
 +                print line
 +                break
 +            }
 +        }
 +        /​string ​ *"​VideoUri/​{
 +        while (1) {
 +            getline line
 +            if (line ~ /string "/)
 +                sub(/​.*string /, "​URI=",​ line)
 +                print line
 +                break
 +            }
 +        }
 +    ')
 +echo "​Midori is now playing: $TITLE ,the uri is: $URI"
 +</​code>​
midori/faq.1382067971.txt.gz · Last modified: 2013/10/18 05:46 by twobob