This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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 |
OlderNewer