Search: #去广告

  1. 今日实用 UserScript: 野果短剧跳过片头广告

    今日实用 UserScript: 野果短剧跳过片头广告

    vibe 的
    AI 真是太好用了

    只写了个适配 https://harbor.fgeaqvlf.cc 的
    用镜像站的自己改下就行

    // ==UserScript==
    // @name         野果短剧跳过片头广告
    // @namespace    harbor-userscripts
    // @version      1.0.0
    // @description  自动关闭播放前置广告,支持刷新和站内切集。
    // @match        https://harbor.fgeaqvlf.cc/*
    // @run-at       document-start
    // @grant        none
    // @sandbox      raw
    // @inject-into  page
    // @noframes
    // ==/UserScript==
    
    (() => {
      'use strict';
    
      const closed = new WeakSet();
    
      // shortcut: 依赖当前 Vue 组件名及 VNode 结构,网站重构播放器时需更新。
      function visit(vnode) {
        if (!vnode) return;
    
        const instance = vnode.component;
        if (instance?.type?.__name === 'PrerollAd') {
          if (instance.isMounted && !instance.isUnmounted && !closed.has(instance)) {
            closed.add(instance);
            instance.emit('close');
          }
          return;
        }
    
        visit(instance?.subTree);
        visit(vnode.suspense?.activeBranch);
        if (Array.isArray(vnode.children)) vnode.children.forEach(visit);
      }
    
      function skipAd() {
        if (!location.pathname.startsWith('/drama/video/')) return;
        visit(document.getElementById('__nuxt')?._vnode);
      }
    
      new MutationObserver(skipAd).observe(document, { childList: true, subtree: true });
      skipAd();
    })();


    合集 恰饭推荐 群组 联系推广

    #去广告 #野果短剧 #UserScript #脚本

    • ❤️1
  2. Just the Browser: 去除浏览器内置广告与追踪,回归纯净体验

    Just the Browser: 去除浏览器内置广告与追踪,回归纯净体验

    • 提供跨平台的配置文件,直接禁用 Chrome、Edge、Firefox 的 AI 功能、遥测与赞助内容
    • 一键安装脚本支持 Windows、macOS、Linux,免除手动编辑注册表或配置文件的繁琐
    • 完整文档与示例,帮助企业或个人快速自定义浏览器隐私策略

    https://github.com/corbindavenport/just-the-browser

    #浏览器 #隐私保护 #去广告 #Telemetry #OpenSource #GitHub

  3. 智慧苏州 去广告

    智慧苏州 去广告

    去开屏, 去 banner, 去瀑布流

    🆕 以后仅更新此 📦 远程模块

    将收录到 LoonKissSurge Repository

    #!name=智慧苏州 去广告
    #!desc=去开屏, 去 banner, 去瀑布流
    #!category=xream
    
    [General]
    
    force-http-engine-hosts = %APPEND% newapp2.szsmk.com
    
    [MITM]
    
    hostname = %APPEND%, newapp2.szsmk.com
    
    [Map Local]
    
    ^https?:\/\/newapp2\.szsmk\.com\/app\/config\/queryMainAd data-type=text data='{"message":"操作成功","main_ad_list":[],"code":"000000"}' header='Content-Type:application/json'
    
    ^https?:\/\/newapp2\.szsmk\.com\/app\/config\/(queryCarousel|queryRecommendation)\/ data-type=text data='{"code":"000000","message":"操作成功","list":[]}' header='Content-Type:application/json'


    #Surge #模块 #智慧苏州 #去广告 #广告 #开屏 #开屏广告 #启动 #banner #瀑布流

    • 😁1
  4. 小爱音箱 去广告

    小爱音箱 去广告

    去开屏 去 banner

    🆕 以后仅更新此 📦 远程模块

    将收录到 LoonKissSurge Repository

    #!name=小爱音箱 去广告
    #!desc=去开屏 去 banner
    #!category=xream
    
    [General]
    
    force-http-engine-hosts = %APPEND% info.mina.xiaoaisound.com
    
    [MITM]
    
    hostname = %APPEND%, info.mina.xiaoaisound.com
    
    [Map Local]
    
    ^https?:\/\/info\.mina\.xiaoaisound\.com\/(advertise|payGuide)\/ data-type=text data='{ "code": 0, "message": "Success", "data": [] }' header='Content-Type:application/json'


    #Surge #模块 #小爱音箱 #去广告 #广告 #开屏 #开屏广告 #启动 #banner

    • ❤️5
  5. 催眠大师 去广告之先去个开屏玩玩

    催眠大师 去广告之先去个开屏玩玩

    App

    🆕 以后仅更新此 📦 远程模块

    将收录到 LoonKissSurge Repository

    #!name=催眠大师 去广告
    #!desc=去开屏
    #!category=xream
    
    [General]
    
    force-http-engine-hosts = %APPEND% cmds.omesoft.com
    
    [MITM]
    
    hostname = %APPEND%, cmds.omesoft.com
    
    [Body Rewrite]
    
    http-response ^https?:\/\/cmds\.omesoft\.com\/HypnotistWS\.asmx '<GetADResult>.*?</GetADResult>' '<GetADResult>{"ret":0,"msg":"正常","err_code":0,"data":{"ad":[]}}</GetADResult>'


    #Surge #模块 #催眠大师 #去广告 #广告 #开屏 #开屏广告 #启动

    • ❤️1
    • 👍1
  6. 粉象生活 去广告之先去个开屏玩玩(JQ 版)

    粉象生活 去广告之先去个开屏玩玩(JQ 版)

    🆕 以后仅更新此 📦 远程模块

    将收录到 LoonKissSurge Repository

    #!name=粉象生活 去广告
    #!desc=先去个开屏玩玩(JQ 版)
    #!category=xream
    
    [General]
    
    force-http-engine-hosts = %APPEND% api.fenxianglife.com
    
    [MITM]
    
    hostname = %APPEND%, api.fenxianglife.com
    
    [Body Rewrite]
    http-response-jq ^https?:\/\/api\.fenxianglife\.com\/njia\/index\/popup\/v2 '.data.list = []'


    #Surge #模块 #粉象生活 #去广告 #广告 #开屏 #开屏广告 #启动 #JQ

    • ❤️3
    • 👍2
    • 👏1
    • 💩1
  7. Reddit 过滤推广, 关 NSFW 提示(JQ 版)

    Reddit 过滤推广, 关 NSFW 提示(JQ 版)

    先测测 晚点传文件再同步到 Surge.qingr.moe

    支持 Surge 和 Loon

    1. Surge 需此订阅功能 Body Rewrite 支持使用 JQ 表达式对 JSON 进行操作

    🆕 以后仅更新此 📦 远程模块

    将收录到 LoonKissSurge Repository

    #!name=Reddit 去广告
    #!desc=过滤推广, 关 NSFW 提示(JQ 版)
    #!category=xream
    
    [General]
    
    force-http-engine-hosts = %APPEND% gql.reddit.com, gql-fed.reddit.com
    
    [MITM]
    
    hostname = %APPEND%, gql.reddit.com, gql-fed.reddit.com
    
    [Body Rewrite]
    
    http-response-jq ^https?:\/\/gql(-fed)?\.reddit\.com 'walk( if type == "object" then (if .isNsfw == true then .isNsfw = false else . end) | (if .isNsfwMediaBlocked == true then .isNsfwMediaBlocked = false else . end) | (if .isNsfwContentShown == false then .isNsfwContentShown = true else . end) | (if (.commentsPageAds | type == "array") then (.commentsPageAds = []) else . end) | (if ( (.node | type == "object") and (.node.cells | type == "array") and (.node.cells | any(.__typename? == "AdMetadataCell" or .isAdPost? == true)) ) then empty else . end) | (if (.node | type == "object") and (.node.adPayload | type == "object") then empty else . end) | (if .__typename == "AdPost" then empty else . end) else . end)'


    2. Loon 需最新 TestFlight 版(现在好像会崩溃...等待确认)

    #!name = Reddit 去广告
    #!desc = 过滤推广, 关 NSFW 提示(JQ 版)
    #!openUrl = https://apps.apple.com/app/id1064216828
    #!author = xream[https://github.com/xream]
    #!tag = 去广告
    #!system = 
    #!system_version = 
    #!loon_version = 3.2.4(769)
    #!homepage = https://github.com/luestr/ProxyResource/blob/main/README.md
    #!icon = https://raw.githubusercontent.com/luestr/IconResource/main/App_icon/120px/Reddit.png
    #!date = 2024-10-26 03:35:00
    
    [Rewrite]
    ^https?:\/\/gql(-fed)?\.reddit\.com response-body-json-jq 'walk( if type == "object" then (if .isNsfw == true then .isNsfw = false else . end) | (if .isNsfwMediaBlocked == true then .isNsfwMediaBlocked = false else . end) | (if .isNsfwContentShown == false then .isNsfwContentShown = true else . end) | (if (.commentsPageAds | type == "array") then (.commentsPageAds = []) else . end) | (if ( (.node | type == "object") and (.node.cells | type == "array") and (.node.cells | any(.__typename? == "AdMetadataCell" or .isAdPost? == true)) ) then empty else . end) | (if (.node | type == "object") and (.node.adPayload | type == "object") then empty else . end) | (if .__typename == "AdPost" then empty else . end) else . end)'
    
    [MitM]
    hostname = gql.reddit.com, gql-fed.reddit.com


    #Surge #Loon #模块 #Reddit #去广告 #广告 #JQ

    • 👍4
    • ❤️2
    • 🤩1
  8. #音乐 #Spotify #脚本 #去广告

    #音乐 #Spotify #脚本 #去广告

    SpotX: Spotify 去广告

    Linux 和 macOS 版

    Windows 版

    - 屏蔽所有音频、横幅和视频广告
    - 阻止日志记录
    - 启用开发者模式
    - 启用实验性功能
    - 在主屏幕上隐藏有声读物、剧集和播客
    - 阻止自动更新(macOS)
    - 安装支持的桌面客户端版本(macOS)
    - 在基于APT的发行版上安装最新的桌面客户端(Linux)
    - 支持所有Linux发行版以及OS X/macOS 10.11及以上版本。

    可配合 歌词 LyricsX

    相关: 开源 跨平台 Spotify 客户端 Spotube


    资源合集导航

    • ❤️14
    • 👏4
  9. #Surge #去广告 #懒人包

    #Surge #去广告 #懒人包

    配合 ScriptHub

    分流

    # > 分流修正
    RULE-SET,http://script.hub/file/_start_/https://raw.githubusercontent.com/fmz200/wool_scripts/main/QuantumultX/filter/fenliuxiuzheng.list/_end_/qx_fmz200_fenliuxiuzheng.list?type=rule-set&target=surge-rule-set&x=cdn.jsdelivr.net,🇨🇳 国内
    
    # > RuCu6
    RULE-SET,http://script.hub/file/_start_/https://raw.githubusercontent.com/RuCu6/QuanX/main/Rules/MyBlockAds.list/_end_/qx_RuCu6_MyBlockAds.list?type=rule-set&target=surge-rule-set&x=mall.bilibili.com&del=true,🚫 拦截
    
    # > fmz200 分流去广告
    RULE-SET,http://script.hub/file/_start_/https://raw.githubusercontent.com/fmz200/wool_scripts/main/QuantumultX/filter/fenliu.list/_end_/qx_fmz200_fenliu.list?type=rule-set&target=surge-rule-set&x=jpush%2Bt.uc.cn%2Bapi.taobao.com%2Bai.m.taobao.com,🚫 拦截
    
    
    模块
    懒得弄了 打包发上来(见本条频道消息的评论区) 配合 ScriptHub 和 相关生态: Surge 模块工具

    阅读并按需使用:

    关于 Surge 的补充说明(MitM SNI 相关)

    • ❤️8
  10. #Surge #模块 #Reddit #去广告 #广告

    #Surge #模块 #Reddit #去广告 #广告

    Reddit 过滤推广, 关 NSFW 提示(非暴力替换版)

    目前 Loon 纯 TUN 模式使用该脚本会导致各种加载缓慢/失败 请先关闭纯 TUN 模式(现在好了

    小脚本小模块就不放 GitHub 了

    ① reddit.sgmodule
    #!name=Reddit
    #!desc=过滤推广, 关 NSFW 提示 @xream

    [General]

    force-http-engine-hosts = %APPEND% gql.reddit.com, gql-fed.reddit.com

    [Script]
    Reddit = type=http-response,pattern=^https?:\/\/gql(-fed)?\.reddit\.com,requires-body=1,max-size=0,timeout=30,script-path=reddit.js
    [MITM]
    hostname = %APPEND%, gql.reddit.com, gql-fed.reddit.com
    ② reddit.js

    let body;
    try {
      body = JSON.parse($response.body.replace(/"isNsfw":true/g, '"isNsfw":false'))
      if (body.data?.children?.commentsPageAds) {
        body.data.children.commentsPageAds = []
      } 
      for (const [k, v] of Object.entries(body.data)) {
        if (v?.elements?.edges) {
          body.data[k].elements.edges = v.elements.edges.filter(
            i =>
              !['AdPost'].includes(i?.node?.__typename) &&
              !i?.node?.cells?.some(j => j?.__typename === 'AdMetadataCell') &&
              !i?.node?.adPayload
          );
        }
      }
    
      
    } catch (e) {
      console.log(e);
    } finally {
      $done(body ? { body: JSON.stringify(body) } : {});
    }


    相关: 如何使用 Gist 创建私有脚本/模块

    另一个版本:
    暴力替换版(有点 bug)

    • ❤️4
  11. #Surge #模块 #Reddit #去广告 #广告

    #Surge #模块 #Reddit #去广告 #广告

    Reddit 过滤推广, 关 NSFW 提示(暴力替换版 有点 bug)

    目前 Loon 纯 TUN 模式使用该脚本会导致各种加载缓慢/失败 请先关闭纯 TUN 模式

    小脚本小模块就不放 GitHub 了

    ① reddit.sgmodule
    #!name=Reddit
    #!desc=过滤推广, 关 NSFW 提示 @xream

    [General]

    force-http-engine-hosts = %APPEND% gql.reddit.com, gql-fed.reddit.com

    [Script]
    Reddit = type=http-response,pattern=^https?:\/\/gql(-fed)?\.reddit\.com,requires-body=1,max-size=0,timeout=30,script-path=reddit.js
    [MITM]
    hostname = %APPEND%, gql.reddit.com, gql-fed.reddit.com
    ② reddit.js

    let body;
    try {
    if (/"(isNsfw|AdPost|AdMetadataCell|adPayload)"/.test($response.body)) {
    body = $response.body.replace(
    /(")(isNsfw|AdPost|AdMetadataCell|adPayload)(")/gi,
    '$1_$2$3'
    );
    }
    } catch (e) {
    console.log(e);
    } finally {
    $done(body ? { body } : {});
    }

    相关: 如何使用 Gist 创建私有脚本/模块
    另一个版本:
    非暴力替换版

    • 🤩3