这是一个用来遍历目录下所有视频类文件,并将其统一转换为mp4格式的nodejs脚本,支持自动跳过已处理文件,支持显示进度信息
文件名和目录结构不会发生变化,如果转码后的视频体积相比原视频更小,原始文件将被删除,否则将保留原始文件
- HandBrakeCLI.exe 用于视频转码
- ffprobe.exe 用于查看视频格式
- TagLibSharp.dll 用于标记已处理状态
export default { | |
async fetch(request, env) { | |
const url = new URL(request.url); | |
if (url.pathname.startsWith('/')) { | |
url.hostname = env.PROXY_URL; | |
const new_request = new Request(url, request); | |
return fetch(new_request); | |
} | |
return env.ASSETS.fetch(request); | |
}, |
这是一个用来遍历目录下所有视频类文件,并将其统一转换为mp4格式的nodejs脚本,支持自动跳过已处理文件,支持显示进度信息
文件名和目录结构不会发生变化,如果转码后的视频体积相比原视频更小,原始文件将被删除,否则将保留原始文件
{ | |
"⤡": "⤡", | |
"⊞": "⊞", | |
"×": "×", | |
"❮": "❮", | |
"❯": "❯", | |
"Loading...": "加载中...", | |
"Waiting...": "等待中...", | |
"In queue...": "队列中...", | |
"@@/^Waiting (.*)$/": "等待中 $1", |
// ==UserScript== | |
// @name Bilibili直播SC过滤 | |
// @namespace https://github.com/journey-ad | |
// @version 0.3.2 | |
// @description 通过UID、关键词或正则表达式过滤哔站直播间的SC | |
// @author journey-ad | |
// @icon https://www.google.com/s2/favicons?domain=bilibili.com | |
// @include /https?:\/\/live\.bilibili\.com\/(blanc\/)?\d+\??.*/ | |
// @require https://cdn.jsdelivr.net/npm/vue@2 | |
// @require https://cdn.jsdelivr.net/npm/jquery@3.2.1/dist/jquery.min.js |
// ==UserScript== | |
// @name #相亲相爱一嘉人# | |
// @description 在哔站右下角添加嘉然小姐的live2d模型 | |
// @version 1.0.1 | |
// @namespace https://github.com/journey-ad | |
// @author journey-ad | |
// @include /^https:\/\/(www|live|space|t)\.bilibili\.com\/.*$/ | |
// @icon https://www.google.com/s2/favicons?domain=bilibili.com | |
// @license GPL v2 | |
// @run-at document-end |
// ==UserScript== | |
// @name Pixiv快速隐私收藏 | |
// @description 右键点任意位置的收藏按钮可以快速隐私收藏作品 | |
// @namespace https://github.com/journey-ad | |
// @version 1.0.1 | |
// @author journey-ad | |
// @license WTFPL | |
// @match *://www.pixiv.net/* | |
// @icon https://www.google.com/s2/favicons?domain=pixiv.net | |
// @require https://cdn.jsdelivr.net/npm/jquery@3.2.1/dist/jquery.min.js |
function luxun | |
set msgList (cat ~/motd.txt) | |
set pick (random 1 (count $msgList)) | |
set pick $msgList[$pick] | |
printf (set_color F90)$pick | |
end |
🌞 早晨 43 commits ███▍░░░░░░░░░░░░░░░░░░░░░ 13.7% | |
🌆 日间 88 commits ███████░░░░░░░░░░░░░░░░░░ 28.0% | |
🌃 晚上 88 commits ███████░░░░░░░░░░░░░░░░░░ 28.0% | |
🌙 深夜 95 commits ███████▌░░░░░░░░░░░░░░░░░ 30.3% |
💻 Wallpaper Engine 🕘 1 hrs 25 mins | |
🎮 Call of Duty® 🕘 1 hrs 44 mins | |
🎮 SteamVR 🕘 4 hrs 35 mins | |
🎮 Balatro 🕘 0 hrs 21 mins | |
🎮 DeoVR Video Player 🕘 0 hrs 10 mins |
TypeScript 🕓 8h36m ████████████▍░░░░░░░░░░░░░░░ 44.5% | |
Vue.js 🕓 5h49m ████████▍░░░░░░░░░░░░░░░░░░░ 30.1% | |
JavaScript 🕓 4h1m █████▊░░░░░░░░░░░░░░░░░░░░░░ 20.8% | |
JSON 🕓 29m ▋░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.5% | |
Other 🕓 19m ▍░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.7% |