Skip to content

Commit e98ffd5

Browse files
committed
fix: 拆分 GitHub 资源相关识别,避免仓库页面被误标
「GitHub Pages / GitHub Assets」原本把 github.io、githubusercontent.com、githubassets.com 三种完全不同的资源混在一起,导致访问 github.com/owner/repo 这种普通仓库页时被误标成 GitHub Pages。拆成「GitHub Pages」「GitHub Assets」「GitHub Raw Content」三条独立规则;self-host 抑制表覆盖这三个新名称,访问 github.com / *.github.io 时不再展示同名识别。 将版本号提升到 1.3.38。
1 parent 9173ab6 commit e98ffd5

4 files changed

Lines changed: 17 additions & 5 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "stackprism",
33
"private": true,
4-
"version": "1.3.37",
4+
"version": "1.3.38",
55
"type": "module",
66
"description": "StackPrism 用于检测网页前端、后端、CDN、SaaS、广告营销、统计、登录、支付、网站程序和主题模板线索。",
77
"scripts": {

public/rules/page/cdn-providers-page.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,16 @@
303303
"patterns": ["firebaseapp\\.com|web\\.app"]
304304
},
305305
{
306-
"name": "GitHub Pages / GitHub Assets",
307-
"patterns": ["github\\.io|githubusercontent\\.com|githubassets\\.com"]
306+
"name": "GitHub Pages",
307+
"patterns": ["github\\.io"]
308+
},
309+
{
310+
"name": "GitHub Assets",
311+
"patterns": ["githubassets\\.com"]
312+
},
313+
{
314+
"name": "GitHub Raw Content",
315+
"patterns": ["githubusercontent\\.com"]
308316
},
309317
{
310318
"name": "GitLab Pages",

public/tech-links.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1342,7 +1342,9 @@
13421342
"Vercel": "https://vercel.com",
13431343
"Netlify": "https://www.netlify.com",
13441344
"Firebase Hosting": "https://firebase.google.com/products/hosting",
1345-
"GitHub Pages / GitHub Assets": "https://pages.github.com",
1345+
"GitHub Pages": "https://pages.github.com",
1346+
"GitHub Assets": "https://github.com",
1347+
"GitHub Raw Content": "https://raw.githubusercontent.com",
13461348
"GitLab Pages": "https://docs.gitlab.com/user/project/pages",
13471349
"Render": "https://render.com",
13481350
"Fly.io": "https://fly.io",

src/background/popup-cache.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,10 @@ const cleanRawDynamicObservation = (dynamic: any, data: any) => {
216216
// 站点自身的「品牌识别」抑制:当用户就在 github.com 时不再把 GitHub.com 当作一项「使用了的技术」
217217
// 显示给他,那是 URL 栏里已经告诉他的事情
218218
const SELF_HOST_SUPPRESS: Record<string, readonly string[]> = {
219-
'github.com': ['GitHub.com', 'GitHub'],
219+
'github.com': ['GitHub.com', 'GitHub', 'GitHub Pages', 'GitHub Assets', 'GitHub Raw Content'],
220+
'github.io': ['GitHub Pages', 'GitHub Assets', 'GitHub Raw Content'],
220221
'gitlab.com': ['GitLab.com', 'GitLab'],
222+
'gitlab.io': ['GitLab Pages'],
221223
'bitbucket.org': ['Bitbucket'],
222224
'codeberg.org': ['Codeberg'],
223225
'gitee.com': ['Gitee'],

0 commit comments

Comments
 (0)