Show me the code! – By Davanum Srinivas

October 22, 2008

Greasemonkey script for Summize search on Twitter Home page

Filed under: Uncategorized — Davanum Srinivas @ 3:31 pm
// ==UserScript==
// @name           Summize / Twitter
// @namespace      dims
// @include        http://twitter.com/
// ==/UserScript==

var summize = document.createElement("div");

summize.innerHTML = '<div style="margin: 0 auto 0 auto; ' +
    'border-bottom: 1px solid #000000; margin-bottom: 5px; ' +
    'font-size: small; background-color: #000000; ' +
    'color: #ffffff;">'+
  ' <form action="http://search.twitter.com/search" id="searchForm" method="get"> ' +
  '	<input autosave="com.twitter.search" id="searchBox" ' + 
  '        name="q" placeholder="Enter your query" results="10" type="search" />' +
  '	<input type="submit" value="Search" />' +
  ' </form>' +
  '</div>';
document.body.insertBefore(summize, document.body.firstChild);

click here to subscribe to the greasemonkey script.

2 Comments »

  1. You forget the joker star after the twitter url😉

    # // @include http://twitter.com/*

    Comment by geekshadow — October 22, 2008 @ 3:58 pm


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: