Skip to content

Commit

Permalink
Merge pull request #29 from pj8/improve-color
Browse files Browse the repository at this point in the history
Improve color
  • Loading branch information
yuki777 authored Oct 15, 2024
2 parents de2d063 + 602bb53 commit c0e142b
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 14 deletions.
2 changes: 1 addition & 1 deletion content.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

// style
if (config.style) {
body.style.backgroundColor = config.style.backgroundColor;
Object.assign(body.style, config.style);
}

// favicon
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "Peacekeeper",
"version": "1.8.0",
"version": "1.9.0",
"description": "Peacekeeper will notify you for each website you specify.",
"background": {
"service_worker": "background.js"
Expand Down
18 changes: 13 additions & 5 deletions options.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function getDefaultConfigs() {
alert: false,
favicon: false,
style: {
backgroundColor: "rgb(48,209,88)",
backgroundColor: "rgba(48,209,88,0.5)",
},
url: "^https?://(127.0.0.1|localhost):(.+83|8080)",
},
Expand All @@ -82,7 +82,7 @@ function getDefaultConfigs() {
alert: false,
favicon: false,
style: {
backgroundColor: "rgb(10,132,255)",
backgroundColor: "rgba(10,132,255,0.5)",
},
url: "^https?://dev-.+-admin.+",
},
Expand All @@ -95,9 +95,9 @@ function getDefaultConfigs() {
href: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAJZlWElmTU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgExAAIAAAARAAAAWodpAAQAAAABAAAAbAAAAAAAAABgAAAAAQAAAGAAAAABd3d3Lmlua3NjYXBlLm9yZwAAAAOgAQADAAAAAQABAACgAgAEAAAAAQAAACCgAwAEAAAAAQAAACAAAAAAs9pmNgAAAAlwSFlzAAAOxAAADsQBlSsOGwAA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F/9irB+/OCiOPTYs2j5VfU8rVksxjYmj+BH32CfXwK2yB0cqtWgP4zYJdL0dYAiHdtsBOjMwTSLDYoebyJiETRUhlaUW6bcANxP5V+af0o66FOIm9TlNNkw/LjXWWTp+dCS/3Ec2RtPjEfrxceeJ899zZzLKTEs8tzc37pK1QxFS/90+C5xLcv1kbZTJAsoGgudotqPfxPSJqyxX775AqokD0pIXzXr7nL2/XEb/7jvABLVU1S6TnK31M1ZSE5cwlvgKqp1L6DfeqlG7nhb0fNzvQUV50Tn6UR2XkLk6wv1mzuFnnJ1jM5/PWPVD+1StdmCAM8gh7VKs11dk7bfVGP8RYPo/MitQTKGXdb0AAAAASUVORK5CYII=",
},
style: {
backgroundColor: "rgb(255,214,10)",
backgroundColor: "rgba(255,214,10,0.5)",
},
url: "^https?://[^/]*stage-admin.+|^https?://admin-.+stage.+|^https?://stg-admin.+|^https://github.com/pj8/(peacekeeper|Pj8.SentryModule|sssh|dbdb|ms-teams-notify-orb|github-backlog-sync|vscode-twig-goto|vscode-bear-goto|image)",
url: "^https?://[^/]*stage-admin.+|^https?://admin-.+stage.+|^https?://stg-admin.+",
},
{
name: "production",
Expand All @@ -108,9 +108,17 @@ function getDefaultConfigs() {
href: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAJZlWElmTU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgExAAIAAAARAAAAWodpAAQAAAABAAAAbAAAAAAAAABaAAAAAQAAAFoAAAABd3d3Lmlua3NjYXBlLm9yZwAAAAOgAQADAAAAAQABAACgAgAEAAAAAQAAACCgAwAEAAAAAQAAACAAAAAAcqkYqAAAAAlwSFlzAAAN1wAADdcBQiibeAAAAi1pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBD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uN+1P4NTKlVScMYyu88Dp/4zrhp4R56NDapln5LTewLlUq16RZXBCphN459lx8oP/u1sdp5sQpiifSlJ4YJ/HTZaI+HJBBvBUNVjzXIyOVkvFsn5CuWxa2vREKOecLg7VgTuTX5FKou6z3eoLTrtuO2EAiSerVK5T59htSVJ3ElV+IWA07Gfe3GhASdSIaN2w1mUx7UnKdGBNzIyNPxoTyfWJtvzc7M6/Y0Pl4V+YHe2O/gTBi5iaMQpbvG4SF24SBpyEM2DnpcYNS+TznroJd7tDI8SYSa3NUt2zofVVh13vdcpsX4haEW97/IB6AxkH5XXUOAIO8fJhpGjUvkslAqRoTGoDtdFDKq+Wqahi61HCiWnS/Tw/fXtcfGYgQ82LV5rMRjhDUrDfUiGF4eHhGw+ufNaFsW7MuhwTnUnf3GzYoIUwK/jMzjVMsHZyfK3yezGY36dEIU1hwvO5Ow3bxD15g478ibIdalgp79gzmNmxgP92TJi5c+Ms3xEXonljsYIRt/wPhVd3UKpqdLwAAAABJRU5ErkJggg==",
},
style: {
backgroundColor: "rgb(255,69,58)",
backgroundColor: "rgba(255,69,58,0.5)",
},
url: "^https?://[^/]*admin.+",
},
{
name: "repositories",
alert: false,
style: {
background: "linear-gradient(to right, rgba(255,214,10,0.5), rgba(255,69,58,0.5))",
},
url: "^https://github.com/pj8/(peacekeeper|Pj8.SentryModule|sssh|dbdb|ms-teams-notify-orb|github-backlog-sync|vscode-twig-goto|vscode-bear-goto|image)",
},
];
}
30 changes: 23 additions & 7 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function getDefaultConfigs() {
alert: false,
favicon: false,
style: {
backgroundColor: "rgb(48,209,88)",
backgroundColor: "rgba(48,209,88,0.5)",
},
url: "^https?://(127.0.0.1|localhost):(.+83|8080)",
},
Expand All @@ -14,7 +14,7 @@ function getDefaultConfigs() {
alert: false,
favicon: false,
style: {
backgroundColor: "rgb(10,132,255)",
backgroundColor: "rgba(10,132,255,0.5)",
},
url: "^https?://dev-.+-admin.+",
},
Expand All @@ -27,9 +27,9 @@ function getDefaultConfigs() {
href: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAJZlWElmTU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgExAAIAAAARAAAAWodpAAQAAAABAAAAbAAAAAAAAABgAAAAAQAAAGAAAAABd3d3Lmlua3NjYXBlLm9yZwAAAAOgAQADAAAAAQABAACgAgAEAAAAAQAAACCgAwAEAAAAAQAAACAAAAAAs9pmNgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAi1pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDYuMC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyI+CiAgICAgICAgIDx4bXA6Q3JlYXRvclRvb2w+d3d3Lmlua3NjYXBlLm9yZzwveG1wOkNyZWF0b3JUb29sPgogICAgICAgICA8dGlmZjpZUmVzb2x1dGlvbj45NjwvdGlmZjpZUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6T3JpZW50YXRpb24+MTwvdGlmZjpPcmllbnRhdGlvbj4KICAgICAgICAgPHRpZmY6WFJlc29sdXRpb24+OTY8L3RpZmY6WFJlc29sdXRpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+Cjw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gARTlmD1Vebyt4+ogEP916g5rOw0E7pKZTdAAAKEbXkTx7xJ9xKGDYI4RFmLzY9VB1HODoqXH8Q/90pJFnRdOHfiH1WES0bkmJ1abhCblnBqAMDMICJmNzc9q8Ux0HROrZvth9W1fd8SCMe0aPyMPIiJEhLT5bPMATMtaSFpWw5j4VsPSoOw5sXs9lgbPHDw79lzPLb44HRl2n0qpEMV3h7SAJBRE7lSRBfhPnnKMsiMZYdFGi2DRtGR+Wkx//nXEmGUgfHCJ/h86eyA0/OAWc3AL6/9XldZ78FuT2iqIEOZ7rCjh4P+Wk2uDbGbcunz6itPUrdTQ4hTvdMybkpeQocfmX2+LJF/9irB+/OCiOPTYs2j5VfU8rVksxjYmj+BH32CfXwK2yB0cqtWgP4zYJdL0dYAiHdtsBOjMwTSLDYoebyJiETRUhlaUW6bcANxP5V+af0o66FOIm9TlNNkw/LjXWWTp+dCS/3Ec2RtPjEfrxceeJ899zZzLKTEs8tzc37pK1QxFS/90+C5xLcv1kbZTJAsoGgudotqPfxPSJqyxX775AqokD0pIXzXr7nL2/XEb/7jvABLVU1S6TnK31M1ZSE5cwlvgKqp1L6DfeqlG7nhb0fNzvQUV50Tn6UR2XkLk6wv1mzuFnnJ1jM5/PWPVD+1StdmCAM8gh7VKs11dk7bfVGP8RYPo/MitQTKGXdb0AAAAASUVORK5CYII=",
},
style: {
backgroundColor: "rgb(255,214,10)",
backgroundColor: "rgba(255,214,10,0.5)",
},
url: "^https?://[^/]*stage-admin.+|^https?://admin-.+stage.+|^https?://stg-admin.+|^https://github.com/pj8/(peacekeeper|Pj8.SentryModule|sssh|dbdb|ms-teams-notify-orb|github-backlog-sync|vscode-twig-goto|vscode-bear-goto|image)",
url: "^https?://[^/]*stage-admin.+|^https?://admin-.+stage.+|^https?://stg-admin.+",
},
{
name: "production",
Expand All @@ -40,10 +40,18 @@ function getDefaultConfigs() {
href: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXN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AoDCtGs2A71X7NJsSTGYePhb2pY/t33FJyZkw6woHggpDGMQQN72RyyrEy0AYdrNjIxsVhT1pDRY701QziNNxbBO9uAmFKA2y21d7NPF7v20hAfROtaJFoBQ74XtTGZZ791A7yHvLLUrmyAvGiWJa7EtG4NHPy1RJ2zmgmGoSIvJYHDLrt9hvX/WP2gM7emLx1+SkYhbnC1pLDh83ljSAEYacVKv/0HJn34g/fJ3JH6/QpTMdPVGHYREWrpC14dByN0+FwJCKgDa0nt4dFLDKSfU+2ib3rdAsDcYFUiW2f8CJV58DrpQDSR5mRcwabU6obSINzx8Ip8J9H7mlt63DLd3gpCYH39BtU+/hBWuByuN+1P4NTKlVScMYyu88Dp/4zrhp4R56NDapln5LTewLlUq16RZXBCphN459lx8oP/u1sdp5sQpiifSlJ4YJ/HTZaI+HJBBvBUNVjzXIyOVkvFsn5CuWxa2vREKOecLg7VgTuTX5FKou6z3eoLTrtuO2EAiSerVK5T59htSVJ3ElV+IWA07Gfe3GhASdSIaN2w1mUx7UnKdGBNzIyNPxoTyfWJtvzc7M6/Y0Pl4V+YHe2O/gTBi5iaMQpbvG4SF24SBpyEM2DnpcYNS+TznroJd7tDI8SYSa3NUt2zofVVh13vdcpsX4haEW97/IB6AxkH5XXUOAIO8fJhpGjUvkslAqRoTGoDtdFDKq+Wqahi61HCiWnS/Tw/fXtcfGYgQ82LV5rMRjhDUrDfUiGF4eHhGw+ufNaFsW7MuhwTnUnf3GzYoIUwK/jMzjVMsHZyfK3yezGY36dEIU1hwvO5Ow3bxD15g478ibIdalgp79gzmNmxgP92TJi5c+Ms3xEXonljsYIRt/wPhVd3UKpqdLwAAAABJRU5ErkJggg==",
},
style: {
backgroundColor: "rgb(255,69,58)",
backgroundColor: "rgba(255,69,58,0.5)",
},
url: "^https?://[^/]*admin.+",
},
{
name: "repositories",
alert: false,
style: {
background: "linear-gradient(to right, rgba(255,214,10,0.5), rgba(255,69,58,0.5))",
},
url: "^https://github.com/pj8/(peacekeeper|Pj8.SentryModule|sssh|dbdb|ms-teams-notify-orb|github-backlog-sync|vscode-twig-goto|vscode-bear-goto|image)",
},
];
}

