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 扬大门户校园网显示优化 | |
// @namespace https://github.com/luoboQAQ | |
// @version 0.2.1 | |
// @description 将分钟转换为小时 | |
// @author luoboQAQ | |
// @match https://i.yzu.edu.cn/Student | |
// @icon https://i.yzu.edu.cn/favicon.ico | |
// @grant none | |
// ==/UserScript== |
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
{ | |
"CPP-default":{ | |
"prefix":"d1", | |
"body": [ | |
"#include <iostream>\n", | |
"int main()", | |
"{", | |
"\t$0\n", | |
"\tsystem(\"pause\");", | |
"\treturn 0;", |
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
import ipaddress | |
import os | |
import requests | |
def find_cidr(ip, cidr_list): | |
for cidr in cidr_list: | |
if ipaddress.ip_address(ip) in ipaddress.ip_network(cidr): | |
return cidr | |
return 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
# Powered by luoboQAQ | |
log: | |
level: info | |
# file: ./log.txt | |
plugins: | |
# 缓存插件 | |
- tag: cache | |
type: cache | |
args: |
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
import requests | |
import sys | |
def formatIp(ip): | |
return ip.replace('/32', '').replace('/128', '').replace('\'', '') | |
IS_GET_IPV4 = True | |
IS_GET_IPV6 = True | |
FILE_PATH = 'gcore_mix.txt' | |
r = requests.get('https://api.gcdn.co/cdn/public-ip-list') |
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
{ | |
"request": [ | |
{ | |
"enable": false, | |
"name": "Sourceforge下载 >> 镜像站点", | |
"ruleType": "redirect", | |
"matchType": "regexp", | |
"pattern": "^https?:\\/\\/sourceforge\\.net\\/projects\\/(((\\w)\\w).*)\\/files\\/(.*)\\/download", | |
"exclude": "", | |
"isFunction": false, |
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
[ | |
{ | |
"inboundTag": [], | |
"outboundTag": "block", | |
"domain": [ | |
"geosite:category-ads-all" | |
], | |
"enabled": true | |
}, | |
{ |
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
/* ==UserStyle== | |
@name BGM黑白名单 | |
@namespace https://github.com/luoboQAQ | |
@version 24.1.16 | |
@description 用于Bangumi网站的人物高亮显示 | |
@author luoboQAQ | |
@var color blackUser "黑名单staff颜色" red | |
@var color attentionUser "关注staff颜色" green | |
@var color attentionVoice "关注声优颜色" blue | |
==/UserStyle== */ |