-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Manifest v3 #219
Merged
Merged
Manifest v3 #219
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
5bc6743
Manifest v3
KillariDev 67cee84
seems to work now
KillariDev 1398adf
support for both v2 and v3
KillariDev 8682a35
separate manifests and add build scripts to build either or
KillariDev 467fe60
edit v2 manifest as this is not needed in v3
KillariDev 4c27039
fix actions
KillariDev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<!DOCTYPE html> | ||
<html style = 'background-color: var(--bg-color); overflow-y: inherit;'> | ||
<head> | ||
<title>Address Book - The Interceptor</title> | ||
<meta charset = 'utf-8'> | ||
<link rel = 'icon' type = 'image/x-icon' href = 'favicon.ico'> | ||
</head> | ||
<body style = 'background-color: var(--bg-color); margin: auto;'> | ||
<meta name = 'viewport' content = 'width = device-width, initial-scale = 1' /> | ||
<link rel = 'stylesheet' type = 'text/css' href = '../css/bulma.css' /> | ||
<link rel = 'stylesheet' type = 'text/css' href = '../css/bulma-divider.css' /> | ||
<link rel = 'stylesheet' type = 'text/css' href = '../css/interceptor.css' /> | ||
|
||
<main>Loading...</main> | ||
|
||
<script src = '../vendor/webextension-polyfill/browser-polyfill.js'></script> | ||
<script type = 'module' src = '../js/addressBookRender.js'></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<!DOCTYPE html> | ||
<html style = 'background-color: var(--bg-color);overflow-y: inherit;'> | ||
<head> | ||
<title>Change Chain - The Interceptor</title> | ||
<meta charset = 'utf-8'> | ||
<link rel = 'icon' type = 'image/x-icon' href = 'favicon.ico'> | ||
</head> | ||
<body style = 'background-color: var(--bg-color); margin: auto;'> | ||
<meta name = 'viewport' content = 'width = device-width, initial-scale = 1' /> | ||
<link rel = 'stylesheet' type = 'text/css' href = '../css/bulma.css' /> | ||
<link rel = 'stylesheet' type = 'text/css' href = '../css/bulma-divider.css' /> | ||
<link rel = 'stylesheet' type = 'text/css' href = '../css/interceptor.css' /> | ||
|
||
<main>Loading...</main> | ||
|
||
<script src = '../vendor/webextension-polyfill/browser-polyfill.js'></script> | ||
<script type = 'module' src = '../js/changeChain.js'></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!DOCTYPE html> | ||
<html style="background-color:var(--bg-color); overflow-y: inherit;"> | ||
<head> | ||
<title>Confirm Transaction - The Interceptor</title> | ||
<meta charset='utf-8'> | ||
<link rel="icon" type="image/x-icon" href="favicon.ico"> | ||
</head> | ||
<body style = 'background-color: var(--bg-color); margin: auto;'> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<link rel="stylesheet" type="text/css" href="../css/bulma.css" /> | ||
<link rel="stylesheet" type="text/css" href="../css/bulma-divider.css" /> | ||
<link rel="stylesheet" type="text/css" href="../css/interceptor.css" /> | ||
<script src='../vendor/webextension-polyfill/browser-polyfill.js'></script> | ||
|
||
<main>Loading...</main> | ||
|
||
<!-- a workaround for bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1803984 --> | ||
<script type = 'module' src = '../js/confirmTransaction.js'></script> | ||
</body> | ||
</html> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<!DOCTYPE html> | ||
<html style = 'background-color: var(--bg-color); overflow-y: inherit;'> | ||
<head> | ||
<title>Access Request - The Interceptor</title> | ||
<meta charset = 'utf-8'> | ||
<link rel = 'icon' type = 'image/x-icon' href = 'favicon.ico'> | ||
</head> | ||
<body style = 'background-color: var(--bg-color); margin: auto;'> | ||
<meta name = 'viewport' content = 'width = device-width, initial-scale = 1' /> | ||
<link rel = 'stylesheet' type = 'text/css' href = '../css/bulma.css' /> | ||
<link rel = 'stylesheet' type = 'text/css' href = '../css/bulma-divider.css' /> | ||
<link rel = 'stylesheet' type = 'text/css' href = '../css/interceptor.css' /> | ||
|
||
<main>Loading...</main> | ||
|
||
<script src = '../vendor/webextension-polyfill/browser-polyfill.js'></script> | ||
<script type = 'module' src = '../js/interceptorAccess.js'></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<!DOCTYPE html> | ||
<html style="background-color:var(--bg-color); overflow-y: inherit;"> | ||
<head> | ||
<title>Personal Sign - The Interceptor</title> | ||
<meta charset='utf-8'> | ||
<link rel="icon" type="image/x-icon" href="favicon.ico"> | ||
</head> | ||
<body style = 'background-color: var(--bg-color); margin: auto;'> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<link rel="stylesheet" type="text/css" href="../css/bulma.css" /> | ||
<link rel="stylesheet" type="text/css" href="../css/bulma-divider.css" /> | ||
<link rel="stylesheet" type="text/css" href="../css/interceptor.css" /> | ||
|
||
<main>Loading...</main> | ||
|
||
<script src = '../vendor/webextension-polyfill/browser-polyfill.js'></script> | ||
<script type = 'module' src = '../js/personalSign.js'></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!DOCTYPE html> | ||
<html style = 'background-color: var(--bg-color); width: 520px; height: 600px; min-width: 520px; overflow-y: inherit;'> | ||
<head> | ||
<title>The Interceptor</title> | ||
<meta charset = 'utf-8'> | ||
<link rel = 'icon' type = 'image/x-icon' href = 'favicon.ico'> | ||
</head> | ||
<body style = 'width: 520px; height: 600px; background-color: var(--bg-color); min-width: 520px; margin: auto;'> | ||
<meta name = 'viewport' content = 'width = device-width, initial-scale = 1' /> | ||
<link rel = 'stylesheet' type = 'text/css' href = '../css/bulma.css' /> | ||
<link rel = 'stylesheet' type = 'text/css' href = '../css/bulma-divider.css' /> | ||
<link rel = 'stylesheet' type = 'text/css' href = '../css/bulma-badge.css' /> | ||
<link rel = 'stylesheet' type = 'text/css' href = '../css/interceptor.css' /> | ||
|
||
<main>Loading...</main> | ||
|
||
<script src = '../vendor/webextension-polyfill/browser-polyfill.js'></script> | ||
<script type = 'module' src = '../js/popup.js'></script> | ||
</body> | ||
</html> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"name": "Interceptor", | ||
"description": "Interceptor", | ||
"version": "0.0.0", | ||
"manifest_version": 3, | ||
"action": { | ||
"default_icon": { | ||
"128": "img/head-not-active.png" | ||
}, | ||
"default_title": "The Interceptor" | ||
}, | ||
"background": { | ||
"service_worker": "./js/backgroundServiceWorker.js", | ||
"type": "module" | ||
}, | ||
"icons": { | ||
"128": "img/head.png", | ||
"400": "img/LOGOA_400x400.png" | ||
}, | ||
"permissions": [ | ||
"activeTab", | ||
"storage", | ||
"webNavigation", | ||
"scripting" | ||
], | ||
"web_accessible_resources": [ | ||
{ | ||
"resources": ["vendor/*", "js/*", "inpage/*"], | ||
"matches": ["<all_urls>"] // not sure if this is right? | ||
} | ||
], | ||
"content_security_policy": { | ||
"extension_pages": "script-src 'self'; object-src 'self'" | ||
}, | ||
"host_permissions": [ | ||
"file://*/*", | ||
"http://*/*", | ||
"https://*/*" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes this is valid
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be much better if we did
activeTab
instead, but that requires users to click the extension icon to activate it. This permission requires that we get "read and write access to all websites you visit".