diff options
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 | }; | ||