diff options
author | 2023-12-23 04:59:03 +1000 | |
---|---|---|
committer | 2023-12-22 11:59:03 -0700 | |
commit | df10736dc9da80e0b40006300ecdba70005a6804 (patch) | |
tree | 81527adccd127b32c74c60a8d868f05ccc84b977 /recipes/threads/index.js | |
parent | fix: invalid volta versions in package.json (#481) (diff) | |
download | ferdium-recipes-df10736dc9da80e0b40006300ecdba70005a6804.tar.gz ferdium-recipes-df10736dc9da80e0b40006300ecdba70005a6804.tar.zst ferdium-recipes-df10736dc9da80e0b40006300ecdba70005a6804.zip |
[feature] Added threads recipe (#484)
Co-authored-by: Marek Knappe <mknappe@perceptyx.com>
Diffstat (limited to 'recipes/threads/index.js')
-rw-r--r-- | recipes/threads/index.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/recipes/threads/index.js b/recipes/threads/index.js new file mode 100644 index 0000000..66df129 --- /dev/null +++ b/recipes/threads/index.js | |||
@@ -0,0 +1,8 @@ | |||
1 | module.exports = Ferdium => | ||
2 | class Threads extends Ferdium { | ||
3 | overrideUserAgent() { | ||
4 | return window.navigator.userAgent | ||
5 | .replaceAll(/(Ferdium|Electron)\/\S+ \([^)]+\)/g, '') | ||
6 | .trim(); | ||
7 | } | ||
8 | }; | ||