Miracle Scripts Settings Reset

Reset the settings of Miracle Scripts

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey, Greasemonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

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.

(I already have a user style manager, let me install it!)

// ==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!');

})();