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
#!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 |
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
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')) { |
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
# 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* | |
#------- |
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 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; |