Skip to content

Instantly share code, notes, and snippets.

View hui-shao's full-sized avatar

Hui-Shao hui-shao

View GitHub Profile
@hui-shao
hui-shao / img_color_inv.py
Created September 17, 2023 12:44
图像反色。拖放触发。
from PIL import Image, ImageChops
import sys
def invert_color(fname):
im = Image.open(fname)
im_inverted = ImageChops.invert(im)
im_inverted.save(fname.replace('.', '_inverted.'))
return im_inverted
// ==UserScript==
// @name Xingtan Download Edited Torrents
// @namespace https://github.com/hui-shao
// @homepage https://greasyfork.org/zh-CN/scripts/484514
// @version 0.1
// @description 个人中心获取已编辑的种子的下载链接
// @license GPLv3
// @author hui-shao
// @match https://xingtan.one/userdetails.php?*
// @icon https://xingtan.one/favicon.ico