Skip to content

Instantly share code, notes, and snippets.

View journey-ad's full-sized avatar
🍭
关注嘉然,顿顿解馋

Jad journey-ad

🍭
关注嘉然,顿顿解馋
View GitHub Profile
@journey-ad
journey-ad / _worker.js
Created January 13, 2024 14:12
cf-pages-proxy
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);
},
@journey-ad
journey-ad / _README.md
Last active June 16, 2023 13:59
零散视频批量转码压缩

这是一个用来遍历目录下所有视频类文件,并将其统一转换为mp4格式的nodejs脚本,支持自动跳过已处理文件,支持显示进度信息
文件名和目录结构不会发生变化,如果转码后的视频体积相比原视频更小,原始文件将被删除,否则将保留原始文件

依赖

{
"⤡": "⤡",
"⊞": "⊞",
"×": "×",
"❮": "❮",
"❯": "❯",
"Loading...": "加载中...",
"Waiting...": "等待中...",
"In queue...": "队列中...",
"@@/^Waiting (.*)$/": "等待中 $1",
@journey-ad
journey-ad / 0_sc-block.user.js
Last active February 26, 2024 07:29
bilibili直播SC过滤
// ==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
@journey-ad
journey-ad / oh-my-diana.user.js
Last active February 26, 2024 07:29
在哔站右下角添加嘉然小姐的live2d模型
// ==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
@journey-ad
journey-ad / pixiv-quick-fav.user.js
Last active February 26, 2024 07:29
Pixiv快速隐私收藏
// ==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
@journey-ad
journey-ad / luxun.fish
Created September 10, 2020 03:28
fish shell 可用的鲁迅语录 function
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%