tok-to-insta-follower-bridge/scripts/remove_web_accessible_resources.js
2024-01-24 15:45:00 +09:00

12 lines
309 B
JavaScript

const fs = require('fs');
const manifestPath = './build/chrome-mv3-prod/manifest.json';
const manifestData = fs.readFileSync(manifestPath);
const manifestObj = JSON.parse(manifestData);
delete manifestObj['web_accessible_resources'];
fs.writeFileSync(manifestPath, JSON.stringify(manifestObj, null, 2));