aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/instagram-direct-messages/index.js
diff options
context:
space:
mode:
authorLibravatar André Oliveira <37463445+SpecialAro@users.noreply.github.com>2023-01-19 22:50:09 +0000
committerLibravatar GitHub <noreply@github.com>2023-01-19 22:50:09 +0000
commit6a12a29e1224939aa115a14715a4415e14b0b389 (patch)
treeac0d61fcde02e061d833a8ce9986417d2a092dab /recipes/instagram-direct-messages/index.js
parentfix: add mastodon hosted option and remove teamId (diff)
downloadferdium-recipes-6a12a29e1224939aa115a14715a4415e14b0b389.tar.gz
ferdium-recipes-6a12a29e1224939aa115a14715a4415e14b0b389.tar.zst
ferdium-recipes-6a12a29e1224939aa115a14715a4415e14b0b389.zip
feat: add several recipes (#293)
Diffstat (limited to 'recipes/instagram-direct-messages/index.js')
-rw-r--r--recipes/instagram-direct-messages/index.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/recipes/instagram-direct-messages/index.js b/recipes/instagram-direct-messages/index.js
new file mode 100644
index 0000000..bfa1949
--- /dev/null
+++ b/recipes/instagram-direct-messages/index.js
@@ -0,0 +1,7 @@
1"use strict";
2
3module.exports = Ferdium => class Messenger extends Ferdium {
4 overrideUserAgent() {
5 return window.navigator.userAgent.replace(/(Ferdium|Electron)(\S+\s)/g, '');
6 }
7};