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-08 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         MathPapa No-Pro Calculator 
// @namespace    http://waa.ai/spinpy
// @version      1.3
// @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)';
    document.getElementById("myaid").style = 'display: none;'; // hides the ad, cuz why not

    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);
    document.getElementById("soloutbuttondiv").addEventListener("click", noPro);
    document.getElementById("solstepshowlink").addEventListener("click", noPro);
    document.getElementById("solpickdiv").addEventListener("click", noPro);
})();