Twitter Search Results on Google

By Mark Carey Last update Mar 2, 2009 — Installed 46,676 times.

Moving Twitter results to right edge

in
Subscribe to Moving Twitter results to right edge 3 posts, 3 voices



stasyaneon User
FirefoxMacintosh

By default, the script adds the Twitter results before the first normal result. This has the extremely unpleasant result that the normal results will suddenly be moved down as the Twitter results come in. This happens long after the normal search results have loaded, and usually just at the time I'm moving the mouse in place to click on on of the results.

In order to fix this, I move the Twitter results to a narrow margin at the right hand side of the screen, simply by adding this line after line 43:

ds.setAttribute("style", "background:white;position:absolute;width:23%;left:75%;padding:0px");

I also experimented with the effect of having the Twitter result expand on mouseover, but didn't like it too much. If you want to try it, add the following two lines underneath the above one:

ds.setAttribute("onmouseover", "this.style.width = '100%'; this.style.left = '20px'; this.style.padding = '50px'");
ds.setAttribute("onmouseout", "this.style.width = '23%'; this.style.left = '75%'; this.style.padding = '0px'")

 
Sasa Vukovic User
FirefoxWindows

Doesn't work for me :(
Would be really cool though.

 
upsfeup User
FirefoxWindows

I've been looking for this for a long time. Is really annoying the jumping results.

Anyway, I altered the dimensions and in my setup, this are my preferred dimensions (I guess it depends on the screen size and personal taste)

ds.setAttribute("style", "background:white;position:absolute;width:43%;left:55%;padding:0px");

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel