2008-08-27 35 views

回答

2

「翻譯此」和「編輯頁面」。我想如果他們支持託管域,我會發現Google Apps功能很有用。

2

,它可以更快地關閉Firefox,然後我可以用鼠標和角落裏那個小[X]的事情... :-P

0

我的同事已經在他的機器上有3個藍色屏幕自安裝它。不完全相信這是什麼,但這是他今天唯一改變的。我現在卸載它(他也是如此)。

+1

JavaScript擴展,像無處不在,不會導致藍屏。有故障的驅動程序和硬件導致藍屏。嘆... – Nickolay 2008-09-16 09:44:43

2

我剛纔寫的:

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)."; 
    } 
}); 

尼斯扭蛋!

現在我需要弄清楚如何使用JQuery和Ubiquity將HTTP POST發送到http://Beta.StackOverflow.Com/search ......如果只有一個網站,我可以問這個問題!

3

我寫這幾天前: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); 
    }, 
}) 
1

我用了很多的「通過電子郵件發送」和「推特」命令