From 7e4b67b0af03ccfc22a6fef60a79b83956511369 Mon Sep 17 00:00:00 2001 From: David Kennedy Souza Araújo Date: Sat, 6 Aug 2022 09:50:24 -0300 Subject: Add Grammarly recipe (#140) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: André Oliveira <37463445+SpecialAro@users.noreply.github.com> --- recipes/grammarly/darkmode.css | 69 ++++++++++++++++++++++++++++++++++++++++++ recipes/grammarly/icon.svg | 25 +++++++++++++++ recipes/grammarly/index.js | 6 ++++ recipes/grammarly/package.json | 9 ++++++ recipes/grammarly/style.css | 3 ++ recipes/grammarly/webview.js | 9 ++++++ 6 files changed, 121 insertions(+) create mode 100644 recipes/grammarly/darkmode.css create mode 100644 recipes/grammarly/icon.svg create mode 100644 recipes/grammarly/index.js create mode 100644 recipes/grammarly/package.json create mode 100644 recipes/grammarly/style.css create mode 100644 recipes/grammarly/webview.js (limited to 'recipes') 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 @@ +body { + background: black; +} + +div[class*='assistant-successLens'] * { + color: white; +} + +div[class^='assistant-successLens'] * { + color: white; +} + +div[class*='editorContent'] * { + background: none; + color: white; +} + +div[class*='lensviewContentWrapper'] * { + background: none; + color: white; +} + +div[class*='assistant-successLens'] { + background: none; +} + +div[class*='toolbar'] * +{ + background: none; +} + +div[class*='assistant-sidebarWrapper'] * +{ + background: none; + color: white; +} + +/* Blue text highlight */ +@keyframes fbb6yts { + to { + background-color: rgb(219,235,255,0.2) + } +} +/* Red text highlight */ +@keyframes f4cpmj7 { + to { + background-color:rgba(255,219,227,0.2) + } +} + +.fullCard { + border-bottom: 1px solid rgba(255,255,255,0.5); + border-right: 1px solid rgba(255,255,255,0.2); + border-radius: calc(0.5px * var(--rem)); +} + +div[class*='miniCard']:hover +{ + background: none; + border-bottom: 1px solid rgba(255,255,255,0.5); + border-right: 1px solid rgba(255,255,255,0.2); + border-radius: calc(0.5px * var(--rem)); +} + +div[class*='navigation-outcome']:not([data-disabled=true])[data-active=true], +div[class*='navigation-outcome']:not([data-disabled=true])[data-hovered=true] +{ + background: rgba(255,255,255,0.1) !important; +} 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 @@ + + + + + + + + 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 @@ +module.exports = Ferdium => + class Grammarly extends Ferdium { + async validateUrl() { + return true; + } + }; 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 @@ +{ + "id": "grammarly", + "name": "Grammarly", + "version": "1.0.0", + "license": "MIT", + "config": { + "serviceURL": "https://app.grammarly.com/" + } +} 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 @@ +html { + background: #FFFFFF; +} \ 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 @@ +const _path = _interopRequireDefault(require('path')); + +function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; +} + +module.exports = Ferdium => { + Ferdium.injectCSS(_path.default.join(__dirname, 'style.css')); +}; -- cgit v1.2.3-70-g09d2