Miracle Scripts Settings Reset

Reset the settings of Miracle Scripts

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         Miracle Scripts Settings Reset
// @namespace    Miracle Scripts
// @version      1.0.1
// @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!');

})();