From f9376cd8e17de02718cd55df37d53a63c15f5d23 Mon Sep 17 00:00:00 2001 From: feildmaster Date: Mon, 12 Aug 2024 18:37:09 -0500 Subject: [PATCH] fix: 3rd party scripts running --- changelog.md | 3 +++ src/electron.js | 9 ++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/changelog.md b/changelog.md index 5e280fa..c2a77fa 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,8 @@ # UnderScript App Changelog +## Version 1.5.5 (2024-08-12) +1. Fixed cloudflare (again) + ## Version 1.5.4 (2023-07-10) 1. Fixed cloudflare captcha diff --git a/src/electron.js b/src/electron.js index f8e96c2..7e27d93 100644 --- a/src/electron.js +++ b/src/electron.js @@ -30,8 +30,11 @@ function createWindow() { "'unsafe-eval'", "'unsafe-inline'", 'https://www.google-analytics.com', + 'https://www.googletagmanager.com', 'https://*.cloudflare.com', - 'worker-src blob:' + ';', + 'worker-src', + 'blob:', ].join(' '), ], } @@ -47,7 +50,7 @@ function createWindow() { click: () => win.setFullScreen(!win.isFullScreen()), }], }); - + win.loadURL('https://undercards.net/SignIn'); win.setMenu(null); win.maximize(); @@ -88,7 +91,7 @@ function createWindow() { if (process.env.LOCAL_DIR) checkVersion().catch(console.error); const { host, protocol } = new URL(url); if (host === 'undercards.net') return; - + event.preventDefault(); if (protocol !== 'http:' && protocol !== 'https:') return; if (host === 'www.undercards.net') {