移除广告内嵌脚本

这是一个由AI生成的脚本,通过关键词匹配来移除网页中的内嵌广告脚本。不能保证100%成功,可以在脚本菜单中管理排除的网页和关键词,脚本已经内置一些常见的关键词,若还有广告,可以自行添加Math.random,platform,navigator,new Function,new Date()尝试去除。

Install this script?
Author's suggested script

You may also like 加多重buff的广告拦截脚本.

Install this script

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Author
Aloazny1122
Daily installs
2
Total installs
2,998
Ratings
11 0 0
Version
1.5.2.1
Created
2024-12-22
Updated
2025-10-01
Size
19.1 KB
License
MIT
Applies to
All sites

说明


搭配浏览器广告拦截

  • 脚本只是移除内嵌的广告脚本,其他URLCss类型的广告仍需搭配浏览器的拦截功能。

推荐Adblock规则订阅

名称 GIthub链接 镜像链接
Abp merge 链接 链接
混合规则精简版 链接 链接

脚本管理器适配情况

※特殊情况

  • [✔] M浏览器(旧版) (无脚本菜单),旧版不支持GMAPI,需安装1.4.9.1
  • [✔] ALook若失效,则可能是不支持GMAPI,需安装1.4.9.1
  • [✔] B仔浏览器若失效,则可能是不支持GMAPI,需安装1.4.9.1
  • [✔] ChromeXt(xposed模块),需要脚本菜单可以用1.4.9.1.2,不需要可以直接用1.4.9.1比X浏览器要好,除了极个别网站不支持,大部分都能第一时间移除,
  • [?] X浏览器(不稳定),用1.4.9.3必定失效,可以退回1.4.9.1
  • [?] Rains浏览器 ⚒️需要手动修改脚本执行时间→点击菜单脚本长按移除广告内嵌脚本修改选择运行位置加载前更新,但是有可能会会丢失移除脚本日志脚本菜单

其他脚本

  • ALook可以用这个脚本方便安装。
  • M浏览器/chromext/ALook需要脚本菜单的,可以安装这个脚本

脚本菜单功能

关键词

  • 可由查看网页源码,或者用开发者工具调试,查看网页的内嵌script样式的内嵌脚本,再从中提取关键词。
  • 也可以用脚本菜单里的网页内嵌脚本查看
  • 脚本已经内置一些常见的关键词,若还有广告,可以自行添加Math.randomplatformnavigatornew Functionnew Date()尝试去除。

排除和拦截当前网页

  • 这就没什么好说的吧,刷新生效。

编辑关键词

  • 你可以选择在脚本菜单里里编辑,或者添加关键词。
  • 重置关键词可以恢复默认规则。

移除脚本日志

  • 查看匹配的关键词和移除的内嵌脚本

网页内嵌脚本查看

  • 没什么好说的,方便查看内嵌的脚本,添加关键词。