Skip to content

Instantly share code, notes, and snippets.

@Bowser1704
Last active July 8, 2024 08:45
Show Gist options
  • Save Bowser1704/24f3d24946eba90c8600bf3b8dc18f0b to your computer and use it in GitHub Desktop.
Save Bowser1704/24f3d24946eba90c8600bf3b8dc18f0b to your computer and use it in GitHub Desktop.
xiaohongshu.sgmodule
#!name=小红书去广告
#!desc=去除广告和水印
#!system=ios
# 修改自:https://raw.githubusercontent.com/ddgksf2013/Rewrite/master/AdBlock/XiaoHongShu.conf
[URL Rewrite]
# > 小红书_通用广告请求@ddgksf2013
^https?:\/\/www\.xiaohongshu\.com\/api\/sns\/v\d\/(tag\/)?ads - reject
# > 小红书_隐私屏蔽@ddgksf2013
^https?:\/\/referee\.xiaohongshu\.com\/v\d\/stateReport - reject
# > 小红书_Switches@ddgksf2013
^https?:\/\/pages\.xiaohongshu\.com\/data\/native\/matrix_switches - reject
# > 小红书_青少年请求@ddgksf2013
^https?:\/\/edith\.xiaohongshu\.com\/api\/sns\/v\d\/user\/teenager\/status - reject
# > 小红书_启动引导@ddgksf2013
^https?:\/\/edith\.xiaohongshu\.com\/api\/sns\/v\d\/guide\/home_guide - reject
[Script]
# > 小红书_搜索结果推荐广告@ddgksf2013
小红书_搜索结果推荐广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/edith\.xiaohongshu\.com\/api\/sns\/v\d+\/search\/notes\?,script-path=https://github.com/ddgksf2013/Scripts/raw/master/redbook_json.js
# > 小红书_视频播放页商品推广@ddgksf2013
小红书_视频播放页商品推广 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/edith\.xiaohongshu\.com\/api\/sns\/v\d\/note\/widgets,script-path=https://github.com/ddgksf2013/Scripts/raw/master/redbook_json.js
# > 小红书_短视频流去水印+强制开启保存功能@ddgksf2013
小红书_短视频流去水印+强制开启保存功能 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/edith\.xiaohongshu\.com\/api\/sns\/v\d\/note\/redtube\?,script-path=https://github.com/ddgksf2013/Scripts/raw/master/redbook_json.js
# > 小红书_信息流视频去水印+强制开启保存功能@ddgksf2013
小红书_信息流视频去水印+强制开启保存功能 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/edith\.xiaohongshu\.com\/api\/sns\/v\d\/note\/videofeed\?,script-path=https://github.com/ddgksf2013/Scripts/raw/master/redbook_json.js
# > 小红书_信息流图片去水印@ddgksf2013
小红书_信息流图片去水印 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/edith\.xiaohongshu\.com\/api\/sns\/v\d\/note\/feed\?,script-path=https://github.com/ddgksf2013/Scripts/raw/master/redbook_json.js
# > 小红书_信息流图片[部分用户是下面请求]去水印@ddgksf2013
小红书_信息流图片[部分用户是下面请求]去水印 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/edith\.xiaohongshu\.com\/api\/sns\/v\d\/note\/imagefeed,script-path=https://github.com/ddgksf2013/Scripts/raw/master/redbook_json.js
# > 小红书_开屏广告@ddgksf2013
小红书_开屏广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/edith\.xiaohongshu\.com\/api\/sns\/v\d\/system_service\/splash_config,script-path=https://github.com/ddgksf2013/Scripts/raw/master/redbook_json.js
# > 小红书_首页瀑布流@ddgksf2013
小红书_首页瀑布流 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/edith\.xiaohongshu\.com\/api\/sns\/v\d\/homefeed\?,script-path=https://github.com/ddgksf2013/Scripts/raw/master/redbook_json.js
# > 小红书_启动处理@ddgksf2013
小红书_启动处理 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/edith\.xiaohongshu\.com\/api\/sns\/v\d\/system_service\/config\?,script-path=https://github.com/ddgksf2013/Scripts/raw/master/redbook_json.js
# > 小红书_热搜发现@ddgksf2013
# 小红书_热搜发现 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/edith\.xiaohongshu\.com\/api\/sns\/v\d\/search\/hot_list,script-path=https://github.com/ddgksf2013/Scripts/raw/master/redbook_json.js
# > 小红书_默认填词@ddgksf2013
# 小红书_默认填词 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/edith\.xiaohongshu\.com\/api\/sns\/v\d\/search\/hint,script-path=https://github.com/ddgksf2013/Scripts/raw/master/redbook_json.js
# > 小红书_去除购物@ddgksf2013
小红书_去除购物 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/edith\.xiaohongshu\.com\/api\/sns\/v\d\/homefeed\/categories,script-path=https://github.com/ddgksf2013/Scripts/raw/master/redbook_json.js
# > 小红书_猜你想搜@ddgksf2013
# 小红书_猜你想搜 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/edith\.xiaohongshu\.com\/api\/sns\/v\d\/search\/trending,script-path=https://github.com/ddgksf2013/Scripts/raw/master/redbook_json.js
[MITM]
hostname = %APPEND% edith.xiaohongshu.com, www.xiaohongshu.com, pages.xiaohongshu.com, referee.xiaohongshu.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment