Death Logger

if you die you unlog instantly (from your account (Only for quickplay!))

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Death Logger
// @namespace    https://bonk.io/
// @version      0.1
// @description  if you die you unlog instantly (from your account (Only for quickplay!))
// @author       iNeonz
// @match        https://bonk.io/*
// @run-at       document-idle
// @grant        none
// @icon         https://www.google.com/s2/favicons?sz=64&domain=bonk.io
// ==/UserScript==
setInterval(() => {
    if ((!document.getElementById("ingametextwarning_spectating") || document.getElementById("ingametextwarning_spectating").style.display == 'none' || document.getElementById("ingametextwarning_spectating").style.visibility == 'hidden') && document.getElementById("gamerenderer") && document.getElementById("gamerenderer").children[0] && document.getElementById("gamerenderer").children[0].style.visibility != 'hidden' && document.getElementById("gamerenderer").style.visibility != 'hidden' && document.getElementById("ingamewinner") && document.getElementById("ingamewinner").style.visibility != 'hidden'){
        if (document.getElementById("ingamewinner_bottom") && document.getElementById("ingamewinner_top").textContent != document.getElementById("pretty_top_name").textContent){
            document.getElementById("pretty_top_exit").click();
            setTimeout(() => {
                document.getElementById("leaveconfirmwindow_okbutton").click();
            setTimeout(() => {
                document.getElementById("pretty_top_exit").click();
            },5);
            },5);
        }
    }
},500);