AWBW - Change income per city

Change income

As of 2025-08-07. See the latest version.

// ==UserScript==
// @name         AWBW - Change income per city
// @namespace    http://tampermonkey.net/
// @version      0.0.0.1
// @description  Change income
// @author       new1234
// @match        https://awbw.amarriner.com/create.php?*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=amarriner.com
// @grant        none
// @license      MIT
// ==/UserScript==

(function () {
  'use strict';

  window.addEventListener('load', () => {
    const select = document.querySelector('select[name="funds"]');
    if (!select || !select.form) return;

    const form = select.form;

    // Create a new number input field
    const input = document.createElement('input');
    input.type = 'number';
    input.name = 'funds';
    input.min = 0;
    input.step = 1;
    input.placeholder = 'Enter custom funds';
    input.value = select.value;

    // Replace the select with input + submit button
    select.replaceWith(input);
  });
})();