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 |
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
from PIL import Image | |
import sys | |
import os | |
photo_input_path = r'.' | |
photo_save_path = r'./new' | |
photo_list = os.listdir(photo_input_path) | |
photo_list = [os.path.join(photo_input_path,i) for i in photo_list] | |
photo_num=len(photo_list) | |
zfill_n=len(str(photo_num)) + 1 |
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 | |
import sys | |
with Image.open(sys.argv[1]) as im: | |
im.save(input("目标文件名(含后缀): ")) |
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
@echo off | |
if [%1]==[] ( | |
echo ========= 使用说明========= | |
echo 请将文件拖放到该批处理上。 | |
echo 按任意键退出... | |
pause>nul | |
exit /B 1 | |
) else ( | |
del /q DiskPart_compact_temp >nul 2>nul |
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
@echo off | |
%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit | |
net start w32time | |
w32tm /config /manualpeerlist:"ntp.ntsc.ac.cn,0x1 cn.ntp.org.cn,0x2 time.pool.aliyun.com,0x3 cn.pool.ntp.org,0x4 time.windows.com,0x5" /syncfromflags:manual /update | |
w32tm /resync /rediscover | |
net stop w32time | |
pause |
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 Bilibili专栏原图链接提取 | |
// @namespace https://github.com/hui-shao | |
// @version 0.2 | |
// @description PC端B站专栏图片默认是经压缩过的webp。点击悬浮按钮,即可获取哔哩哔哩专栏中所有原图的直链,然后你可以使用其它工具批量下载原图。 | |
// @author Hui-Shao | |
// @license GPLv3 | |
// @match https://www.bilibili.com/read/cv* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=bilibili.com | |
// @grant none |
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 MOOC互评辅助 | |
// @namespace https://github.com/hui-shao | |
// @version 0.2 | |
// @description 一键填充了属于是! | |
// @author Hui-Shao | |
// @license GPLv3 | |
// @match *://www.icourse163.org/spoc/learn/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=icourse163.org | |
// @grant none |
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 雨课堂显示PPT-去掉"当前页面有动画"提示 | |
// @namespace https://github.com/hui-shao | |
// @homepage https://greasyfork.org/zh-CN/scripts/447478 | |
// @homepageURL https://greasyfork.org/zh-CN/scripts/447478 | |
// @license GPLv3 | |
// @version 0.3 | |
// @description 自动移除"当前页面有动画,请听老师讲解"的遮罩(在雨课堂上课界面右上角也添加了按钮,也可手动点击) | |
// @author hui-shao | |
// @match https://*.yuketang.cn/lesson/fullscreen/v* |
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
@echo off | |
title IPv4 / IPv6 优先级选择工具 | |
mode con lines=12 cols=48 | |
color 8f | |
REM ________________________________________________________________ | |
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system" | |
if '%errorlevel%' NEQ '0' ( |
NewerOlder