GauthMath Bypass Paywall

Bypasses GauthMath paywall to access premium and free answers.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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         GauthMath Bypass Paywall
// @namespace    http://tampermonkey.net/
// @version      2.1
// @description  Bypasses GauthMath paywall to access premium and free answers.
// @author       Viruszy
// @license      MIT
// @match        https://www.gauthmath.com/*
// @grant        none
// @run-at       document-start
// ==/UserScript==

window.addEventListener("load", function() {
	const gauthMathAnalyzer = new URL("https://gauthmath.com/demo/gauthmathdemo.html").searchParams.get("analyze");
	const isGauthMathAnalyzer = gauthMathAnalyzer === 'analyze';
	const gauthMathUrl = isGauthMathAnalyzer ? window.location.href.replace("demo", "") : "https://www.gauthmath.com/demo/index.html";

	const gauthMathPlusUrl = "https://www.gauthmath.com/download/gauthmath.zip";

	const answerButton = document.createElement("button");
	answerButton.innerText = "Get Answer!";
	answerButton.addEventListener("click", function() {
		const gauthmathInput = document.createElement("input");
		gauthmathInput.type = "hidden";
		gauthmathInput.setAttribute("name", "calculation");
		gauthmathInput.value = "2+2";
		document.body.appendChild(gauthmathInput);

		const url = new URL(location.href);
		url.searchParams.set("calculate", "true");
		url.href = url.href + "?" + url.searchParams.toString().replace("calculate=%22true%22", "");
	});
	document.body.appendChild(answerButton);
});