sagoolでgoogle検索できるようにするuser jsとsagoolのサイドバーを固定するuser js

id:nazokingがつくってくれないのでつくった。iframeでgoogleを埋め込んでいるだけだがなかなか便利。AutoPagerize_operaと併用するといいと思う。
Operaで見るとなぜか本来固定されててしかるべきサイドバーが固定されてないんだよねなぜか。
ダウンロード:(現在サーバ死亡中)

我ながらなんというセンス!素晴らしすぎる

// ==UserScript==
// @name           Sagool Sidebar fix
// @description    fix that.
// @include        http://sagool.jp/s*
// ==/UserScript==
// author: gnarl( http://d.hatena.ne.jp/gnarl/ )

(function() {
    var sheet=document.styleSheets[0];
    sheet.insertRule('#inhead{position:fixed;}',sheet.cssRules.length);
})();
// ==UserScript==
// @name           Sagoogle
// @description    implant google into sagool
// @include        http://sagool.jp/s*
// ==/UserScript==
// author: gnarl( http://d.hatena.ne.jp/gnarl/ )

(function() {
    function $(id) {return document.getElementById(id);}
    function new_elm(name) { return document.createElement(name);}

    var g_logo=new_elm('a');
    g_logo.style.display='block';
    g_logo.style.backgroundImage='url(http://www.google.co.jp/images/nav_logo.png)';
    g_logo.style.backgroundPosition='right bottom';
    g_logo.style.width='84px';
    g_logo.style.height='52px';
    g_logo.style.position='fixed';
    g_logo.style.top='16px';
    g_logo.style.left='150px';
   
    var query=document.location.search;

    g_logo.href='javascript:void(0)';
    g_logo.onclick=function() {
        var rs=$('result_switch');
        var a=new_elm('a');
        a.innerText=rs.firstChild.innerText;
        rs.firstChild.innerText='';
        a.href=document.location;
        rs.firstChild.appendChild(a);
        var b=$('rbbb');
        var body=b.parentNode;
        b.removeNode(true);
        var google=new_elm('iframe');
        google.id='rbbb';
        google.src='http://google.co.jp/search' + document.location.search;
        google.width='100%';
        google.scrolling='no';
        function onresize() {
            google.height=document.body.clientHeight-30; //これはひどい…… なんというマジックナンバー
        }
        onresize();
        document.body.onresize=onresize;
        body.appendChild(google);
        
        return void(0);
    }
    $('inhead').appendChild(g_logo);

})();