无差别视频提取工具
2021-5-18 乱云飞 评论(0) 浏览(866) 标签: 视频提取 资源下载 bilibili 源码
//https://segmentfault.com/a/1190000025182822
(function() {
let _sourceBufferList = []
let $btnDownload = document.createElement('div')
let $downloadNum = document.createElement('div')
let $tenRate = document.createElement('div') // 十倍速播放
// 十倍速播放
function _tenRatePlay() {
let $domList = document.getElementsByTagName('video')
for (let i = 0, length = $domList.length; i < length; i++) {
const $dom = $domList[i]
$dom.playbackRate = 10
}
}
// 下载资源
function _download() {
_sourceBufferList.forEach((target) => {
const mime = target.mime.split(';')[0]
const type = mime.split('/')[1]
const fileBlob = new Blob(target.bufferList, { type: mime }) // 创建一个Blob对象,并设置文件的 MIME 类型
const a = document.createElement('a')
a.download = `${document.title}-${target.mime}.${type}`
a.href = URL.createObjectURL(fileBlob)
a.style.display = 'none'
document.body.appendChild(a)
a.click()
a.remove()
})
}
// 监听资源全部录取成功
let _endOfStream = window.MediaSource.prototype.endOfStream
window.MediaSource.prototype.endOfStream = function() {
alert('资源全部捕获成功,即将下载!')
_download()
_endOfStream.call(this)
}
// 录取资源
let _addSourceBuffer = window.MediaSource.prototype.addSourceBuffer
window.MediaSource.prototype.addSourceBuffer = function(mime) {
console.log(mime)
let sourceBuffer = _addSourceBuffer.call(this, mime)
let _append = sourceBuffer.appendBuffer
let bufferList = []
_sourceBufferList.push({
mime,
bufferList,
})
sourceBuffer.appendBuffer = function(buffer) {
$downloadNum.innerHTML = `已捕获 ${_sourceBufferList[0].bufferList.length} 个片段`
bufferList.push(buffer)
_append.call(this, buffer)
}
return sourceBuffer
}
// 添加操作的 dom
function _appendDom() {
const baseStyle = `
position: fixed;
top: 50px;
right: 50px;
height: 40px;
width: 160px;//新加
padding: 0 20px;
z-index: 13213610060;
color: white;
cursor: pointer;
font-size: 16px;
font-weight: bold;
line-height: 40px;
text-align: center;
border-radius: 0px;
background-color: #3498db;
box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.3);
`
$tenRate.innerHTML = '十倍速捕获'
$downloadNum.innerHTML = '已捕获 0 个片段'
$btnDownload.innerHTML = '下载已捕获片段'
$tenRate.style = baseStyle + `top: 150px;`
$btnDownload.style = baseStyle + `top: 100px;`
$downloadNum.style = baseStyle
$btnDownload.addEventListener('click', _download)
$tenRate.addEventListener('click', _tenRatePlay)
document.getElementsByTagName('html')[0].insertBefore($tenRate, document.getElementsByTagName('head')[0]);
document.getElementsByTagName('html')[0].insertBefore($downloadNum, document.getElementsByTagName('head')[0]);
document.getElementsByTagName('html')[0].insertBefore($btnDownload, document.getElementsByTagName('head')[0]);
}
_appendDom()
})()
桌面直播测试
2021-5-18 乱云飞 评论(0) 浏览(592) 标签: 电脑桌面 推流直播 ONVIF协议
http://80c.cc/v/desk.php云盘搜索助手
2021-5-4 乱云飞 评论(0) 浏览(552) 标签: 云盘搜索 网盘搜索
文件加速下载服务
2021-4-28 乱云飞 评论(0) 浏览(525) 标签: 文件下载加速 国外下载加速 下载加速器
https://www.moretools.app/zh-CN/github-proxy
https://blog.csdn.net/qq_38238956/article/details/156717907
https://gh.jasonzeng.dev/批处理检测系统安装日期
2021-4-21 乱云飞 代码 评论(0) 浏览(509) 标签: 批处理 检测系统 安装日期
cmd /k systeminfo | find "安装日期"
cmd /k systeminfo | find "Install Date"
ZY Player 资源播放器
https://gitee.com/fanych/ZY-Player
https://github.com/cuiocean/ZY-Player/releases
http://zyplayer.fun/
https://www.right.com.cn/forum/thread-4058318-1-1.html
把网盘映射成本地磁盘
2021-4-4 乱云飞 代码 评论(1) 浏览(514) 标签: 映射网盘 挂载网盘 本地硬盘
https://rclone.org/rclone config //第一次运行需要配置
rclone mount %~n0: Z: --cache-dir %temp% --vfs-cache-mode writes
需要搭配 WinFsp 使用。可以代替RAIDRIVE。
MusicTools
https://pan.lanzous.com/b0104asfe
https://pan.lanzoui.com/b0104asfe
5000+直播源
https://iptv-org.github.io/iptv/index.language.m3u
http://www.kodiplayer.cn/movie/2898.html
小狼毫输入法,开源好用无广告。
2021-3-17 乱云飞 电脑 评论(0) 浏览(476) 标签: 小狼毫 输入法 中州韵 中文输入