aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/hangoutschat
diff options
context:
space:
mode:
authorLibravatar iconeb <iconeb@yahoo.it>2023-08-23 17:58:33 +0200
committerLibravatar GitHub <noreply@github.com>2023-08-23 16:58:33 +0100
commitee5695b4e9c56a05e2d837f397bdd6df9aeabc62 (patch)
treede50b01a7f33cab6e61c93cc9604c451e75e16ea /recipes/hangoutschat
parentRemove background color css of custom websites (#405) (diff)
downloadferdium-recipes-ee5695b4e9c56a05e2d837f397bdd6df9aeabc62.tar.gz
ferdium-recipes-ee5695b4e9c56a05e2d837f397bdd6df9aeabc62.tar.zst
ferdium-recipes-ee5695b4e9c56a05e2d837f397bdd6df9aeabc62.zip
Allow gchat login page (#403)
Co-authored-by: André Oliveira <oliveira.andrerodrigues95@gmail.com> Co-authored-by: Vijay A <vraravam@users.noreply.github.com>
Diffstat (limited to 'recipes/hangoutschat')
-rw-r--r--recipes/hangoutschat/package.json2
-rw-r--r--recipes/hangoutschat/webview.js9
2 files changed, 10 insertions, 1 deletions
diff --git a/recipes/hangoutschat/package.json b/recipes/hangoutschat/package.json
index 614cf90..bea0afb 100644
--- a/recipes/hangoutschat/package.json
+++ b/recipes/hangoutschat/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "hangoutschat", 2 "id": "hangoutschat",
3 "name": "Hangouts Chat", 3 "name": "Hangouts Chat",
4 "version": "1.7.0", 4 "version": "1.8.0",
5 "license": "MIT", 5 "license": "MIT",
6 "aliases": [ 6 "aliases": [
7 "google-chat", 7 "google-chat",
diff --git a/recipes/hangoutschat/webview.js b/recipes/hangoutschat/webview.js
index 75c53d0..7f2acf2 100644
--- a/recipes/hangoutschat/webview.js
+++ b/recipes/hangoutschat/webview.js
@@ -5,6 +5,15 @@ function _interopRequireDefault(obj) {
5const _path = _interopRequireDefault(require('path')); 5const _path = _interopRequireDefault(require('path'));
6 6
7module.exports = Ferdium => { 7module.exports = Ferdium => {
8 // if the user is on googlechat landing page, go to the login page.
9 if (
10 location.hostname === 'workspace.google.com' &&
11 location.href.includes('products/chat/')
12 ) {
13 location.href =
14 'https://accounts.google.com/AccountChooser?continue=https://chat.google.com/?referrer=2';
15 }
16
8 // class corresponding to the red badge that is visible for direct messages 17 // class corresponding to the red badge that is visible for direct messages
9 const directMessageSelector = 'div.V6.CL.su.ahD.X9.Y2 span.akt span.XU'; 18 const directMessageSelector = 'div.V6.CL.su.ahD.X9.Y2 span.akt span.XU';
10 19