You've already forked bilibili-subtitle
16 lines
439 B
JavaScript
16 lines
439 B
JavaScript
console.log('fix.js loaded');
|
|
|
|
const fs = require('fs')
|
|
|
|
//copy index.html to sidepanel.html
|
|
fs.copyFileSync('./dist/index.html', './dist/sidepanel.html')
|
|
|
|
//set all use_dynamic_url to false
|
|
const manifest = require('./dist/manifest.json')
|
|
manifest.web_accessible_resources.forEach(resource => {
|
|
resource.use_dynamic_url = false
|
|
})
|
|
fs.writeFileSync('./dist/manifest.json', JSON.stringify(manifest, null, 2))
|
|
|
|
console.log('fix.js done');
|