IE右键快速转载到博客
添加IE右键 注册表文件:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt]
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt\收藏到cnblogs博客]
@="http://ext8.net/rightClick.html"
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt]
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt\收藏到cnblogs博客]
@="http://ext8.net/rightClick.html"
rightclick.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<SCRIPT language=JavaScript>
if (external.menuArguments)
{
var selText = "";
var strTitle = escape(external.menuArguments.document.title);
var strURL = escape(external.menuArguments.location.href);
var doc = external.menuArguments.document;
if ((doc.selection.type == "None") || (doc.selection.type == "none"))
{
alert("请选中网页上欲保存的文字和图片后再收藏!");
}
else
{
selText = doc.selection.createRange().text;
if (selText == "")
{
alert("请选中网页上欲保存的文字和图片后再收藏!");
}
else
{
external.menuArguments.document.execCommand("Copy");
var objChild; // Window
var reWork = new RegExp('object','gi'); // Regular expression
objChild = window.open("http://www.cnblogs.com/meetrice/admin/EditPosts.aspx?opt=1&title="+strTitle+"&url="+strURL,"objChild","toolbar=no,menubar=no,resizable=yes,location=no,status=yes,z-look=yes,alwaysRaised=yes,scrollbars=no");
if(!reWork.test(String(objChild)))
alert("文章收藏页面被拦截!\r\n请设定你安装的拦截弹出窗口软件,使当前页面不被拦截!");
}
}
}
</SCRIPT>
<META content="MSHTML 6.00.2800.1609" name=GENERATOR></HEAD>
<BODY></BODY></HTML>
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<SCRIPT language=JavaScript>
if (external.menuArguments)
{
var selText = "";
var strTitle = escape(external.menuArguments.document.title);
var strURL = escape(external.menuArguments.location.href);
var doc = external.menuArguments.document;
if ((doc.selection.type == "None") || (doc.selection.type == "none"))
{
alert("请选中网页上欲保存的文字和图片后再收藏!");
}
else
{
selText = doc.selection.createRange().text;
if (selText == "")
{
alert("请选中网页上欲保存的文字和图片后再收藏!");
}
else
{
external.menuArguments.document.execCommand("Copy");
var objChild; // Window
var reWork = new RegExp('object','gi'); // Regular expression
objChild = window.open("http://www.cnblogs.com/meetrice/admin/EditPosts.aspx?opt=1&title="+strTitle+"&url="+strURL,"objChild","toolbar=no,menubar=no,resizable=yes,location=no,status=yes,z-look=yes,alwaysRaised=yes,scrollbars=no");
if(!reWork.test(String(objChild)))
alert("文章收藏页面被拦截!\r\n请设定你安装的拦截弹出窗口软件,使当前页面不被拦截!");
}
}
}
</SCRIPT>
<META content="MSHTML 6.00.2800.1609" name=GENERATOR></HEAD>
<BODY></BODY></HTML>
第三步:
ctrl+v