link-view.vbs 页面链接查看
程序员文章站
2022-07-04 20:27:07
复制代码 代码如下: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 "完工,请重启浏览器,查看收藏夹"
上一篇: mysql的错误总结
下一篇: 用vbs实现cmd功能的代码