diff options
-rw-r--r-- | recipes/grammarly/darkmode.css | 69 | ||||
-rw-r--r-- | recipes/grammarly/icon.svg | 25 | ||||
-rw-r--r-- | recipes/grammarly/index.js | 6 | ||||
-rw-r--r-- | recipes/grammarly/package.json | 9 | ||||
-rw-r--r-- | recipes/grammarly/style.css | 3 | ||||
-rw-r--r-- | recipes/grammarly/webview.js | 9 |
6 files changed, 121 insertions, 0 deletions
diff --git a/recipes/grammarly/darkmode.css b/recipes/grammarly/darkmode.css new file mode 100644 index 0000000..eb2306e --- /dev/null +++ b/recipes/grammarly/darkmode.css | |||
@@ -0,0 +1,69 @@ | |||
1 | body { | ||
2 | background: black; | ||
3 | } | ||
4 | |||
5 | div[class*='assistant-successLens'] * { | ||
6 | color: white; | ||
7 | } | ||
8 | |||
9 | div[class^='assistant-successLens'] * { | ||
10 | color: white; | ||
11 | } | ||
12 | |||
13 | div[class*='editorContent'] * { | ||
14 | background: none; | ||
15 | color: white; | ||
16 | } | ||
17 | |||
18 | div[class*='lensviewContentWrapper'] * { | ||
19 | background: none; | ||
20 | color: white; | ||
21 | } | ||
22 | |||
23 | div[class*='assistant-successLens'] { | ||
24 | background: none; | ||
25 | } | ||
26 | |||
27 | div[class*='toolbar'] * | ||
28 | { | ||
29 | background: none; | ||
30 | } | ||
31 | |||
32 | div[class*='assistant-sidebarWrapper'] * | ||
33 | { | ||
34 | background: none; | ||
35 | color: white; | ||
36 | } | ||
37 | |||
38 | /* Blue text highlight */ | ||
39 | @keyframes fbb6yts { | ||
40 | to { | ||
41 | background-color: rgb(219,235,255,0.2) | ||
42 | } | ||
43 | } | ||
44 | /* Red text highlight */ | ||
45 | @keyframes f4cpmj7 { | ||
46 | to { | ||
47 | background-color:rgba(255,219,227,0.2) | ||
48 | } | ||
49 | } | ||
50 | |||
51 | .fullCard { | ||
52 | border-bottom: 1px solid rgba(255,255,255,0.5); | ||
53 | border-right: 1px solid rgba(255,255,255,0.2); | ||
54 | border-radius: calc(0.5px * var(--rem)); | ||
55 | } | ||
56 | |||
57 | div[class*='miniCard']:hover | ||
58 | { | ||
59 | background: none; | ||
60 | border-bottom: 1px solid rgba(255,255,255,0.5); | ||
61 | border-right: 1px solid rgba(255,255,255,0.2); | ||
62 | border-radius: calc(0.5px * var(--rem)); | ||
63 | } | ||
64 | |||
65 | div[class*='navigation-outcome']:not([data-disabled=true])[data-active=true], | ||
66 | div[class*='navigation-outcome']:not([data-disabled=true])[data-hovered=true] | ||
67 | { | ||
68 | background: rgba(255,255,255,0.1) !important; | ||
69 | } | ||
diff --git a/recipes/grammarly/icon.svg b/recipes/grammarly/icon.svg new file mode 100644 index 0000000..bfc3848 --- /dev/null +++ b/recipes/grammarly/icon.svg | |||
@@ -0,0 +1,25 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
2 | <svg | ||
3 | viewBox="0 0 91.999997 92" | ||
4 | version="1.1" | ||
5 | id="svg8" | ||
6 | width="92" | ||
7 | height="92" | ||
8 | xmlns="http://www.w3.org/2000/svg" | ||
9 | xmlns:svg="http://www.w3.org/2000/svg"> | ||
10 | <defs | ||
11 | id="defs12" /> | ||
12 | <g | ||
13 | id="g277"> | ||
14 | <circle | ||
15 | fill="#2bb673" | ||
16 | cx="46" | ||
17 | cy="46" | ||
18 | r="46" | ||
19 | id="circle4" /> | ||
20 | <path | ||
21 | fill="#ffffff" | ||
22 | d="m 55.1,52.2 c -1.9,0 -3.4,1.7 -3.1,3.7 0.3,1.5 1.7,2.5 3.2,2.5 H 60 L 62.8,58 c -4.5,6.6 -12.2,9.6 -20.7,8.2 -6.9,-1.1 -12.8,-5.8 -15.3,-12.3 -5.7,-14.8 5.1,-29 19.2,-29 7.3,0 13.8,4.3 17.5,9.5 v 0.1 c 1,1.4 2.9,1.8 4.3,0.8 1.3,-0.9 1.7,-2.7 0.9,-4.1 C 63.6,23.2 54.4,18.1 44.1,18.8 30.7,19.9 19.8,30.9 19,44.4 c -0.9,15.7 11.5,28.4 27,28.4 8.1,0 15.4,-3.5 20.3,-9.3 l -0.6,3.3 v 3 c 0,1.5 1,2.9 2.5,3.2 2,0.4 3.7,-1.2 3.7,-3.1 V 52.2 Z" | ||
23 | id="path6" /> | ||
24 | </g> | ||
25 | </svg> | ||
diff --git a/recipes/grammarly/index.js b/recipes/grammarly/index.js new file mode 100644 index 0000000..28cfbba --- /dev/null +++ b/recipes/grammarly/index.js | |||
@@ -0,0 +1,6 @@ | |||
1 | module.exports = Ferdium => | ||
2 | class Grammarly extends Ferdium { | ||
3 | async validateUrl() { | ||
4 | return true; | ||
5 | } | ||
6 | }; | ||
diff --git a/recipes/grammarly/package.json b/recipes/grammarly/package.json new file mode 100644 index 0000000..ee2d3b4 --- /dev/null +++ b/recipes/grammarly/package.json | |||
@@ -0,0 +1,9 @@ | |||
1 | { | ||
2 | "id": "grammarly", | ||
3 | "name": "Grammarly", | ||
4 | "version": "1.0.0", | ||
5 | "license": "MIT", | ||
6 | "config": { | ||
7 | "serviceURL": "https://app.grammarly.com/" | ||
8 | } | ||
9 | } | ||
diff --git a/recipes/grammarly/style.css b/recipes/grammarly/style.css new file mode 100644 index 0000000..f2760a9 --- /dev/null +++ b/recipes/grammarly/style.css | |||
@@ -0,0 +1,3 @@ | |||
1 | html { | ||
2 | background: #FFFFFF; | ||
3 | } \ No newline at end of file | ||
diff --git a/recipes/grammarly/webview.js b/recipes/grammarly/webview.js new file mode 100644 index 0000000..afe3605 --- /dev/null +++ b/recipes/grammarly/webview.js | |||
@@ -0,0 +1,9 @@ | |||
1 | const _path = _interopRequireDefault(require('path')); | ||
2 | |||
3 | function _interopRequireDefault(obj) { | ||
4 | return obj && obj.__esModule ? obj : { default: obj }; | ||
5 | } | ||
6 | |||
7 | module.exports = Ferdium => { | ||
8 | Ferdium.injectCSS(_path.default.join(__dirname, 'style.css')); | ||
9 | }; | ||