aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/superhuman
diff options
context:
space:
mode:
authorLibravatar Vijay A <vraravam@users.noreply.github.com>2022-04-18 06:51:50 -0500
committerLibravatar Vijay A <vraravam@users.noreply.github.com>2022-04-18 06:51:50 -0500
commit18801ed0c02627e87639dc0848cab44dacc18be2 (patch)
tree15e56ba66c68bf7b4594e6c9fdef44e037b4be31 /recipes/superhuman
parentRemove deprecated webPreference flag (diff)
downloadferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.tar.gz
ferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.tar.zst
ferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.zip
Rebranded from 'ferdi' to 'ferdium' (companion changes for the main repo PR #2)
Diffstat (limited to 'recipes/superhuman')
-rw-r--r--recipes/superhuman/index.js4
-rw-r--r--recipes/superhuman/package.json2
-rw-r--r--recipes/superhuman/webview.js6
3 files changed, 6 insertions, 6 deletions
diff --git a/recipes/superhuman/index.js b/recipes/superhuman/index.js
index 44bc55d..3cae124 100644
--- a/recipes/superhuman/index.js
+++ b/recipes/superhuman/index.js
@@ -1,6 +1,6 @@
1module.exports = Ferdi => class SuperHuman extends Ferdi { 1module.exports = Ferdium => class SuperHuman extends Ferdium {
2 overrideUserAgent() { 2 overrideUserAgent() {
3 // TODO: Rather than hardcoding like this, the user should set it for their individual installation of Ferdi 3 // TODO: Rather than hardcoding like this, the user should set it for their individual installation of Ferdium
4 return 'Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10136'; 4 return 'Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10136';
5 } 5 }
6}; 6};
diff --git a/recipes/superhuman/package.json b/recipes/superhuman/package.json
index 4cb98f3..e4ea8ab 100644
--- a/recipes/superhuman/package.json
+++ b/recipes/superhuman/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "superhuman", 2 "id": "superhuman",
3 "name": "Superhuman", 3 "name": "Superhuman",
4 "version": "1.1.2", 4 "version": "1.2.0",
5 "license": "MIT", 5 "license": "MIT",
6 "repository": "https://github.com/CrystalLarsh/franz-superhuman-recipe", 6 "repository": "https://github.com/CrystalLarsh/franz-superhuman-recipe",
7 "config": { 7 "config": {
diff --git a/recipes/superhuman/webview.js b/recipes/superhuman/webview.js
index 697efa6..0652545 100644
--- a/recipes/superhuman/webview.js
+++ b/recipes/superhuman/webview.js
@@ -1,8 +1,8 @@
1module.exports = (Ferdi) => { 1module.exports = (Ferdium) => {
2 const getMessages = () => { 2 const getMessages = () => {
3 const mentions = document.querySelectorAll('.chat-line .mentioned').length; 3 const mentions = document.querySelectorAll('.chat-line .mentioned').length;
4 Ferdi.setBadge(mentions, 0); 4 Ferdium.setBadge(mentions, 0);
5 }; 5 };
6 6
7 Ferdi.loop(getMessages); 7 Ferdium.loop(getMessages);
8}; 8};