commit 4e5b3a7c80f3bf4a908fc3bfcc15f5b067db3e62 Author: Fierelier Date: Wed Jun 5 07:06:22 2019 +0200 Initial commit diff --git a/images/newWindow.png b/images/newWindow.png new file mode 100644 index 0000000..b25d025 Binary files /dev/null and b/images/newWindow.png differ diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..e6b8aab --- /dev/null +++ b/manifest.json @@ -0,0 +1,17 @@ +{ + "manifest_version": 2, + "name": "Tabless Fox", + "version": "1906.1", + + "description": "Opens every new tab as a new window.", + + "icons": { + "128": "images/newWindow.png" + }, + + "permissions": ["tabs"], + + "background": { + "scripts": ["newWindow.js"] + } +} \ No newline at end of file diff --git a/newWindow.js b/newWindow.js new file mode 100644 index 0000000..5080735 --- /dev/null +++ b/newWindow.js @@ -0,0 +1,5 @@ +function handleCreated(tab) { + browser.windows.create({tabId: tab.id}); +} + +browser.tabs.onCreated.addListener(handleCreated); \ No newline at end of file