Agar Delta fix

Fix for Agar.io Delta extension: Google sign-in O auth. 400 request malformed

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Agar Delta fix
// @namespace    https://greasyfork.org/scripts/567383
// @version      2026-2-24
// @description  Fix for Agar.io Delta extension: Google sign-in O auth. 400 request malformed
// @author       Gemini, XComhghall
// @match        https://agar.io/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    const windowOpenOld = window.open;

    window.open = function(url, name, specs) {
        if (typeof url === 'string' && url.includes('accounts.google.com/o/oauth2/auth/oauthchooseaccount')) {
            const urlNew = url.replace('/o/oauth2/auth/oauthchooseaccount', '/o/oauth2/auth') + `&nonce=${Date.now()}&prompt=select_account`; // .replace('gsiwebsdk=2', '');

            console.log('[Delta fix] Google O auth.', urlNew);

            return windowOpenOld(urlNew, name, specs);
        }
        return windowOpenOld(url, name, specs);
    };

    // console.log('[Delta fix] Active');
})();