lihuai617
小狐狸
小狐狸
  • UID26647
  • 注册日期2008-10-12
  • 最后登录2017-09-03
  • 发帖数49
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
阅读:1737回复:1

怎么样把这几段代码放在KeyTweak.uc.js里面

楼主#
更多 发布于:2011-02-23 15:59
'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)
lihuai617
小狐狸
小狐狸
  • UID26647
  • 注册日期2008-10-12
  • 最后登录2017-09-03
  • 发帖数49
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
1楼#
发布于:2011-02-23 15:59
我晕死,没有一个人帮忙吗
游客

返回顶部