📄 netcollect.js
字号:
// begin netget
var g_arrCollectList = {
greader:[
'GReader',
"{var b=document.body;window.GR________bookmarklet_domain='http://www.google.com';if(b&&!document.xmlVersion){void(z=document.createElement('script'));void(z.src='http://www.google.com/reader/ui/link-bookmarklet.js');void(b.appendChild(z));}else{}}",
'javascript',
'Google Reader Notes'
],
yahoo:[
'Yahoo+',
'"http://myweb.cn.yahoo.com/popadd.html?src=iebookmark&title="+encodeURIComponent(title)+"&url="+encodeURIComponent(url)+"&summary="+encodeURIComponent(summary)+""',
'scrollbars=no,width=780,height=455,left=5,top=20,status=yes,resizable=yes',
'雅虎收藏+(yahoo.com)'
],
baidu:[
'百度',
'"http://cang.baidu.com/do/add?it="+encodeURIComponent(title)+"&iu="+encodeURIComponent(url)+"&dc="+encodeURIComponent(summary)+"&fr=ien#nw=1"',
'scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes',
'百度搜藏(cang.baidu.com)'
],
deli:[
'Del.icio.us',
'"http://del.icio.us/post?v=4&noui&jump=close&url="+encodeURIComponent(url)+"&title="+encodeURIComponent(title)+""',
'width=700,height=400,left=75,top=20,resizable=yes',
'美味书签(del.icio.us)'
],/*
misterwong:[
'Wong It!',
'"http://www.mister-wong.cn/index.php?action=addurl&bm_url="+encodeURIComponent(url)+"&bm_description="+encodeURIComponent(title)+""',
'scrollbars=no,width=650,height=560,left=0,top=0,status=no,resizable=yes',
'Mister Wong(www.mister-wong.cn)'
],*/
furl:[
'FURL',
'"http://www.furl.net/storeIt.jsp?t="+encodeURIComponent(title)+"&u="+encodeURIComponent(url)+"&c="+encodeURIComponent(summary)+""',
'width=475,height=575,left=75,top=20,resizable=yes',
'FURL网摘(www.furl.net)'
],
poco:[
'Poco',
'"http://my.poco.cn/fav/storeIt.php?t="+escape(title)+"&u="+escape(url)+"&c="+escape(summary)+""',
'scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes',
'POCO网摘(share.poco.cn)'
],
hexun:[
'和迅', // showname
'"http://bookmark.hexun.com/post.aspx?title="+escape(title)+"&url="+escape(url)+"&excerpt="+escape(summary)+""', // link url
'scrollbars=no,width=600,height=450,left=80,top=80,status=no,resizable=yes', // window style
'和迅网摘(HeXun.com)' // href title
],
'365key':[
'365key',
'"http://www.365key.com/storeit.aspx?t="+escape(title)+"&u="+escape(url)+"&c="+escape(summary)+""',
'scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes',
'天天网摘(365key.com)'
],
yesky:[
'天极',
'"http://hot.yesky.com/dp.aspx?t="+escape(title)+"&u="+escape(url)+"&c="+escape(summary)+"&st=2"',
'scrollbars=no,width=400,height=480,left=75,top=20,status=no,resizable=yes',
'天极网摘(hot.yesky.com)'
],
douban:[
'豆瓣',
'"http://www.douban.com/recommend/?title="+encodeURIComponent(title)+"&url="+encodeURIComponent(url)+"&sel="+encodeURIComponent(summary)+"&v=1"',
'scrollbars=yes,width=450,height=330,left=75,top=20,status=no,resizable=yes',
'豆瓣网(www.douban.com)'
],
fanfou:[
'饭否',
'"http://fanfou.com/sharer?t="+encodeURIComponent(title)+"?u="+encodeURIComponent(url)+"?s=bl"',
'scrollbars=yes,width=450,height=330,left=75,top=20,status=no,resizable=yes',
'饭否(fanfou.com)'
]/*,
dingr:[
'顶啊',
'"http://www.dingr.com/links/submit?ru=1&t="+encodeURIComponent(title)+"&u="+encodeURIComponent(url)+"&d="+encodeURIComponent(summary)+""',
'scrollbars=yes,width=800,height=600,left=75,top=20,status=no,resizable=yes',
'顶啊网(www.dingr.com)'
],
younote:[
'YouNote',
'"http://www.younote.com/Noteit.aspx?t="+escape(title)+"&u="+escape(url)+"&c="+escape(summary)',
'scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes',
'网络书签YouNote(younote.com)'
],
rrwz:[
'人人',
'"http://rrwz.qihoo.com/User/AddWebSnip.aspx?t="+escape(title)+"&u="+escape(url)+"&c="+escape(summary)+""',
'scrollbars=no,width=475,height=450,left=280,top=50,status=no,resizable=yes',
'人人网摘(rrwz.qihoo.com)'
],
blogchina:[
'博采',
'"http://blogmark.bokee.com/keyLink/initQuickCreateInfo.k?k="+encodeURIComponent(title)+"&u="+encodeURIComponent(url)+"&c="+encodeURIComponent(summary)+""',
'scrollbars=no,width=500,height=430,status=no,resizable=yes',
'博客网博采中心(blogmark.bokee.com)'
],
ok4545:[
'拇指',
'"http://www.ok4545.com/club/myweb_add.asp?noui=yes&jump=close&title="+escape(title)+"&url="+escape(url)+"&c="+escape(summary)+""',
'toolbar=no,width=600,height=600',
'拇指网摘(ok4545.com)'
]*/
};
var g_urlToCollect = '';
var g_titleToCollect = '';
var g_summaryToCollect = '';
function getCollHtml(){
try{
var ret = '<strong>收藏本文到</strong>:';
var bfirst = true;
for(var i in g_arrCollectList){
ret += '<span style="padding-left:'+(bfirst?'1':'2')+'px;"><a href="javascript:void(0)" onclick="javascript:NetCollect(\''+i+'\')" title="收藏本文到 '+g_arrCollectList[i][3]+'"><img src="/pic/bookmark/'+i+'.gif" border="0" width="12" height="12" style="padding-right:1px;padding-left:2px;" align="absmiddle" />'+g_arrCollectList[i][0]+'</a></span>';
bfirst = false;
}
return '<div style="text-align:center;padding-bottom:3px;">' + ret + '</div>';
}catch(e){return '';}
}
function NetCollect(netid){
try{
if(netid.length <= 0 || ! netid in g_arrCollectList)
return;
var pCurColl = g_arrCollectList[netid];
if(pCurColl[2] == 'javascript'){
eval(pCurColl[1]);
return;
}
var argv = NetCollect.arguments;
var argc = NetCollect.arguments.length;
var openSelf = argc > 1 ? argv[1] : false;
var pos = 0;
if(g_urlToCollect == ''){
g_urlToCollect = location.href;
pos = g_urlToCollect.indexOf('#');
if(pos > 0){
g_urlToCollect = g_urlToCollect.substring(0,pos);
}
}
if(g_titleToCollect == ''){
g_titleToCollect = document.title;
pos = g_titleToCollect.indexOf(' | 泽欧里');
if(pos > 0){
g_titleToCollect = g_titleToCollect.substring(0,pos);
}
}
if(g_summaryToCollect == ''){
try{
var pIntro = null;
try{
pIntro = document.getElementById('entry_introduce');
}catch(e){pIntro = null;}
try{
if(null == pIntro) pIntro = document.all['entry_introduce'];
}catch(e){pIntro = null;}
if(pIntro != null){
g_summaryToCollect = pIntro.innerText;
if(g_summaryToCollect == '') g_summaryToCollect = pIntro.innerHTML;
}
}catch(e){}
if(g_summaryToCollect == '') g_summaryToCollect = g_titleToCollect;
}
var summary = document.selection?(document.selection.type!='None'?document.selection.createRange().text:g_summaryToCollect):(document.getSelection?document.getSelection():g_summaryToCollect);
var url = g_urlToCollect;
var title = g_titleToCollect;
//var delUsername = '';
//if(pCurColl[0] == 'Deli') delUsername = prompt ('请输入您在del.icio.us的用户帐号?', 'ZealLi');
eval('var urlToOpen = ' + pCurColl[1] + ';');
if(!openSelf){
var p = window.open(urlToOpen,netid+'_BookmarkWin',pCurColl[2]);
p.focus();
}
else{
window.location.href = urlToOpen;
}
}catch(e){}
}
// end netget
document.writeln(getCollHtml());
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -