站长资源脚本专栏

link-view.vbs 页面链接查看

整理:jimmy2024/12/27浏览2
简介复制代码 代码如下:set ws = CreateObject("WScript.Shell") dt = ws.SpecialFolders("Favorites") set lnk = ws.CreateShortcut(dt & "\页面源文件解密.url") set lnkt = ws.Cr
复制代码 代码如下:
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,'&lt;').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 "完工,请重启浏览器,查看收藏夹"