Skip to content

Instantly share code, notes, and snippets.

View kaixinol's full-sized avatar
😶‍🌫️
Disappearing...

塵埃殘憶 kaixinol

😶‍🌫️
Disappearing...
View GitHub Profile
@kaixinol
kaixinol / embed-gist-dark-theme.css
Last active May 23, 2026 07:08 — forked from just-jeb/embed-gist-dark-theme.css
Dark theme gist embed for blog
body.dark .gist {
.gist-file {
border-color: #555 #555 #444;
}
.gist-data {
border-color: #555;
.pl-s .pl-s1 {
color: #a5c261;
}
}
@kaixinol
kaixinol / fixPointer.ahk
Created May 23, 2026 05:29
fix pointer when using big cursor
#Requires AutoHotkey v2.0
#SingleInstance Force
; --- 配置区域 ---
HideDelay := 400 ; 闲置多久隐藏(单位:毫秒)
ActiveCheck := 100 ; 鼠标活动时的检测频率
HiddenCheck := 200 ; 鼠标隐藏后的检测频率
; ----------------
IsScriptEnabled := false ; 默认关闭状态
@kaixinol
kaixinol / 获取阿里云所有可用模型.js
Created May 1, 2026 15:16
获取阿里云所有可用模型
(async () => {
const pages = [
"https://help.aliyun.com/zh/model-studio/text-generation-model/",
"https://help.aliyun.com/zh/model-studio/compatibility-with-openai-responses-api",
];
async function fetchModels(url) {
const html = await fetch(url).then((r) => r.text());
const doc = new DOMParser().parseFromString(html, "text/html");
@kaixinol
kaixinol / WikipediaEditorDarkThemeFix.user.css
Last active March 4, 2026 17:19
Wikipedia Editor Mode Fix for Dark theme
/* ==UserStyle==
@name Wikipedia Editor Mode Fix for Dark theme
@namespace https://wikipedia.org/
@version 1.5
@description Fixed an issue where Wikipedia's color scheme wasn't adapted to the editor in dark mode. It needs to be used in conjunction with another script to prevent the white screen flickering problem.
@author Kaesinol
@license Unlicense
@match https://*.wikipedia.org/w/index.php?*action=edit*
@match https://*.wikipedia.org/w/index.php?*action=submit*
==/UserStyle== */
@kaixinol
kaixinol / 批量分割QQ表情包.py
Last active October 24, 2025 04:44
批量分割QQ表情包为每120一组
import re
import shutil
from pathlib import Path
def organize_stickers():
"""
整理线条小狗贴纸文件夹,按每120个文件为一组生成新文件夹
"""
current_dir = Path('.')
@kaixinol
kaixinol / base63_with_salt.py
Last active July 19, 2025 06:58
A salted, prefix-perturbed Base63 encoder/decoder using XOR transformation. Supports both random and user-defined salt prefixes. Useful for obfuscation and compact encoding without Base64 padding.
import random
import string
import sys
import time
# Base63字符集:a-zA-Z0-9_ (63个字符)
BASE63_CHARS = string.ascii_letters + string.digits + '_'
SALT_CHARS = string.ascii_letters # 仅英文字母用作扰动前缀
# 映射表
DECODE_MAP = {c: i for i, c in enumerate(BASE63_CHARS)}
@kaixinol
kaixinol / BilibiliCommentImageDownloader.js
Last active April 3, 2026 06:26
Bilibili动态评论区笔记图片批量下载,批量下载B站评论区中的图片(暂时只支持动态和视频下方的评论区)
// ==UserScript==
// @name Bilibili评论区图片批量下载
// @namespace BilibiliCommentImageDownloader
// @version 0.9.3
// @description 批量下载B站评论区中的图片(暂仅支持动态和视频评论区)
// @author Kaesinol
// @license MIT
// @match https://t.bilibili.com/*
// @match https://*.bilibili.com/opus/*
// @match https://www.bilibili.com/video/*
@kaixinol
kaixinol / Bilibili账户已注销修正.js
Last active April 28, 2026 03:10
Bilibili 账户已注销修正
// ==UserScript==
// @name Bilibili 账号已注销修正
// @name:zh-CN Bilibili 账号已注销修正
// @namespace http://tampermonkey.net/
// @version 2.8.1.post
// @license MIT
// @description 修正Bilibili 账户已注销的主页链接,修改为 https://www.bilibili.com/list/$UID
// @description:zh-CN 修正Bilibili 账户已注销的主页链接,修改为 https://www.bilibili.com/list/$UID
// @author Kaesinol
// @match https://*.bilibili.com/*
@kaixinol
kaixinol / 画世界下载原图.js
Last active February 24, 2025 11:35
从画世界网页版(PC端UA)下载原图的脚本
// ==UserScript==
// @name 画世界下载原图
// @name:zh-CN 画世界下载原图
// @namespace 画世界下载原图
// @homepage https://gist.github.com/kaixinol/a7521662de470d427db2eb9d45cd843e/
// @version 0.4
// @license MIT
// @description:zh-cn 从画世界网页版(PC端UA)下载原图的脚本
// @description 从画世界网页版(PC端UA)下载原图的脚本
// @author Kaesinol
@kaixinol
kaixinol / Bilibili图文动态预览图片下载.js
Last active August 6, 2026 06:09
油猴脚本,在B站个人空间的投稿 - 图文界面,提供右键直接下载动态中的图片
// ==UserScript==
// @name Bilibili图文动态预览图片下载
// @namespace BilibiliDynamicPreviewDownload
// @license MIT
// @version 1.6.0
// @description 在B站个人空间的投稿 - 图文界面,提供右键直接下载动态中的图片,并记录已下载的动态ID,改变背景颜色来区别。(新支持新旧动态页面 + 专栏)
// @author Kaesinol
// @match https://space.bilibili.com/*
// @match https://www.bilibili.com/opus/*
// @match https://t.bilibili.com/*