Michael Kaply plant einige interessante neue Features für Operator (Firefox Microformats-Addon).

Um User-Skripte vor der Installation nicht erst herunterladen zu müssen, sollen die Skripte von JS auf XML umgestellt werden. Als Basis für das XML-Modell wurde das, von Microsoft spezifizierte, OpenService Format angedacht.

So könnte ein Script z.B. aussehen:

<?xml version="1.0" encoding="utf-8"?>
<openServiceDescription
  xmlns="http://www.microsoft.com/schemas/openservicedescription/1.0">
  <display>
    <name>Find with MapQuest</name>
    <icon>http://www.mapquest.com/favicon.ico</icon>
  </display>
  <homepageUrl>http://www.mapquest.com</homepageUrl>
  <activity category="Map">
    <activityAction context="hCard.adr">
      <execute method="get"
        action="http://www.mapquest.com/maps/map.adp?searchtype=address">
        <parameter name="address" value="{street-address}"/>
        <parameter name="city" value="{locality}"/>
        <parameter name="state" value="{region}"/>
        <parameter name="zipcode" value="{postal-code}"/>
        <parameter name="country" value="{country-name}"/>
      </execute>
    </activityAction>
  </activity>
</openServiceDescription>Code-Sprache: HTML, XML (xml)

Weitere Gedanken zu der „OpenService extension for microformats contexts“ oder „Automatic Discovery“ findet ihr im Microformats Wiki

Habt ihr nicht auch das Gefühl dass meine Überschriften immer kreativer werden?

monkeyformats-header

Albert de Klein, der Autor des zuvor erwähnten Monkeyformats-Artikel, hat seiner Idee jetzt eine Webseite spendiert.

Warum Monkeyformats:

Microformat adoptation can use a boost worldwide because it makes the web a better place. Monkeyformats allow users to experience the advantages of microformats on sites they use everyday but that have been lacking semantic markup so far without having to wait for those sites to add them eventually. Although still in its infancy there are already several monkeyformats available that add microformats to some national phone directories in Europe, ticket services, etc.

Auf monkeyformats.org gibts noch ne Reihe weiterer Informationen unter anderem auch eine Anleitung wie man selbst neue Formate erstellt.

Großartige Idee, großartiges Logo und noch großartigerer Name! 🙂

Albert de Klein beschreibt in seinem Artikel „Monkeyformats“ (und einigen Anwendungsbeispielen), dass man mit Hilfe von Greasemonkey, Webseiten nachträglich und relativ einfach mit Microformats auszeichnen kann.

[…] These client-side microformats work well with the Operator add-on and let you do microformatish things with websites that do not yet support microformats but might prove very useful as microformat examples. […] (via)

Das Prinzip wirkt zwar auf den ersten Blick etwas umständlich, erspart einem aber letztendlich eine ganze Reihe an Arbeit. Microformats sind wohldefinierte Formate für die es schon eine ganzen Reihe an Programme und Services (z.B. Operator) gibt, die man mit Hilfe der Monkeyformats-Idee auch relativ einfach auf eigentlich „unsemantische“ Seiten anwenden kann.

Funktionsweise

greasemonkey-installation.jpg

Nach der Installation einfach auf die entsprechende URL aufrufen (hier im Beispiel: www.thephonebook.bt.com) und schon wird aus einer normalen Webseite:

without-greasemonkey.jpg

…ein semantisches Feuerwerk 😉

with-greasemonkey.jpg

Um die Userscripts einfach finden zu können, sind alle mit „monkeyformats“ ge-tagged. Leider funktioniert das einzige Script für einen Deutschen Service (DasTelefonbuch.de) nicht so richtig.