阅读:1969回复:1
怎么样把这几段代码放在KeyTweak.uc.js里面'LR':{name:'searchtext',cmd:function(){var searchtext = window.content.location.hostname+" "+document.commandDispatcher.focusedWindow.getSelection() ;const URL = "https://encrypted.google.com/search?q=site:" + encodeURIComponent(searchtext);gBrowser.loadOneTab(URL,null,null,null,false,false);}}, // [左右]在当前域名下搜索(Google) 'RL':{name:'Search under the Domain',cmd:function(){var _document=document.commandDispatcher.focusedWindow.document;var p=prompt('Input word to search under the domain('+_document.location.hostname+'):','');if(p)_document.location.href='https://encrypted.google.com/search?q=site:'+_document.location.href.split('/')[2]+' '+encodeURIComponent(p);}}, // [右左] 在当前域名下搜索(Google) |
|
1楼#
发布于:2011-02-23 15:59
我晕死,没有一个人帮忙吗
|
|