Back-to-AD-Button on Autodarts Board-Manager

Adding a button in the board manager back to Autodarts. Recommended for touchscreens in full screen mode

24.03.2024 itibariyledir. En son verisyonu görün.

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

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 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.

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

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         Back-to-AD-Button on Autodarts Board-Manager
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Adding a button in the board manager back to Autodarts. Recommended for touchscreens in full screen mode
// @author       benebelter
// @include      *://*.*.*.*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=autodarts.io
// @require      http://code.jquery.com/jquery-3.4.1.min.js
// @run-at       document-end
// @license      MIT 
// ==/UserScript==

(function() {
    'use strict';

    var elementExist = setInterval( () => {
        var elm = $(".css-1nlwyv4").length;
        if (  $(".css-1nlwyv4").length != 0) {

            $('.css-1nlwyv4:first-child').before('<div><a class="chakra-button css-1nlwyv4" href="https://play.autodarts.io">Back to Autodarts</a></div>');

            clearInterval(elementExist);
            console.log('erledigt');
            console.log('Länge : '+ $(".css-1nlwyv4").length );
        }
    }, 100);

})();