无处不在的黑客­­­­­­­­­­­­& #xAD;­­­­­­­­­­­­ ;­­­­­­­­­­­­& #xAD;­­

发布于 2024-07-04 15:13:58 字数 127 浏览 8 评论 0原文

对于 Mozilla 的新 Ubiquity 工具,您发现的最有用的技巧是什么?

What's the most useful hack you've discovered for Mozilla's new Ubiquity tool?
­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

只为守护你 2024-07-11 15:13:58

我经常使用“通过电子邮件发送”和“twitter”命令

I use a lot the "email it" and the "twitter" commands

林空鹿饮溪 2024-07-11 15:13:58

我的同事的机器自安装以来已经出现过 3 次蓝屏。 虽然不完全相信这就是他造成的,但这是他今天唯一改变的事情。 我现在正在卸载它(他也是)。

My co-worker has had 3 blue-screens on his machine since installing it. Not totally convinced this is what did it, but it's the only thing he's changed today. I'm uninstalling it for now (and so is he).

少跟Wǒ拽 2024-07-11 15:13:58

我几天前写的: http://www.appidx.com/ubiq/stackoverflow.html

执行部分拒绝使用 POST 数据运行。 该代码是正确的代码,我已经尝试使用 XUL 组件 javascript 来使用该函数的本机代码,但它同样拒绝运行。 任何帮助,将不胜感激。 另一方面,预览效果很好。

CmdUtils.CreateCommand({
  name: "stackoverflow",
  author: {name: "Aryeh Goldsmith"},
  homepage: "http://www.appidx.com/ubiq/",
  icon: "http://stackoverflow.com/favicon.ico",
  takes: {search: noun_arb_text},
  license: "MPL",
  description: "Searches the highlighted text on stackoverflow.",
  _version: "52",

  preview: function ( pblock, inputObject) {
    var query = inputObject.text;
    pblock.innerHTML = "Search stackoverflow.com for " + query + "<br/>";

    var url = "http://stackoverflow.com/search";
    params = {"search-text": query, "hiddenstuff": ''};

    jQuery.post( url, params, function( html ) {
      var $ = jQuery;
      pblock.innerHTML += "<div style='display:none;'>" + html + "</div>";
      var ques = $(pblock).find('.summary h3');
      var details = $(pblock).find('.summary .excerpt');
      var out = "<div style='margin-bottom: 6px;'><b>Previewing the first 5 results:</b></div>";
      for (var j = 0; j< ques.size() && j < 5; j++) {
        out += "<div style='padding: 5px;'><b>" + ques[j].innerHTML + "</b><br />";
        out += details[j].innerHTML + "</div>";
      }
      pblock.innerHTML = out;
    });
    },

  execute: function( inputObject ) {
    var query = inputObject.text;
    var url = "http://stackoverflow.com/search";
    var params = {
      "search-text": query,
      hiddenstuff: ""
    };

// The following refuses to work... why? I just don't know! AFAIK it's correct.
    openUrl(url, params);
  },
})

I wrote this a few days ago: http://www.appidx.com/ubiq/stackoverflow.html

The execute portion refuses to run with POST data. The code is the right code, and I've tried with the native code of the function with the XUL component javascript and it likewise refuses to run. Any help would be appreciated. The preview on the other hand works fine.

CmdUtils.CreateCommand({
  name: "stackoverflow",
  author: {name: "Aryeh Goldsmith"},
  homepage: "http://www.appidx.com/ubiq/",
  icon: "http://stackoverflow.com/favicon.ico",
  takes: {search: noun_arb_text},
  license: "MPL",
  description: "Searches the highlighted text on stackoverflow.",
  _version: "52",

  preview: function ( pblock, inputObject) {
    var query = inputObject.text;
    pblock.innerHTML = "Search stackoverflow.com for " + query + "<br/>";

    var url = "http://stackoverflow.com/search";
    params = {"search-text": query, "hiddenstuff": ''};

    jQuery.post( url, params, function( html ) {
      var $ = jQuery;
      pblock.innerHTML += "<div style='display:none;'>" + html + "</div>";
      var ques = $(pblock).find('.summary h3');
      var details = $(pblock).find('.summary .excerpt');
      var out = "<div style='margin-bottom: 6px;'><b>Previewing the first 5 results:</b></div>";
      for (var j = 0; j< ques.size() && j < 5; j++) {
        out += "<div style='padding: 5px;'><b>" + ques[j].innerHTML + "</b><br />";
        out += details[j].innerHTML + "</div>";
      }
      pblock.innerHTML = out;
    });
    },

  execute: function( inputObject ) {
    var query = inputObject.text;
    var url = "http://stackoverflow.com/search";
    var params = {
      "search-text": query,
      hiddenstuff: ""
    };

// The following refuses to work... why? I just don't know! AFAIK it's correct.
    openUrl(url, params);
  },
})
标点 2024-07-11 15:13:58

我刚刚写了这个:

makeSearchCommand({
  name: "stackoverflow-tagsearch",
  author: { name: "Jörg W Mittag", email: "[email protected]"},
  license: "MIT X11",
  url: "http://Beta.StackOverflow.Com/questions/tagged/{QUERY}",
  icon: "http://StackOverflow.Com/favicon.ico",
  description: "Searches <a href=\"http://StackOverflow.Com\">StackOverflow.Com</a> for the given tag(s).",
  help: "Searches <a href=\"http://StackOverflow.Com\">StackOverflow.Com</a> for the given tag(s).",
  preview: function(pBlock, directObj) {
  if (directObj.text)
    pBlock.innerHtml = "Searches <a href=\"http://StackOverflow.Com\">StackOverflow.Com</a> for " + directObj.text;
  else
    pBlock.innerHTML = "Searches <a href=\"http://StackOverflow.Com\">StackOverflow.Com</a> for the given tag(s).";
  }
});

好玩具!

现在我需要弄清楚如何通过 HTTP POST 到 http://Beta.StackOverflow.Com/search使用 JQuery 和 Ubiquity ...如果有一个网站可以让我问这个问题就好了!

I just wrote this:

makeSearchCommand({
  name: "stackoverflow-tagsearch",
  author: { name: "Jörg W Mittag", email: "[email protected]"},
  license: "MIT X11",
  url: "http://Beta.StackOverflow.Com/questions/tagged/{QUERY}",
  icon: "http://StackOverflow.Com/favicon.ico",
  description: "Searches <a href=\"http://StackOverflow.Com\">StackOverflow.Com</a> for the given tag(s).",
  help: "Searches <a href=\"http://StackOverflow.Com\">StackOverflow.Com</a> for the given tag(s).",
  preview: function(pBlock, directObj) {
  if (directObj.text)
    pBlock.innerHtml = "Searches <a href=\"http://StackOverflow.Com\">StackOverflow.Com</a> for " + directObj.text;
  else
    pBlock.innerHTML = "Searches <a href=\"http://StackOverflow.Com\">StackOverflow.Com</a> for the given tag(s).";
  }
});

Nice toy!

Now I need to figure out how to HTTP POST to http://Beta.StackOverflow.Com/search with JQuery and Ubiquity ... If only there was a site where I could ask that question!

谢绝鈎搭 2024-07-11 15:13:58

“翻译这个”和“编辑页面”。 我认为如果 Google Apps 功能支持托管域,我会发现它们很有用。

"translate this" and "edit-page". I think I'd find the Google Apps features useful if they supported hosted domains.

命硬 2024-07-11 15:13:58

它可以比我用鼠标和角落里那个小 [x] 的东西更快地关闭 Firefox...:-P

That it can close Firefox faster then I can with the mouse and that little [x] thing in the corner... :-P

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文