瀏覽代碼

add ext bookmark-delicious

pull/1/head
10sr 12 年之前
父節點
當前提交
d88872164f
共有 1 個檔案被更改,包括 6 行新增0 行删除
  1. +6
    -0
      _keysnail.js

+ 6
- 0
_keysnail.js 查看文件

@@ -158,6 +158,12 @@ plugins.options["twitter_client.use_jmp"] = true;
////////////////////////////////////////////
// my ext

ext.add("bookmark-delicious", function(){
if (window.loadURI) {
loadURI("javascript:(function(){f='http://www.delicious.com/save?url='+encodeURIComponent(window.location.href)+'&title='+encodeURIComponent(document.title)+'&notes='+encodeURIComponent(''+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text))+'&v=6&';a=function(){if(!window.open(f+'noui=1&jump=doclose','deliciousuiv6','location=1,links=0,scrollbars=0,toolbar=0,width=550,height=585'))location.href=f+'jump=yes'};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})()");
}
}, "bookmark delicious");

ext.add('view-page-source', function(){
window.content.location.href = "view-source:" + window.content.location.href;
}, 'view page source');


Loading…
取消
儲存