知识库首页 书签代码 提取外链.md

提取外链

本地来源:书签代码/提取外链.md

javascript:(function(){var highlightStyle='outline: 3px solid #ff0000 !important; background: rgba(255, 255, 0, 0.3) !important; color: #000 !important; box-shadow: 0 0 10px rgba(255,0,0,0.5) !important; transition: all 0.3s;';var currentHost=window.location.hostname.replace(/^www./,'');var links=document.querySelectorAll('a[href]');var external=[];var seen=new Set();function escapeCSV(str){if(!str)return'';str=str.replace(/"/g,'""');if(str.search(/("|,|\n|\r)/g)>=0){str='"'+str+'"';}return str;}function isVisible(elem){return!!(elem.offsetWidth||elem.offsetHeight||elem.getClientRects().length);}var csvRows=["URL,锚文本/Alt,Rel属性,打开方式,可见性"];for(var i=0;i<style>body{margin:0;padding:20px;font-family:sans-serif;background:#f5f5f5;color:#333}.header{background:#fff;padding:20px;margin-bottom:20px;border-radius:8px}.btn{padding:10px 20px;background:#27ae60;color:white;text-decoration:none;border-radius:4px;font-weight:bold;display:inline-block}.btn:hover{background:#219150}table{width:100%;border-collapse:collapse;background:#fff}th,td{padding:10px;border-bottom:1px solid #eee;text-align:left}th{background:#f8f9fa}.tag{padding:2px 6px;border-radius:4px;color:#fff;font-size:11px}.tag-follow{background:#27ae60}.tag-nofollow{background:#e74c3c}\\\\

\

🔎 外部链接报告: '+external.length+' 个\

\

页面已高亮显示外链。 \📥 下载 Excel (CSV)\\

\
\\\\\\\\\\\'+external.map(item=>{let rc=item.rel.includes('nofollow')?'tag-nofollow':'tag-follow';return '';}).join('')+'
URL\锚文本\Rel\Target\可见性\
'+item.url+''+item.text.replace(/</g,'<')+''+item.rel+''+item.target+''+item.visible+'
';w.document.write(html);w.document.close();})();

本文档为站内渲染。原始文件本地路径:saas/source/bookmarks-code/书签代码-提取外链-26a51e.md(仅本地保留,不入库不部署)