Move comments around

This commit is contained in:
Idrees Hassan
2025-10-25 20:41:10 -04:00
parent f45eb0ce61
commit 3aa0308746
3 changed files with 5 additions and 6 deletions

View File

@@ -22,9 +22,9 @@ const STYLESHEET_KEY = "___STYLESHEET___";
const now = new Date(); const now = new Date();
const versionDate = `${now.getFullYear()}.${now.getMonth() + 1}.${now.getDate()}`; const versionDate = `${now.getFullYear()}.${now.getMonth() + 1}.${now.getDate()}`;
let buildNumber = 1;
// Get build number from manifest.json // Get current build number from manifest.json
let buildNumber = 0;
try { try {
const manifest = JSON.parse(readFileSync('manifest.json', 'utf8')); const manifest = JSON.parse(readFileSync('manifest.json', 'utf8'));
if (manifest.version) { if (manifest.version) {
@@ -41,9 +41,8 @@ try {
throw e; throw e;
} }
const version = `${versionDate}.${buildNumber}`;
// Update manifest.json with new version // Update manifest.json with new version
const version = `${versionDate}.${buildNumber}`;
try { try {
const manifest = JSON.parse(readFileSync('manifest.json', 'utf8')); const manifest = JSON.parse(readFileSync('manifest.json', 'utf8'));
manifest.version = version; manifest.version = version;

2
dist/birb.user.js vendored
View File

@@ -1,7 +1,7 @@
// ==UserScript== // ==UserScript==
// @name Pocket Bird // @name Pocket Bird
// @namespace https://idreesinc.com // @namespace https://idreesinc.com
// @version 2025.10.25.1 // @version 2025.10.25.8
// @description birb // @description birb
// @author Idrees // @author Idrees
// @downloadURL https://github.com/IdreesInc/Pocket-Bird/raw/refs/heads/main/dist/birb.user.js // @downloadURL https://github.com/IdreesInc/Pocket-Bird/raw/refs/heads/main/dist/birb.user.js

View File

@@ -2,7 +2,7 @@
"manifest_version": 3, "manifest_version": 3,
"name": "Pocket Bird", "name": "Pocket Bird",
"description": "It's a bird, in your browser. What more could you want?", "description": "It's a bird, in your browser. What more could you want?",
"version": "2025.10.25.1", "version": "2025.10.25.8",
"homepage_url": "https://idreesinc.com", "homepage_url": "https://idreesinc.com",
"content_scripts": [ "content_scripts": [
{ {