Autotitle
Posted: Fri Apr 03, 2009 12:01 pm
Autotitle is a plugin that automatically insert the title of a linked site as title-tag into the link. This way, the user reading the blogentry normally sees a tooltip with a more clear description what the linked site is about when he hovers the link.
The plugin does this by fetching the first 4KB of the linked site and searching for the title-tag. Because this normally is located in the header (and in the first few bytes) it should be found every time it is present.
Because waiting for the other server's response may take a lot of time even if only fetching a small part it caches the title of the url, so the waiting time is only triggered once a week (the preview of a written post is enough for caching the entry, so a new post won't result in waiting-time for the first visitor).
Please give me a hint if something like this already exist.
This is version 0.1 which worked really well in my tests, but probably needs a lot more testing. I'll be glad about every feedback: Download.
The plugin does this by fetching the first 4KB of the linked site and searching for the title-tag. Because this normally is located in the header (and in the first few bytes) it should be found every time it is present.
Because waiting for the other server's response may take a lot of time even if only fetching a small part it caches the title of the url, so the waiting time is only triggered once a week (the preview of a written post is enough for caching the entry, so a new post won't result in waiting-time for the first visitor).
Please give me a hint if something like this already exist.
This is version 0.1 which worked really well in my tests, but probably needs a lot more testing. I'll be glad about every feedback: Download.