Skip to content

Instantly share code, notes, and snippets.

@peakpot1
peakpot1 / ncm.js
Last active August 12, 2026 19:14
NCM Surge module
/*
脚本引用 https://raw.githubusercontent.com/Keywos/rule/main/script/wy/js/wyres.js
*/
// @timestamp thenkey 2025-02-19 07:37:36
(()=>{
var x=typeof globalThis<"u"?globalThis: {
},
J={
exports: {
@peakpot1
peakpot1 / chatgpt-context-minimizer-ios.sgmodule
Last active July 25, 2026 18:14
Surge module: block Codex telemetry endpoints while preserving core model requests
#!name=ChatGPT Context Minimizer (iOS)
#!desc=Opt-in, fail-open removal of UI display, push-permission, and client timing context from ChatGPT web conversation requests on iOS. Prompt, model, timezone, authentication, Sentinel, device, session, and trace data remain untouched.
#!system=ios
[MITM]
hostname = %APPEND% chatgpt.com
[Script]
chatgpt-context-minimizer-ios = type=http-request, pattern=^https://chatgpt\.com/backend-api/f/conversation(?:/prepare)?(?:\?.*)?$, requires-body=true, max-size=131072, timeout=2, engine=jsc, script-path=https://gist.githubusercontent.com/peakpot1/e9ba4b1a49046a5f7ece988837c07c60/raw/chatgpt-context-minimizer.js, script-update-interval=86400