Skip to content

Commit 367f09d

Browse files
committed
Small update to showcase CI script
- Add some tests to help detect more valid Astro sites - Block a couple more common origins
1 parent 0ac3117 commit 367f09d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

scripts/update-showcase.mjs

+8-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,12 @@ class ShowcaseScraper {
251251
if (
252252
document.querySelector("astro-island") ||
253253
document.querySelector('[class*="astro-"]') ||
254-
document.querySelector("[astro-script]")
254+
document.querySelector("[astro-script]") ||
255+
document.querySelector("[astro-icon]") ||
256+
document.querySelector("[data-astro-prefetch]") ||
257+
document.querySelector("[data-astro-reload]") ||
258+
document.querySelector("[data-astro-history]") ||
259+
document.querySelector('meta[name="astro-view-transitions-fallback"]')
255260
) {
256261
return true
257262
}
@@ -390,6 +395,8 @@ const scraper = new ShowcaseScraper({
390395
"https://pagespeed.web.dev",
391396
"https://lighthouse-metrics.com",
392397
"https://calckey.org",
398+
"https://twitter.com",
399+
"https://youtu.be",
393400
],
394401
})
395402
await scraper.run()

0 commit comments

Comments
 (0)