mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
17 lines
483 B
JavaScript
17 lines
483 B
JavaScript
import fetch from 'node-fetch'
|
|
import { compilationInfo } from '../../webpack/compilation-info.js'
|
|
|
|
const files = [
|
|
'dist/bilibili-evolved.preview.user.js',
|
|
'dist/bilibili-evolved.user.js',
|
|
]
|
|
|
|
files.forEach(file => {
|
|
const url = `https://purge.jsdelivr.net/gh/the1812/Bilibili-Evolved@${compilationInfo.branch}/${file}`
|
|
|
|
console.log('url:', url)
|
|
fetch(url)
|
|
.then(response => response.json()).then(json => console.log(json))
|
|
.catch(error => console.error(error))
|
|
})
|