diff options
author | Mahadevan Sreenivasan <mahadevan_sv@yahoo.com> | 2020-04-27 20:02:54 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-27 20:02:54 +0000 |
commit | 33e211fa2494de716a3514cde492333b2aa444d5 (patch) | |
tree | a82866e2553f071842c2b16107f4ed4c166ce4c5 | |
parent | Repackage corrupted recipes (diff) | |
download | ferdium-recipes-33e211fa2494de716a3514cde492333b2aa444d5.tar.gz ferdium-recipes-33e211fa2494de716a3514cde492333b2aa444d5.tar.zst ferdium-recipes-33e211fa2494de716a3514cde492333b2aa444d5.zip |
Pasting text from clipboard into hangouts prepends it (#142)
-rw-r--r-- | all.json | 2 | ||||
-rw-r--r-- | archives/hangouts.tar.gz | bin | 60787 -> 60751 bytes | |||
-rw-r--r-- | uncompressed/hangouts/index.js | 20 | ||||
-rw-r--r-- | uncompressed/hangouts/package.json | 2 |
4 files changed, 14 insertions, 10 deletions
@@ -334,7 +334,7 @@ | |||
334 | "featured": false, | 334 | "featured": false, |
335 | "id": "hangouts", | 335 | "id": "hangouts", |
336 | "name": "Hangouts", | 336 | "name": "Hangouts", |
337 | "version": "1.0.2", | 337 | "version": "1.0.4", |
338 | "icons": { | 338 | "icons": { |
339 | "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/hangouts/icon.png", | 339 | "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/hangouts/icon.png", |
340 | "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/hangouts/icon.svg" | 340 | "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/hangouts/icon.svg" |
diff --git a/archives/hangouts.tar.gz b/archives/hangouts.tar.gz index 23b1595..5daa1ae 100644 --- a/archives/hangouts.tar.gz +++ b/archives/hangouts.tar.gz | |||
Binary files differ | |||
diff --git a/uncompressed/hangouts/index.js b/uncompressed/hangouts/index.js index a671025..8be0a8e 100644 --- a/uncompressed/hangouts/index.js +++ b/uncompressed/hangouts/index.js | |||
@@ -1,11 +1,15 @@ | |||
1 | var os = require('os') | 1 | module.exports = (Franz) => |
2 | |||
3 | module.exports = Franz => | ||
4 | class hangouts extends Franz { | 2 | class hangouts extends Franz { |
5 | overrideUserAgent() { | 3 | modifyRequestHeaders() { |
6 | if (os.platform() == 'linux') | 4 | return [ |
7 | return "Mozilla/5.0 (X11; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0" | 5 | { |
8 | else | 6 | headers: { |
9 | return "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0"; | 7 | 'user-agent': window.navigator.userAgent.replace(/(Ferdi|Electron)\/\S+ \([^)]+\)/g, '').trim(), |
8 | }, | ||
9 | requestFilters: { | ||
10 | urls: ['*://*/*'], | ||
11 | }, | ||
12 | }, | ||
13 | ]; | ||
10 | } | 14 | } |
11 | }; | 15 | }; |
diff --git a/uncompressed/hangouts/package.json b/uncompressed/hangouts/package.json index f0e0184..c6edbbd 100644 --- a/uncompressed/hangouts/package.json +++ b/uncompressed/hangouts/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "hangouts", | 2 | "id": "hangouts", |
3 | "name": "Hangouts", | 3 | "name": "Hangouts", |
4 | "version": "1.0.2", | 4 | "version": "1.0.4", |
5 | "description": "Hangouts", | 5 | "description": "Hangouts", |
6 | "main": "index.js", | 6 | "main": "index.js", |
7 | "author": "Stefan Malzner <stefan@adlk.io>", | 7 | "author": "Stefan Malzner <stefan@adlk.io>", |