阅读:1257回复:3
咨询有无扩展可以生成当前页面摘要到粘贴板的?(内详)
随手举个栗子,像这个网页:
http://www.itgogogo.com/Linux2/549.html firefox有没有类似的一种扩展,点一下按钮,就可以生成一份当前页面的摘要信息到粘贴板? (为了方便发到内部的即时通讯聊天上) 如像这样的格式文本到粘贴板: Title:Ubuntu快速自动安装socks5代理服务器dante-server - IT人生.htm URL:http://www.itgogogo.com/Linux2/549.html 关键字:centos,ubuntu,cisco,huawei,winxp,win7,win2003,win2008,代理服务器,socks5 其实就是html文件里面的这些内容: <title>Ubuntu快速自动安装socks5代理服务器dante-server - IT人生</title> <meta name="keywords" content="centos,ubuntu,cisco,huawei,winxp,win7,win2003,win2008,代理服务器,socks5"> |
|
1楼#
发布于:2014-04-16 17:40
随便写个好了
油猴脚本也可以实现 不过内部的即时通讯聊天如果支持bot的话 挂个bot更好 |
|
|
2楼#
发布于:2014-04-16 18:23
let metas = document.getElementsByTagName("meta") let metaInfos = [] for(let i=0;i<metas.length;i++){ metaInfos.push(metas[i].getAttribute("name") + ":" + metas[i].getAttribute("content")) } alert(metaInfos.join("\n")) |
|
|
3楼#
发布于:2014-04-16 23:00
|
|