Agar Delta fix

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

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

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

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==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');
})();