halo-sigs / halo-sigs/plugin-umami

umami.js被广告拦截插件屏蔽的问题

Open
#9 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
11
Forks
7
PR merge metrics
No merged PRs in 30d

Description

最近才注意到浏览器装了广告拦截插件,控制台出现报错,
经查询了解屏蔽插件是通过检测脚本文件名来拦截插件的,因此需要修改脚本名称。

后来修改脚本名称,**https://umami.域名.com/修改的名称.js**
发现不起作用,看了插件代码这一段,原来自动把后缀加上
就成了**https://umami.域名.com/修改的名称.js/umami.js**
![image](https://user-images.githubusercontent.com/66857592/221762353-bcf96052-6bb4-451b-80b7-535a37b52983.png)

建议:插件代码去掉umami.js,umami后台后src那边本来就是全的吗,直接复制就行
![image](https://user-images.githubusercontent.com/66857592/221763695-71779b9c-3db5-4a4b-abf6-3e64f3becfbe.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the plugin code that constructs the Umami script URL and compare it with the Umami admin `src` value described in the issue. Reproduce the ad-blocking failure with a renamed script, then verify that the generated URL no longer appends `umami.js` and that the integration still loads correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, javascript
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.