mirror of
https://github.com/NohamR/Pocket-Bird.git
synced 2026-05-26 04:07:24 +00:00
Add extension manifest
This commit is contained in:
14
build.js
14
build.js
@@ -20,11 +20,23 @@ const spriteSheets = [
|
||||
const STYLESHEET_PATH = "./stylesheet.css";
|
||||
const STYLESHEET_KEY = "___STYLESHEET___";
|
||||
|
||||
let version = "0.0.0";
|
||||
// Try to read version from manifest.json
|
||||
try {
|
||||
const manifest = JSON.parse(readFileSync('manifest.json', 'utf8'));
|
||||
if (manifest.version) {
|
||||
version = manifest.version;
|
||||
}
|
||||
} catch (e) {
|
||||
console.error("Could not read version from manifest.json");
|
||||
throw e;
|
||||
}
|
||||
|
||||
const userScriptHeader =
|
||||
`// ==UserScript==
|
||||
// @name Browser Bird
|
||||
// @namespace https://idreesinc.com
|
||||
// @version 2025-09-15-01
|
||||
// @version ${version}
|
||||
// @description birb
|
||||
// @author Idrees
|
||||
// @downloadURL https://github.com/IdreesInc/Browser-Bird/raw/refs/heads/main/dist/birb.user.js
|
||||
|
||||
Reference in New Issue
Block a user