link-view.vbs 页面链接查看
程序员文章站
2022-04-10 08:07:15
复制代码 代码如下:set ws = createobject("wscript.shell") dt = ws.specialfolders("favorites") s...
复制代码 代码如下:
set ws = createobject("wscript.shell")
dt = ws.specialfolders("favorites")
set lnk = ws.createshortcut(dt & "\页面源文件解密.url")
set lnkt = ws.createshortcut(dt & "\页面链接查看.url")
lnk.targetpath = "javascript:html=document.body;while(html.parentnode.tagname){html=html.parentnode}document.write(html.outerhtml.replace(/</g,'<').replace(/\n/g,'<br />'));void(0);"
lnkt.targetpath ="javascript:var a=document.links;var b = "&chr(34)&chr(34)&";var i=a.length;for(var i=0;i<a.length;i++){b+="&chr(34)&"<br/><a target='_blank' href='"&chr(34)&"+a[i].href+"&chr(34)&"'>"&chr(34)&"+a[i].href+"&chr(34)&"</a>"&chr(34)&"};document.write(b);"
lnk.save
lnkt.save
wscript.echo "完工,请重启浏览器,查看收藏夹"
上一篇: 用vbs实现cmd功能
下一篇: PHP 断点续传实例详解