aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/threads/index.js
diff options
context:
space:
mode:
authorLibravatar Marek Knappe <marek.knappe@gmail.com>2023-12-23 04:59:03 +1000
committerLibravatar GitHub <noreply@github.com>2023-12-22 11:59:03 -0700
commitdf10736dc9da80e0b40006300ecdba70005a6804 (patch)
tree81527adccd127b32c74c60a8d868f05ccc84b977 /recipes/threads/index.js
parentfix: invalid volta versions in package.json (#481) (diff)
downloadferdium-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.js8
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 @@
1module.exports = Ferdium =>
2 class Threads extends Ferdium {
3 overrideUserAgent() {
4 return window.navigator.userAgent
5 .replaceAll(/(Ferdium|Electron)\/\S+ \([^)]+\)/g, '')
6 .trim();
7 }
8 };