Bonk input field fix

Removes unnecessary password autofills

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey 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 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.

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

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

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         Bonk input field fix
// @version      1.5
// @author       Salama
// @description  Removes unnecessary password autofills
// @match        https://bonk.io/gameframe-release.html
// @run-at       document-end
// @grant        none
// @supportURL   https://discord.gg/Dj6usq7ww3
// @namespace https://greasyfork.org/users/824888
// ==/UserScript==

[...document.querySelectorAll("input[type=text]")].forEach(e => {
    if(!e.classList.contains("loginwindow_field")) {
        e.type="salama";
        e.autocomplete="off";
    }
});

let elem = document.getElementById("passwordChangeContainer")
elem.outerHTML = `<form id="passwordChangeContainer" class="windowShadow">${elem.innerHTML}</form>`;

console.log("Unnecessary password autofills removed");