search twellow link

By innit4theminute Last update Dec 1, 2008 — Installed 47 times. Daily Installs: 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0

There are 3 previous versions of this script.

// ==UserScript==
// @name           search twellow link
// @namespace      http://www.userscripts.org
// @description    twellow search link
// @include        http*://twitter.com/*
// ==/UserScript==


window.addEventListener('load', function()

	{

	if(document.body.id=='profile')

	{

	h2s = document.getElementsByTagName("h2");

	loc = window.location;

	tmparr = loc.toString().split("/");

	uName=tmparr[3];

	for(i=0;i<h2s.length;i++)

		{

		if(h2s[i].className=='thumb')

			{

			thumb = h2s[i];

			break;

			}

		}

		img = document.createElement("img");

		img.setAttribute("src", "data:image/png, ");

		img.setAttribute("width", "20");

		img.setAttribute("height", "20");

		an = document.createElement("a");

		an.href="http://www.twellow.com/search.php?q="+uName;

		an.appendChild(img);

		an.innerHTML+=" ˀ☏twellow";

		thumb.parentNode.insertBefore(an, thumb.nextSibling);

	}

		}, true);