Skip to content

Commit b66959d

Browse files
committed
feat: 补充视频托管识别规则
扩展 SaaS 页面规则,新增视频托管、直播和嵌入播放器资源 URL 匹配。 覆盖 YouTube Embed、Vimeo Player、Wistia、Vidyard、Brightcove Player、Kaltura Player、Mux Video、Cloudflare Stream、Bunny Stream、Dacast、SproutVideo、Loom Embed、Panopto、Uscreen、Streamable、JW Player Embed、Dailymotion Embed、Rumble Embed、Twitch Embed、VdoCipher、Spotlightr、Adilo 等技术,并补充对应技术链接。 将版本升至 1.1.18。 验证:npx prettier --write .;npx prettier --check .;pnpm run typecheck;pnpm run lint;JSON/正则全量校验;pnpm run build。
1 parent ac08700 commit b66959d

3 files changed

Lines changed: 125 additions & 1 deletion

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.1.17",
4+
"version": "1.1.18",
55
"type": "module",
66
"description": "StackPrism 用于检测网页前端、后端、CDN、SaaS、广告营销、统计、登录、支付、网站程序和主题模板线索。",
77
"scripts": {

public/rules/page/saas-services-page.json

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,108 @@
595595
"patterns": ["imgix\\.net|imgix\\.js|ixlib="],
596596
"globals": ["imgix"]
597597
},
598+
{
599+
"defaults": {
600+
"kind": "视频托管 / 嵌入播放器",
601+
"matchIn": ["resources"]
602+
},
603+
"rules": [
604+
{
605+
"name": "YouTube Embed",
606+
"patterns": ["youtube\\.com/(?:embed/|iframe_api)|youtube-nocookie\\.com/embed/"]
607+
},
608+
{
609+
"name": "Vimeo Player",
610+
"patterns": ["player\\.vimeo\\.com/(?:api/player\\.js|video/)|f\\.vimeocdn\\.com"]
611+
},
612+
{
613+
"name": "Wistia",
614+
"patterns": [
615+
"fast\\.wistia\\.com/assets/external/E-v1\\.js|fast\\.wistia\\.(?:com|net)/(?:embed|assets)|wistia\\.com/[^\\s\"'<>]*(?:embed|medias)"
616+
]
617+
},
618+
{
619+
"name": "Vidyard",
620+
"patterns": ["play\\.vidyard\\.com/(?:embed|player|watch)|cdn\\.vidyard\\.com|vidyard\\.com/[^\\s\"'<>]*(?:embed|player)"]
621+
},
622+
{
623+
"name": "Brightcove Player",
624+
"patterns": ["players\\.brightcove\\.net|videojs\\.brightcove\\.net|brightcove\\.com/[^\\s\"'<>]*(?:player|embed)"]
625+
},
626+
{
627+
"name": "Kaltura Player",
628+
"patterns": [
629+
"(?:cdnapi|cdnapisec)\\.kaltura\\.com|kaltura\\.com/p/[^\\s\"'<>]*(?:embed|sp)|kaltura\\.com/[^\\s\"'<>]*kaltura_player"
630+
]
631+
},
632+
{
633+
"name": "Mux Video",
634+
"patterns": ["stream\\.mux\\.com|image\\.mux\\.com|player\\.mux\\.com|mux\\.com/[^\\s\"'<>]*(?:embed|player)"]
635+
},
636+
{
637+
"name": "Cloudflare Stream",
638+
"patterns": [
639+
"iframe\\.videodelivery\\.net|customer-[a-z0-9]+\\.cloudflarestream\\.com|videodelivery\\.net/[^\\s\"'<>]*(?:embed|manifest|video)"
640+
]
641+
},
642+
{
643+
"name": "Bunny Stream",
644+
"patterns": ["iframe\\.mediadelivery\\.net/embed|video\\.bunnycdn\\.com|vz-[a-z0-9-]+\\.b-cdn\\.net"]
645+
},
646+
{
647+
"name": "Dacast",
648+
"patterns": ["player\\.dacast\\.com|iframe\\.dacast\\.com|dacast\\.com/[^\\s\"'<>]*(?:player|embed)"]
649+
},
650+
{
651+
"name": "SproutVideo",
652+
"patterns": ["videos\\.sproutvideo\\.com|embed\\.sproutvideo\\.com|sproutvideo\\.com/[^\\s\"'<>]*(?:embed|videos)"]
653+
},
654+
{
655+
"name": "Loom Embed",
656+
"patterns": ["loom\\.com/embed/|cdn\\.loom\\.com|www\\.loom\\.com/share/[^\\s\"'<>]*(?:embed|sid=)"]
657+
},
658+
{
659+
"name": "Panopto",
660+
"patterns": ["panopto\\.com/Panopto/(?:Pages/Embed|Scripts)|[a-z0-9.-]+\\.panopto\\.com/Panopto/"]
661+
},
662+
{
663+
"name": "Uscreen",
664+
"patterns": ["assets\\.uscreen\\.tv|uscreen\\.io/[^\\s\"'<>]*(?:embed|player)|uscreen\\.tv/[^\\s\"'<>]*(?:embed|player)"]
665+
},
666+
{
667+
"name": "Streamable",
668+
"patterns": ["streamable\\.com/(?:e|o)/|cdn\\.streamable\\.com"]
669+
},
670+
{
671+
"name": "JW Player Embed",
672+
"patterns": ["cdn\\.jwplayer\\.com/(?:players|libraries)|content\\.jwplatform\\.com/(?:players|videos)|jwpsrv\\.com"]
673+
},
674+
{
675+
"name": "Dailymotion Embed",
676+
"patterns": ["geo\\.dailymotion\\.com/player|dailymotion\\.com/embed/video|dmcdn\\.net"]
677+
},
678+
{
679+
"name": "Rumble Embed",
680+
"patterns": ["rumble\\.com/(?:embed|embedJS)|rumble\\.com/[^\\s\"'<>]*\\?pub="]
681+
},
682+
{
683+
"name": "Twitch Embed",
684+
"patterns": ["player\\.twitch\\.tv|embed\\.twitch\\.tv|twitch\\.tv/embed/"]
685+
},
686+
{
687+
"name": "VdoCipher",
688+
"patterns": ["player\\.vdocipher\\.com|vdocipher\\.com/[^\\s\"'<>]*(?:iframe|player)|otp\\.video"]
689+
},
690+
{
691+
"name": "Spotlightr",
692+
"patterns": ["cdn\\.spotlightr\\.com|video\\.spotlightr\\.com|spotlightr\\.com/[^\\s\"'<>]*(?:embed|watch)"]
693+
},
694+
{
695+
"name": "Adilo",
696+
"patterns": ["embed\\.adilo\\.com|player\\.adilo\\.com|adilo\\.bigcommand\\.com"]
697+
}
698+
]
699+
},
598700
{
599701
"defaults": {
600702
"kind": "Headless CMS"

public/tech-links.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,6 +1098,28 @@
10981098
"Luigi's Box": "https://www.luigisbox.com",
10991099
"Attraqt": "https://www.attraqt.com",
11001100
"Cloudinary": "https://cloudinary.com",
1101+
"YouTube Embed": "https://www.youtube.com",
1102+
"Vimeo Player": "https://developer.vimeo.com/player/sdk",
1103+
"Wistia": "https://wistia.com",
1104+
"Vidyard": "https://www.vidyard.com",
1105+
"Brightcove Player": "https://www.brightcove.com",
1106+
"Kaltura Player": "https://corp.kaltura.com",
1107+
"Mux Video": "https://www.mux.com/video",
1108+
"Cloudflare Stream": "https://www.cloudflare.com/products/cloudflare-stream",
1109+
"Bunny Stream": "https://bunny.net/stream",
1110+
"Dacast": "https://www.dacast.com",
1111+
"SproutVideo": "https://sproutvideo.com",
1112+
"Loom Embed": "https://www.loom.com",
1113+
"Panopto": "https://www.panopto.com",
1114+
"Uscreen": "https://www.uscreen.tv",
1115+
"Streamable": "https://streamable.com",
1116+
"JW Player Embed": "https://www.jwplayer.com",
1117+
"Dailymotion Embed": "https://www.dailymotion.com",
1118+
"Rumble Embed": "https://rumble.com",
1119+
"Twitch Embed": "https://dev.twitch.tv/docs/embed",
1120+
"VdoCipher": "https://www.vdocipher.com",
1121+
"Spotlightr": "https://spotlightr.com",
1122+
"Adilo": "https://adilo.com",
11011123
"Contentful": "https://www.contentful.com",
11021124
"Sanity": "https://www.sanity.io",
11031125
"Prismic": "https://prismic.io",

0 commit comments

Comments
 (0)