#!name=小红书去广告 #!desc=过滤信息流推广,移除图片及视频水印,如有异常,请先清除缓存再尝试。 #!author=RuCu6[https://github.com/RuCu6], fmz200[https://github.com/fmz200] #!homepage=https://hub.kelee.one #!category=去广告 #!date=2026-10-02 13:57:49 #!icon=https://raw.githubusercontent.com/luestr/IconResource/main/App_icon/120px/RedPaper.png # 来源(Loon原版): https://kelee.one/Tool/Loon/Lpx/RedPaper_remove_ads.lpx [Rule] AND,((PROTOCOL,QUIC),(DOMAIN-SUFFIX,xiaohongshu.com)),REJECT [Script] 小红书_移除图片和实况照片水印 = type=http-response,script-path=https://kelee.one/Resource/JavaScript/RedPaper/RedPaper_remove_ads.js,pattern="^https:\/\/edith\.xiaohongshu\.com\/api\/sns\/v1\/note\/(?:imagefeed|live_photo\/save)",requires-body=1 小红书_移除整体配置 ui = type=http-response,script-path=https://kelee.one/Resource/JavaScript/RedPaper/RedPaper_remove_ads.js,pattern="^https:\/\/edith\.xiaohongshu\.com\/api\/sns\/v1\/system\/service\/ui\/config\?",requires-body=1 小红书_移除开屏广告 config = type=http-response,script-path=https://kelee.one/Resource/JavaScript/RedPaper/RedPaper_remove_ads.js,pattern="^https:\/\/edith\.xiaohongshu\.com\/api\/sns\/v1\/system_service\/config\?",requires-body=1 小红书_移除开屏广告 splash_config = type=http-response,script-path=https://kelee.one/Resource/JavaScript/RedPaper/RedPaper_remove_ads.js,pattern="^https:\/\/edith\.xiaohongshu\.com\/api\/sns\/v2\/system_service\/splash_config",requires-body=1 小红书_移除详情页小部件、关注页感兴趣的人 = type=http-response,script-path=https://kelee.one/Resource/JavaScript/RedPaper/RedPaper_remove_ads.js,pattern="^https:\/\/edith\.xiaohongshu\.com\/api\/sns\/v2\/(?:note\/widgets|user\/followings\/followfeed)",requires-body=1 小红书_移除信息流广告 = type=http-response,script-path=https://kelee.one/Resource/JavaScript/RedPaper/RedPaper_remove_ads.js,pattern="^https:\/\/edith\.xiaohongshu\.com\/api\/sns\/v4\/followfeed\?",requires-body=1 小红书_移除详情页感兴趣的人 = type=http-response,script-path=https://kelee.one/Resource/JavaScript/RedPaper/RedPaper_remove_ads.js,pattern="^https:\/\/edith\.xiaohongshu\.com\/api\/sns\/v5\/recommend\/user\/follow_recommend\?",requires-body=1 小红书_移除评论区实况照片水印 = type=http-response,script-path=https://kelee.one/Resource/JavaScript/RedPaper/RedPaper_remove_ads.js,pattern="^https:\/\/edith\.xiaohongshu\.com\/api\/sns\/(?:v1\/interaction\/comment\/video\/download|v5\/note\/comment\/list)",requires-body=1 小红书_移除图片和视频水印 = type=http-response,script-path=https://kelee.one/Resource/JavaScript/RedPaper/RedPaper_remove_ads.js,pattern="^https:\/\/edith\.xiaohongshu\.com\/api\/sns\/(?:v2\/note\/feed|v3\/note\/videofeed)",requires-body=1 小红书_移除信息流广告-2 = type=http-response,script-path=https://kelee.one/Resource/JavaScript/RedPaper/RedPaper_remove_ads.js,pattern="^https:\/\/(?:edith|rec)\.xiaohongshu\.com\/api\/sns\/v6\/homefeed\?",requires-body=1 小红书_移除搜索页广告 = type=http-response,script-path=https://kelee.one/Resource/JavaScript/RedPaper/RedPaper_remove_ads.js,pattern="^https:\/\/(?:edith|so)\.xiaohongshu\.com\/api\/sns\/v10\/search\/notes\?",requires-body=1 小红书_移除视频水印 = type=http-response,script-path=https://kelee.one/Resource/JavaScript/RedPaper/RedPaper_remove_ads.js,pattern="^https:\/\/(?:edith|rec|www)\.xiaohongshu\.com\/api\/sns\/(?:v4\/note\/videofeed|v10\/note\/video\/save)",requires-body=1 # ===== 补充脚本(对应Loon版json.replace声明) ===== # 搜索页横幅置空 小红书_搜索横幅 = type=http-response,script-path=https://iu.c-hiang.cn/Software/Surge/Scripts/json_replace.js,pattern="^https:\/\/edith\.xiaohongshu\.com\/api\/sns\/v1\/search\/banner_list$",requires-body=1,argument="data={}" # 搜索热榜条目置空 小红书_搜索热榜 = type=http-response,script-path=https://iu.c-hiang.cn/Software/Surge/Scripts/json_replace.js,pattern="^https:\/\/edith\.xiaohongshu\.com\/api\/sns\/v1\/search\/hot_list$",requires-body=1,argument="data.items=[]" # 搜索提示词置空 小红书_搜索提示 = type=http-response,script-path=https://iu.c-hiang.cn/Software/Surge/Scripts/json_replace.js,pattern="^https:\/\/edith\.xiaohongshu\.com\/api\/sns\/v4\/search\/hint",requires-body=1,argument="data.hint_words=[]" # 搜索趋势词置空 小红书_搜索趋势 = type=http-response,script-path=https://iu.c-hiang.cn/Software/Surge/Scripts/json_replace.js,pattern="^https:\/\/edith\.xiaohongshu\.com\/api\/sns\/v4\/search\/trending\?",requires-body=1,argument="data.queries=[]|data.hint_word={}" # 以下条目为 Loon 版 reject_dict/reject_img 声明的等价实现(Surge URL Rewrite 仅支持 reject) 小红书_拦截图1 = type=http-request,script-path=https://iu.c-hiang.cn/Software/Surge/Scripts/reject_img.js,pattern="^https:\/\/ci\.xiaohongshu\.com\/system_config\/watermark" 小红书_拦截1 = type=http-request,script-path=https://iu.c-hiang.cn/Software/Surge/Scripts/reject_json.js,pattern="^https:\/\/edith\.xiaohongshu\.com\/api\/sns\/v1\/surprisebox\/(?:get_style|open|submit_action)" 小红书_拦截2 = type=http-request,script-path=https://iu.c-hiang.cn/Software/Surge/Scripts/reject_json.js,pattern="^https:\/\/www\.xiaohongshu\.com\/api\/marketing\/box\/trigger\?" 小红书_拦截3 = type=http-request,script-path=https://iu.c-hiang.cn/Software/Surge/Scripts/reject_json.js,pattern="^https:\/\/edith\.xiaohongshu\.com\/api\/sns\/(?:v2\/guide\/user_banner|v3\/note\/guide)" 小红书_拦截4 = type=http-request,script-path=https://iu.c-hiang.cn/Software/Surge/Scripts/reject_json.js,pattern="^https:\/\/www\.xiaohongshu\.com\/api\/sns\/(?:v1\/ads\/resource|v2\/hey\/\w+\/hey_gallery)" [MITM] hostname = %APPEND% ci.xiaohongshu.com,edith.xiaohongshu.com,rec.xiaohongshu.com,so.xiaohongshu.com,www.xiaohongshu.com