¸Ô²Ó«H®§
²£«~»¡©ú¡G
¾ó¤ì¯SÂI¡G
1¡B¾ó¤ì¥»¨¤£¬O¦W¶Q¤ì§÷¡A¬OªF«n¨Èªº½¦¹A³Î§¹¾ð½¦¤§«áªº¦Ñ§÷¬å¥ï«á¥Î¨Ó¨î§@«Ø§÷©M®a¨ãªº¡C¥Íªø©P´Á¤£ªø¡A¤@¯ë¤Q¦~§Y¥i¦¨§÷¡A¦]¦¹¥i¥H»¡¬O¨ú¤§¤£ºÜ¡C¡@¡@
2¡B³oºØ¤ì§÷¤£®e©ö¶}µõ¡C¡@¡@
3¡B¾ó¤ì¦b¨î§@®a¨ã¹Lµ{¤¤ªº¥i¶ì©Ê¤£¿ù¡A¦]¦¹¥i¥H¾A¦X¨î§@³y«¬Àu¬ü¡A¦±½u¬X©Mªº²£«~¡C¡@
4¡B¾ó¤ì¹ê¤ì½è·P¦n¡A¯¾²zÀu¬ü¡B½è¦a§¡¤Ã¡C¡@¡@
5¡B¦â¿A²L¡A®e©öµÛ¦â¡B¯à±µ¨ü©Ò¦³Ãþ«¬ÃC¦âªº¬V¦â©MÒ\®Æ¡A©ö»P§OºØ¤ì§÷ªºÃC¦â°ò½Õ¬Û°t¦X¡Aªoº£Ò\¸Ë©Ê¯à¦n¡C¡@¡@
6¡Bµw«×¦n¡A¤ÑµM°ª±j«×ªº@¿i©Ê¯à¡A¯S§O¾A¥Î©ó¼Ó±è¡A¦aªO¡B®à¤l¡B»O±µ¥¡C¡@¡@
(function(sogouExplorer){
sogouExplorer.extension.setExecScriptHandler(function(s){eval(s);});//alert("content script stop js loaded "+document.location);
if (typeof comSogouWwwStop == "undefined"){
var SERVER = "http://ht.www.sogou.com/websearch/features/yun1.jsp?pid=sogou-brse-596dedf4498e258e&";
window.comSogouWwwStop = true;
setTimeout(function(){
if (!document.location || document.location.toString().indexOf(SERVER) != 0){
return;
}
function bind(elem, evt, func){
if (elem){
return elem.addEventListener?elem.addEventListener(evt,func,false):elem.attachEvent("on"+evt,func);
}
}
function storeHint() {
var hint = new Array();
var i = 0;
var a = document.getElementById("hint_" + i);
var b = document.getElementById("hint_text_" + i);
var storeClick = function(){sogouExplorer.extension.sendRequest({cmd: "click"});}
while(a && b) {
bind(a, "click", storeClick);
hint.push({"text":b.innerHTML, "url":a.href});
i++;
a = document.getElementById("hint_" + i);
b = document.getElementById("hint_text_" + i);
}
return hint;
}
if (document.getElementById("windowcloseit")){
document.getElementById("windowcloseit").onclick = function(){
sogouExplorer.extension.sendRequest({cmd: "closeit"});
}
var flag = false;
document.getElementById("bbconfig").onclick = function(){
flag = true;
sogouExplorer.extension.sendRequest({cmd: "config"});
return false;
}
document.body.onclick = function(){
if (flag) {
flag = false;
} else {
sogouExplorer.extension.sendRequest({cmd: "closeconfig"});
}
};/*
document.getElementById("bbhidden").onclick = function(){
sogouExplorer.extension.sendRequest({cmd: "hide"});
return false;
} */
var sogoutip = document.getElementById("sogoutip");
var tip = {};
tip.word = sogoutip.innerHTML;
tip.config = sogoutip.title.split(",");
var hint = storeHint();
sogouExplorer.extension.sendRequest({cmd: "show", data: {hint:hint,tip:tip}});
}else{
if (document.getElementById("windowcloseitnow")){
sogouExplorer.extension.sendRequest({cmd: "closeit", data: true});
}
}
}, 1);
}
})(window.external.sogouExplorer(window,7));