Search

6/01/2006

今日閱讀2006-06-01

Web Development Bookmarklets
Dive Into Greasemonkey
Gecko DOM Reference, Index
A look at the FreeNAS server


<form action=http://www.google.com/search name=f>
<input type=hidden name=hl value=zh-TW>
<input maxlength=2048 size=55 name=q title="Google 搜尋">
<input type=submit value="Google 搜尋" name=btnG>
</form>



// ==UserScript==
// @name google at yahoo
// @namespace http://birdegg.tw
// @description add a search box at http://tw.yahoo.com
// @include http://tw.yahoo.com/
// @include http://localhost/*
// ==/UserScript==
var hotsch = document.getElementById('hotsch');
hotsch.innerHTML = "";
var googlediv = document.createElement("DIV");
googlediv.innerHTML = "
<form action=\"http://www.google.com/search\" name=f>
<input type=hidden name=hl value=zh-TW><
input maxlength=2048 size=39 name=q title=\"Google\">
<input type=submit value=\"Google\"
name=btnG></form>"

hotsch.appendChild(googlediv);

沒有留言: