Skip to content

Commit ea6a12f

Browse files
committed
refactor extension code from mv2 to mv3
1 parent 6f31499 commit ea6a12f

5 files changed

Lines changed: 176 additions & 350 deletions

File tree

js/chromeExtensionApiAbstractions.js

Lines changed: 0 additions & 232 deletions
This file was deleted.

manifest.json

Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,40 @@
11
{
2+
"manifest_version": 3,
3+
"minimum_chrome_version": "110",
4+
"version": "2.0.0",
25
"name": "New Window With Tabs To Right",
3-
"version": "1.0.1",
4-
"manifest_version": 2,
56
"description": "This extension creates a new window with the tabs to the right of the currently selected tab.",
67
"homepage_url": "http://devalias.net/dev/chrome-extensions/",
7-
"content_security_policy": "script-src 'self' https://ssl.google-analytics.com; object-src 'self'",
8-
"permissions": [
9-
"tabs",
10-
"contextMenus"
11-
],
8+
"default_locale": "en",
129
"icons": {
1310
"16": "icons/NewWindowWithTabsToRight-Icon@16px.png",
1411
"48": "icons/NewWindowWithTabsToRight-Icon@48px.png",
1512
"128": "icons/NewWindowWithTabsToRight-Icon@128px.png"
1613
},
17-
"default_locale": "en",
14+
"permissions": [
15+
"contextMenus"
16+
],
17+
"content_security_policy": {
18+
"extension_pages": "script-src 'self'; object-src 'self'"
19+
},
1820
"background": {
19-
"scripts": [
20-
"js/googleAnalytics.js",
21-
"js/chromeExtensionApiAbstractions.js",
22-
"src/bg/background.js"
23-
],
24-
"persistent": true
21+
"service_worker": "src/service_worker.js",
22+
"type": "module"
2523
},
2624
"commands": {
27-
"newWindowWithCurrentAndTabsToRight": {
28-
"suggested_key": {
29-
"default": "Ctrl+Shift+Y",
30-
"mac": "Command+Shift+Y"
31-
},
32-
"description": "Create a new window with the current tab and tabs on the right."
25+
"newWindowWithCurrentAndTabsToRight": {
26+
"suggested_key": {
27+
"default": "Ctrl+Shift+Y",
28+
"mac": "Command+Shift+Y"
29+
},
30+
"description": "Create a new window with the current tab and tabs on the right."
31+
},
32+
"newWindowWithTabsToRight": {
33+
"suggested_key": {
34+
"default": "Ctrl+Shift+U",
35+
"mac": "Command+Shift+U"
3336
},
34-
"newWindowWithTabsToRight": {
35-
"suggested_key": {
36-
"default": "Ctrl+Shift+U",
37-
"mac": "Command+Shift+U"
38-
},
39-
"description": "Create a new window with the tabs on the right."
40-
}
37+
"description": "Create a new window with the tabs on the right."
38+
}
4139
}
4240
}

src/bg/background.html

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/bg/background.js

Lines changed: 0 additions & 85 deletions
This file was deleted.

0 commit comments

Comments
 (0)