MathPapa No-Pro Calculator

Allows you to use MathPapa's calculator and show the steps for work without needing to buy the Pro version

目前為 2021-01-07 提交的版本,檢視 最新版本

// ==UserScript==
// @name         MathPapa No-Pro Calculator 
// @namespace    http://waa.ai/spinpy
// @version      1.1
// @description  Allows you to use MathPapa's calculator and show the steps for work without needing to buy the Pro version
// @author       Spinfal
// @match        https://mathpapa.com/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    document.getElementById("parse_btn").innerText = 'Go! (No-Pro)';

    function noPro() {
        var today = new Date();
        var month = today.getMonth();
        month = month + 1;
        var day = today.getDate();
        var year = today.getFullYear();
        var date = month + '/' + day + '/' + year;
        console.log(date);
        localStorage.removeItem('count.t-steps.total');
        localStorage.removeItem('count.p-steps.' + date);
    }

    document.getElementById("parse_btn").addEventListener("click", noPro);
})();