FullPageCaptureWithVideo
网页截图,支持Video截图
Install / Use
/learn @zxlie/FullPageCaptureWithVideoREADME
FullPageCaptureWithVideo
JS网页截图,支持Video截图
使用方法
<script type="text/javascript" src="name/to/path/FullPageCaptureWithVideo.js"></script>
<script type="text/javascript">
FullPageCaptureWithVideo.capture(YourDomElement, function (imageDataURL) {
// TODO:处理图片
});
</script>
示例1:全网页截图
FullPageCaptureWithVideo.capture(null, function (data) {
// 新窗口打开图片
window.open().document.write("<img src=" + data + " />");
// 当然,你也可以直接上传保存图片
// Upload(data)
});
示例2:截取某个节点/区域
FullPageCaptureWithVideo.capture({
dom: document.getElementById('video_chat_container')
}, function (data) {
// 新窗口打开图片
window.open().document.write("<img src=" + data + " />");
// 当然,你也可以直接上传保存图片
// Upload(data)
});
示例3:还可以自行指定html2canvas.min.js的地址
FullPageCaptureWithVideo.capture({
// 默认: 'https://html2canvas.hertzen.com/dist/html2canvas.min.js'
h2cUrl: 'your html2canvas.min.js absolute url here...'
}, function (data) {
// 新窗口打开图片
window.open().document.write("<img src=" + data + " />");
// 当然,你也可以直接上传保存图片
// Upload(data)
});
示例4:加个水印也是OK的
// 设置水印
FullPageCaptureWithVideo.capture({
waterMark: {
text:'抓取于:' + new Date().toLocaleString(),
font: "20px Arial",
color: '#f00',
position: {
x: 20,
y: 20
}
}
}, function (data) {
// 新窗口打开图片
window.open().document.write("<img src=" + data + " />");
// 当然,你也可以直接上传保存图片
// Upload(data)
});
Related Skills
qqbot-channel
345.9kQQ 频道管理技能。查询频道列表、子频道、成员、发帖、公告、日程等操作。使用 qqbot_channel_api 工具代理 QQ 开放平台 HTTP 接口,自动处理 Token 鉴权。当用户需要查看频道、管理子频道、查询成员、发布帖子/公告/日程时使用。
docs-writer
100.0k`docs-writer` skill instructions As an expert technical writer and editor for the Gemini CLI project, you produce accurate, clear, and consistent documentation. When asked to write, edit, or revie
model-usage
345.9kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
arscontexta
2.9kClaude Code plugin that generates individualized knowledge systems from conversation. You describe how you think and work, have a conversation and get a complete second brain as markdown files you own.
