Skip to content

Instantly share code, notes, and snippets.

View yikZero's full-sized avatar
😁

yikZero yikZero

😁
View GitHub Profile
@yikZero
yikZero / RoModule.sgmodule
Last active June 17, 2023 23:18
自用surgeModule
#!name=yikZero Surge Script Module
#!desc= Mac iOS Script 模块配置
[Script]
奈飞评分1 = type=http-request,script-path=https://raw.githubusercontent.com/yichahucha/surge/master/nf_rating.js,pattern="^https?://ios\.prod\.ftl\.netflix\.com/iosui/user/.+path=%5B%22videos%22%2C%\d+%22%2C%22summary%22%5D",requires-body=1
奈飞评分2 = type=http-response,script-path=https://raw.githubusercontent.com/yichahucha/surge/master/nf_rating.js,pattern="^https?://ios\.prod\.ftl\.netflix\.com/iosui/user/.+path=%5B%22videos%22%2C%\d+%22%2C%22summary%22%5D",requires-body=1
单集评分 = type=http-response,script-path=https://raw.githubusercontent.com/yichahucha/surge/master/nf_rating_season.js,pattern="^https?://ios\.prod\.ftl\.netflix\.com/iosui/warmer/.+type=show-ath",requires-body=1,max-size=0
Hypermatic破解 = type=http-response,pattern=^https:\/\/accounts\.hypermatic\.com\/api\/(check|update)\?,script-path=https://gist.githubusercontent.com/yikZero/c215a7ae081841c0a4c4d1e5b5bffdfa/raw/55f4164606737acfd84b1fc0d68ef7d5ef2f208a/Hypermatic_hack.js,s
@yikZero
yikZero / Hypermatic_hack.js
Last active June 17, 2023 10:49
Hypermatic破解
let url = $request.url;
let obj = JSON.parse($response.body);
if (obj.hasOwnProperty('count')) {
obj['count'] = 9999;
} else {
console.log('Response body does not have a count property');
}
if (obj.hasOwnProperty('message')) {
@yikZero
yikZero / Turkey.list
Created June 23, 2023 23:40
精神土耳其人
# Oldubil
IP-CIDR,176.88.66.0/24,no-resolve
DOMAIN-SUFFIX,colendilabs.com
DOMAIN-SUFFIX,dengage.com
DOMAIN-SUFFIX,oldubil.com.tr
DOMAIN-KEYWORD,oldubil
USER-AGENT,Oldubil*
#-------
@yikZero
yikZero / blur-placehold.ts
Created March 25, 2024 09:11
Simplified version of plaiceholder, just support base64 and metadata
import sharp, { type Metadata, type Sharp } from 'sharp';
type SharpFormatOptions = Parameters<Sharp['toFormat']>;
type SharpModulateOptions = NonNullable<Parameters<Sharp['modulate']>[0]>;
export type GetPlaceholderSrc = Buffer;
export interface GetPlaceholderOptions extends SharpModulateOptions {
size?: number;
format?: SharpFormatOptions;