From 18801ed0c02627e87639dc0848cab44dacc18be2 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Mon, 18 Apr 2022 06:51:50 -0500 Subject: Rebranded from 'ferdi' to 'ferdium' (companion changes for the main repo PR #2) --- recipes/instagram/index.js | 4 ++-- recipes/instagram/package.json | 2 +- recipes/instagram/webview.js | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'recipes/instagram') diff --git a/recipes/instagram/index.js b/recipes/instagram/index.js index 928d5b1..d8beaa5 100644 --- a/recipes/instagram/index.js +++ b/recipes/instagram/index.js @@ -1,5 +1,5 @@ -module.exports = Ferdi => class Instagram extends Ferdi { +module.exports = Ferdium => class Instagram extends Ferdium { overrideUserAgent() { - return window.navigator.userAgent.replace(/(Ferdi|Electron)\/\S+ \([^)]+\)/g, '').trim(); + return window.navigator.userAgent.replace(/(Ferdium|Electron)\/\S+ \([^)]+\)/g, '').trim(); } }; diff --git a/recipes/instagram/package.json b/recipes/instagram/package.json index 7771412..820872c 100644 --- a/recipes/instagram/package.json +++ b/recipes/instagram/package.json @@ -1,7 +1,7 @@ { "id": "instagram", "name": "Instagram", - "version": "2.3.0", + "version": "2.4.0", "license": "MIT", "config": { "serviceURL": "https://instagram.com/direct/inbox", diff --git a/recipes/instagram/webview.js b/recipes/instagram/webview.js index e04a5c8..66d89e6 100644 --- a/recipes/instagram/webview.js +++ b/recipes/instagram/webview.js @@ -4,17 +4,17 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -module.exports = Ferdi => { +module.exports = Ferdium => { const getMessages = () => { const element = document.querySelector('a[href^="/direct/inbox"]'); - Ferdi.setBadge(element ? Ferdi.safeParseInt(element.textContent) : 0); + Ferdium.setBadge(element ? Ferdium.safeParseInt(element.textContent) : 0); }; - Ferdi.loop(getMessages); + Ferdium.loop(getMessages); // https://github.com/ferdium/ferdium-recipes/blob/9d715597a600710c20f75412d3dcd8cdb7b3c39e/docs/frontend_api.md#usage-4 // Helper that activates DarkReader and injects your darkmode.css at the same time - Ferdi.handleDarkMode((isEnabled, helpers) => { + Ferdium.handleDarkMode((isEnabled, helpers) => { if (isEnabled) { helpers.enableDarkMode(); if (!helpers.isDarkModeStyleInjected()) { @@ -26,5 +26,5 @@ module.exports = Ferdi => { } }); - Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); + Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); }; -- cgit v1.2.3-70-g09d2