ChooseWeapons

Live good life!

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği indirebilmeniz için ayrıca Tampermonkey gibi bir eklenti kurmanız gerekmektedir.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         ChooseWeapons
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Live good life!
// @author       anonym
// @match        https://alpha.e-sim.org/battle.html?id=*
// @grant        none
// ==/UserScript==

(function() {
    const chooseWeapons = () => {
        const listWeapons = document.getElementById('selectable6');
        const q0Weapons = listWeapons.firstElementChild;
        const q5Weapons = listWeapons.lastElementChild;
        const weaponQuality = document.getElementById('weaponQuality');
            q0Weapons.classList.remove('ui-selected');
            q5Weapons.classList.add('ui-selected');
            weaponQuality.value = 5;
    };

let script = document.createElement('script');
	script.textContent = '(' + chooseWeapons + ')(jQuery, window);';
	document.body.appendChild(script);
})();