Miracle Scripts Settings Reset

Reset the settings of Miracle Scripts

Verze ze dne 19. 06. 2020. Zobrazit nejnovější verzi.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         Miracle Scripts Settings Reset
// @namespace    Miracle Scripts
// @version      1.0.0
// @description  Reset the settings of Miracle Scripts
// @author       Samira
// @license      MIT
// @icon         https://abload.de/img/mh3k8o.png
// @match        *://agma.io/
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    swal({
        title: "Confirm",
        text: 'If you click "Yes", you will reset the Miracle Scripts settings to the defaults.',
        type: "warning",
        showCancelButton: true,
        confirmButtonColor: "#4CAF50",
        confirmButtonText: "Yes, reset settings",
        cancelButtonText: "No, cancel"
    }, function() {

        localStorage.setItem('miracleScripts', '');

        swal({
            title: "Success",
            text: 'Settings have been reset. Disable or remove the resetter script now. Afterwards reload the Agma.io website!',
            type: "success"
        });
    });

    console.log('🌸 Miracle Scripts Settings Resetter successfully loaded!');

})();