From 31de1c9a043eeb7f7fd72947458bb4563b482427 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hora=C8=9Biu=20Mlendea?= Date: Sat, 27 Aug 2022 10:51:34 +0300 Subject: [PATCH 1/2] Updated the user agents --- scripts/main.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/main.js b/scripts/main.js index d9d2fcb..cbcf285 100644 --- a/scripts/main.js +++ b/scripts/main.js @@ -6,17 +6,17 @@ const { switchFullscreenState } = require('./windowManager.js'); var homePage = 'https://play.geforcenow.com'; var userAgent = - 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.64 Safari/537.36'; // Linux + 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.101 Safari/537.36'; // Linux if (process.argv.includes('--spoof-chromeos')) { userAgent = - 'Mozilla/5.0 (X11; CrOS x86_64 14588.98.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.59 Safari/537.36'; // ChromeOS + 'Mozilla/5.0 (X11; CrOS x86_64 14909.100.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.83 Safari/537.36'; // ChromeOS app.commandLine.appendSwitch('disable-features', 'UserAgentClientHint'); } if (process.argv.includes('--spoof-windows')) { userAgent = - 'Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4951.41 Safari/537.36'; // Windows + 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36'; // Windows app.commandLine.appendSwitch('disable-features', 'UserAgentClientHint'); } @@ -150,4 +150,4 @@ var homePage = 'https://play.geforcenow.com'; if (process.platform !== 'darwin') { app.quit(); } - }); \ No newline at end of file + }); From 9ae1ee03a443e1b6e3c45b99d50bc027ddb997e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hora=C8=9Biu=20Mlendea?= Date: Sat, 27 Aug 2022 10:52:09 +0300 Subject: [PATCH 2/2] Version bump --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3c825ce..0529105 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "geforcenow-electron", "appId": "com.github.hmlendea.${name}", "productName": "GeForce NOW", - "version": "1.8.0", + "version": "1.9.0", "description": "A Linux desktop web app for GeForce NOW", "main": "scripts/main.js", "scripts": {