📄 blogmark.js
字号:
// original from coolcode.cn
function blogit(str)
{
if (document.getElementById('blogmark'))
{
var blogmark = document.getElementById('blogmark');
var NewNode = document.createElement('div');
blogmark.appendChild(NewNode);
NewNode.innerHTML = str;
}
}
function deliciousPost(URL, title)
{
q = URL;
p = title;
void(open('http://del.icio.us/login' + '?v=2&noui=yes&jump=close&url=' + encodeURIComponent(q) + '&title=' + encodeURIComponent(p),'delicious', 'toolbar=no, width=400, height=480'));
}
function load_blogit()
{
t = document.title;
u = location.href;
d = document;
e = document.selection ? (document.selection.type != 'None' ? document.selection.createRange().text : '') : (document.getSelection ? document.getSelection() : '');
blogit("<center>" +
"<a href=\"javascript:deliciousPost(d.location.href, d.title);\"><strong style='color:#0000FF'>del.icio.us</strong></a><br /> " +
"<a href=\"javascript:void(vivi = window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=28&title=' + escape(d.title) + '&url=' + escape(d.location.href) + '&desc=' + escape(t), 'vivi', 'scrollbars=no, width=480, height=480, left=75, top=20, status=no, resizable=yes')); vivi.focus();\"><strong style='color:red'>新浪 VIVI</strong></a><br /> " +
"<a href=\"javascript:void(keyit = window.open('http://www.365key.com/storeit.aspx?t=' + escape(d.title) +'&u=' + escape(d.location.href) + '&c=' + escape(t), 'keyit', 'scrollbars=no, width=475, height=575, left=75, top=20, status=no, resizable=yes')); keyit.focus();\"><strong style='color:#a287be'>365key</strong></a><br /> " +
"<a href=\"javascript:void(keyit = window.open('http://www.younote.com/Noteit.aspx?t=' + escape(d.title) + '&u=' + escape(d.location.href) + '&c=' + escape(t), 'keyit', 'scrollbars=no, width=475, height=575, left=75, top=20, status=no, resizable=yes')); keyit.focus();\"><strong style='color:#9BBB38'>YouNote</strong></a><br /> " +
"<a href=\"javascript:void(keyit = window.open('http://blogmark.blogchina.com/jsp/key/quickaddkey.jsp?k=' + encodeURI(d.title) + '&u='+encodeURI(d.location.href) + '&c='+encodeURI(t), 'keyit', 'scrollbars=no, width=500, height=430, status=no, resizable=yes')); keyit.focus();\"><strong style='color:#74B779'>博采中心</strong></a><br /> " +
"<a href=\"javascript:void(keyit = window.open('http://my.poco.cn/fav/storeIt.php?t=' + escape(d.title) + '&u=' + escape(d.location.href) + '&c=' + escape(t), 'keyit', 'scrollbars=no, width=475, height=575, status=no, resizable=yes')); keyit.focus();\"><strong style='color:#29B5DE'>Poco</strong></a><br /> " +
"<a href=\"javascript:void(keyit = window.open('http://z.sohu.com/storeit.do?t=' + escape(d.title) + '&u=' + escape(d.location.href) +'&c=' + escape(t), 'keyit', 'scrollbars=no, width=475, height=575, left=75, top=20, status=no, resizable=yes')); keyit.focus();\"><strong style='color:#505050'>SOHU狐摘</strong></A><br /> " +
"<a href=\"javascript:void(yesky = window.open('http://hot.yesky.com/dp.aspx?t=' + escape(d.title) + '&u=' + escape(d.location.href) + '&c=' + escape(t) + '&st=2', 'yesky', 'scrollbars=no, width=400, height=480, left=75, top=20, status=no, resizable=yes')); yesky.focus();\"><strong style='color:#99CF17'>天极网摘</strong></a><br /> " +
"<a href=\"javascript:void(hexun = window.open('http://bookmark.hexun.com/post.aspx?title=' + escape(t) + '&url=' + escape(u) + '&excerpt=' + escape(e), 'HexunBookmark', 'scrollbars=no, width=600, height=450, left=80, top=80, status=no, resizable=yes')); hexun.focus();\"><strong style='color:#3366CC'>和讯网摘</strong></a><br /> " +
"</center>");
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -