Skip to content

Commit

Permalink
0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmad-PH committed Feb 20, 2024
1 parent 803498a commit f1ce958
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 17 deletions.
40 changes: 27 additions & 13 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
{
"manifest_version": 3,
"name": "Tab Renamer",
"version": "0.1.0",
"version": "0.2.0",
"description": "Customize your tab titles and favicons for a more organized browsing experience.",
"permissions": ["tabs", "activeTab", "scripting", "storage", "contextMenus"],
"permissions": [
"tabs",
"activeTab",
"scripting",
"storage",
"contextMenus"
],
"host_permissions": [
"http://*/*",
"https://*/*"
],

"background": {
"service_worker": "background.js"
},

"commands": {
"open_rename_dialog": {
"suggested_key": {
Expand All @@ -22,28 +26,38 @@
"description": "Open rename dialog"
}
},

"content_scripts": [
{
"matches": ["<all_urls>"],
"js": ["initializationContentScript.js"],
"matches": [
"<all_urls>"
],
"js": [
"initializationContentScript.js"
],
"run_at": "document_start"
},
{
"matches": ["<all_urls>"],
"js": ["contentScript.js"],
"matches": [
"<all_urls>"
],
"js": [
"contentScript.js"
],
"run_at": "document_end"
}
],

"web_accessible_resources": [
{
"resources": ["assets/emoji_picker_icon.png", "assets/emojis.json"],
"matches": ["<all_urls>"],
"resources": [
"assets/emoji_picker_icon.png",
"assets/emojis.json"
],
"matches": [
"<all_urls>"
],
"use_dynamic_url": false
}
],

"icons": {
"16": "assets/icon16.png",
"48": "assets/icon48.png",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"name": "tab-renamer-extension",
"version": "0.1.0",
"version": "0.2.0",
"description": "",
"main": "background.js",
"scripts": {
"test": "jest --detectOpenHandles",
"test:headed": "HEADED=true jest --detectOpenHandles",
"build": "webpack --mode production",
"dev": "webpack --mode development --watch"
"dev": "webpack --mode development --watch",
"version": "node update-manifest-version.js && git add ."
},
"repository": {
"type": "git",
Expand Down
12 changes: 12 additions & 0 deletions update-manifest-version.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const fs = require('fs');

// Load package.json and manifest.json and get the version
const packageJson = require('./package.json');
const manifestPath = './manifest.json';
const manifestJson = require(manifestPath);

// Update version in manifest.json
manifestJson.version = packageJson.version;

// Write back to manifest.json
fs.writeFileSync(manifestPath, JSON.stringify(manifestJson, null, 4));

0 comments on commit f1ce958

Please sign in to comment.