Compare commits
No commits in common. "275f4bdb46a415c7b43cad57a0bf89f95694a4ab" and "bd0f7a7a8c05dc2287e785f15d41994eb9e39261" have entirely different histories.
275f4bdb46
...
bd0f7a7a8c
|
@ -53,10 +53,7 @@ args = ["web-ext", "build", "--config=build/web-ext-${BROWSER}.json"]
|
||||||
[tasks.run]
|
[tasks.run]
|
||||||
clear = true
|
clear = true
|
||||||
command = "pnpm"
|
command = "pnpm"
|
||||||
# Set --target explicitly, since web-ext for some reason doesn't use the target
|
args = ["web-ext", "run", "--config=build/web-ext-${BROWSER}.json"]
|
||||||
# set in the configuration file. https://github.com/mozilla/web-ext/issues/1862
|
|
||||||
env = { TARGET = { source = "${BROWSER}", default_value = "${BROWSER}", mapping = { "firefox" = "firefox-dekstop" } } }
|
|
||||||
args = ["web-ext", "run", "--target=${TARGET}", "--config=build/web-ext-${BROWSER}.json"]
|
|
||||||
|
|
||||||
# Alias for `WATCH=true makers build`.
|
# Alias for `WATCH=true makers build`.
|
||||||
[tasks.watch]
|
[tasks.watch]
|
||||||
|
|
|
@ -19,6 +19,8 @@ export function createManifest(browser: string): Manifest.WebExtensionManifest {
|
||||||
page: "options/index.html",
|
page: "options/index.html",
|
||||||
open_in_tab: true,
|
open_in_tab: true,
|
||||||
},
|
},
|
||||||
|
content_security_policy:
|
||||||
|
"script-src 'self'; object-src 'self'; style-src 'unsafe-inline'",
|
||||||
content_scripts: [
|
content_scripts: [
|
||||||
{
|
{
|
||||||
css: ["css/content-scripts.css"],
|
css: ["css/content-scripts.css"],
|
||||||
|
@ -51,8 +53,6 @@ export function createManifest(browser: string): Manifest.WebExtensionManifest {
|
||||||
strict_min_version: "102.0",
|
strict_min_version: "102.0",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
manifest.content_security_policy =
|
|
||||||
"script-src 'self'; object-src 'self'; style-src 'unsafe-inline'";
|
|
||||||
} else if (browser === "chromium") {
|
} else if (browser === "chromium") {
|
||||||
manifest.manifest_version = 3;
|
manifest.manifest_version = 3;
|
||||||
manifest.action = action;
|
manifest.action = action;
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
|
|
||||||
.group {
|
.group {
|
||||||
border: 1px solid var(--blue);
|
border: 1px solid var(--blue);
|
||||||
overflow: hidden;
|
overflow: scroll;
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
|
@ -41,7 +41,7 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
overflow: auto;
|
overflow: scroll;
|
||||||
}
|
}
|
||||||
|
|
||||||
input {
|
input {
|
||||||
|
|
|
@ -19,7 +19,6 @@ type WebExtConfig = {
|
||||||
|
|
||||||
run: {
|
run: {
|
||||||
browserConsole: boolean;
|
browserConsole: boolean;
|
||||||
chromiumProfile: string;
|
|
||||||
firefoxProfile: string;
|
firefoxProfile: string;
|
||||||
keepProfileChanges: boolean;
|
keepProfileChanges: boolean;
|
||||||
profileCreateIfMissing: boolean;
|
profileCreateIfMissing: boolean;
|
||||||
|
@ -54,7 +53,6 @@ export function createWebExtConfig(
|
||||||
|
|
||||||
run: {
|
run: {
|
||||||
browserConsole: dev,
|
browserConsole: dev,
|
||||||
chromiumProfile: path.join(buildDir, "chromium-profile/"),
|
|
||||||
firefoxProfile: path.join(buildDir, "firefox-profile/"),
|
firefoxProfile: path.join(buildDir, "firefox-profile/"),
|
||||||
keepProfileChanges: true,
|
keepProfileChanges: true,
|
||||||
profileCreateIfMissing: true,
|
profileCreateIfMissing: true,
|
||||||
|
|
Loading…
Reference in New Issue