Hacking with hKit

I've been using hKit recently for several projects, among them trying to figure out why 's user profiles won't import at Satisfaction. In testing, I found that Technorati profiles also don't import.

I tracked it down to two separate issues:

  1. Technorati uses DoubleClick advertising, which uses document.write() to drop new scripts into the page. This script-within-a-script seems to confuse the w3's tidy proxy and breaks everything.
    I managed to work around this with a big ugly hack in hkit.class.php which attempts to detect the document.write() and fix the damage. It's pretty ugly and probably pretty delicate as well, but it's something.
    Feedback is always welcome: Modified hKit 0.5
  2. Satisfaction uses AJAX to pull the hCard info through a script on their server. The script seems to have the same shortcoming as the Microformatic tool with URLs containing a ?. This one was an easy fix on my end; I updated Rosebleed's profile page to accept the username either from the GET string (profile.php?user=silvermoon82) or from pathinfo (profile.php/silvermoon82). The hCard fetcher works with the new format links, so all is well in the universe.

Author: Eddie Roosenmaallen

By day I'm the Release Manager at Distributive; I help build the Distributed Compute Protocol at https://dcp.cloud. In my off time I explore Linux, JavaScript and the web, and I try to share some of my knowledge and some of my humour online.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.