Expand Down Expand Up @@ -87,17 +95,25 @@ testUrl("staging", "https://admin-feature-stage-foo.bar.test/login");
testUrl("staging", "https://stg-admin.bar.test");
testUrl("staging", "https://stg-admin.bar.test/");
testUrl("staging", "https://stg-admin.bar.test/path");
testUrl("staging", "https://github.com/pj8/peacekeeper");
testUrl("staging", "https://github.com/pj8/sssh");
testUrl("production", "https://admin-feature-foo.bar.test");
testUrl("production", "https://admin-feature-foo.bar.test/");
testUrl("production", "https://admin-feature-foo.bar.test/path");
testUrl("production", "https://foo-admin-bar.foo.test");
testUrl("production", "https://foo-admin-bar.foo.test/");
testUrl("production", "https://foo-admin-bar.foo.test/path");
testUrl("repositories", "https://github.com/pj8/peacekeeper");
testUrl("repositories", "https://github.com/pj8/Pj8.SentryModule");
testUrl("repositories", "https://github.com/pj8/sssh");
testUrl("repositories", "https://github.com/pj8/dbdb");
testUrl("repositories", "https://github.com/pj8/ms-teams-notify-orb");
testUrl("repositories", "https://github.com/pj8/github-backlog-sync");
testUrl("repositories", "https://github.com/pj8/vscode-twig-goto");
testUrl("repositories", "https://github.com/pj8/vscode-bear-goto");
testUrl("repositories", "https://github.com/pj8/image");
testUrl("unknown", "https://foo.test");
testUrl("unknown", "https://foo.test/?q=stage-admin-feature-foo.bar.test");
testUrl("unknown", "https://foo.test/foo?q=admin-feature-foo.bar.test");
testUrl("unknown", "https://manage.test/dashboard/dev-admin/x");
testUrl("unknown", "https://manage.test/dashboard/stage-admin/x");
testUrl("unknown", "https://manage.test/dashboard/admin/x");
testUrl("unknown", "https://github.com/pj8/.github");

0 comments on commit c0e142b

Please sign in to comment.