diff options
author | 2020-04-27 20:02:54 +0000 | |
---|---|---|
committer | 2020-04-27 20:02:54 +0000 | |
commit | 33e211fa2494de716a3514cde492333b2aa444d5 (patch) | |
tree | a82866e2553f071842c2b16107f4ed4c166ce4c5 /uncompressed | |
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)
Diffstat (limited to 'uncompressed')
-rw-r--r-- | uncompressed/hangouts/index.js | 20 | ||||
-rw-r--r-- | uncompressed/hangouts/package.json | 2 |
2 files changed, 13 insertions, 9 deletions
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>", |