diff options
author | Vijay A <vraravam@users.noreply.github.com> | 2022-04-18 06:51:50 -0500 |
---|---|---|
committer | Vijay A <vraravam@users.noreply.github.com> | 2022-04-18 06:51:50 -0500 |
commit | 18801ed0c02627e87639dc0848cab44dacc18be2 (patch) | |
tree | 15e56ba66c68bf7b4594e6c9fdef44e037b4be31 /recipes/erepublik | |
parent | Remove deprecated webPreference flag (diff) | |
download | ferdium-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/erepublik')
-rw-r--r-- | recipes/erepublik/index.js | 2 | ||||
-rw-r--r-- | recipes/erepublik/package.json | 2 | ||||
-rw-r--r-- | recipes/erepublik/webview.js | 14 |
3 files changed, 9 insertions, 9 deletions
diff --git a/recipes/erepublik/index.js b/recipes/erepublik/index.js index 12cdd73..dd41f72 100644 --- a/recipes/erepublik/index.js +++ b/recipes/erepublik/index.js | |||
@@ -1 +1 @@ | |||
module.exports = Ferdi => class erepublik extends Ferdi {}; | module.exports = Ferdium => Ferdium; | ||
diff --git a/recipes/erepublik/package.json b/recipes/erepublik/package.json index 7eb95d7..9e88f35 100644 --- a/recipes/erepublik/package.json +++ b/recipes/erepublik/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "erepublik", | 2 | "id": "erepublik", |
3 | "name": "eRepublik", | 3 | "name": "eRepublik", |
4 | "version": "1.1.3", | 4 | "version": "1.2.0", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://erepublik.com" | 7 | "serviceURL": "https://erepublik.com" |
diff --git a/recipes/erepublik/webview.js b/recipes/erepublik/webview.js index a47c57d..2f5bc9f 100644 --- a/recipes/erepublik/webview.js +++ b/recipes/erepublik/webview.js | |||
@@ -2,7 +2,7 @@ const _path = _interopRequireDefault(require('path')); | |||
2 | 2 | ||
3 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | 3 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
4 | 4 | ||
5 | module.exports = Ferdi => { | 5 | module.exports = Ferdium => { |
6 | const getMessages = () => { | 6 | const getMessages = () => { |
7 | const elementNotify = document.querySelectorAll('.notify'); | 7 | const elementNotify = document.querySelectorAll('.notify'); |
8 | const elementFeed = document.querySelectorAll('.unreadCounter.ng-binding.ng-scope'); | 8 | const elementFeed = document.querySelectorAll('.unreadCounter.ng-binding.ng-scope'); |
@@ -12,18 +12,18 @@ module.exports = Ferdi => { | |||
12 | 12 | ||
13 | for (const element of elementNotify) { | 13 | for (const element of elementNotify) { |
14 | const splitText = element.title.split(':'); | 14 | const splitText = element.title.split(':'); |
15 | countNotify += Ferdi.safeParseInt(splitText[1]); | 15 | countNotify += Ferdium.safeParseInt(splitText[1]); |
16 | } | 16 | } |
17 | 17 | ||
18 | for (const element of elementFeed) { | 18 | for (const element of elementFeed) { |
19 | countFeed += Ferdi.safeParseInt(element.textContent); | 19 | countFeed += Ferdium.safeParseInt(element.textContent); |
20 | } | 20 | } |
21 | 21 | ||
22 | Ferdi.setBadge(countNotify, countFeed); | 22 | Ferdium.setBadge(countNotify, countFeed); |
23 | }; | 23 | }; |
24 | 24 | ||
25 | Ferdi.loop(getMessages); | 25 | Ferdium.loop(getMessages); |
26 | 26 | ||
27 | Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); | 27 | Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); |
28 | Ferdi.injectCSS(_path.default.join(__dirname, 'crpk-resources/fonts.css')); | 28 | Ferdium.injectCSS(_path.default.join(__dirname, 'crpk-resources/fonts.css')); |
29 | }; | 29 | }; |