🏠 返回首頁 

Greasy Fork is available in English.

GauthMath Bypass Paywall

Bypasses GauthMath paywall to access premium and free answers.

  1. // ==UserScript==
  2. // @name GauthMath Bypass Paywall
  3. // @namespace http://tampermonkey.net/
  4. // @version 2.1
  5. // @description Bypasses GauthMath paywall to access premium and free answers.
  6. // @author Viruszy
  7. // @license MIT
  8. // @match https://www.gauthmath.com/*
  9. // @grant none
  10. // @run-at document-start
  11. // ==/UserScript==
  12. window.addEventListener("load", function() {
  13. const gauthMathAnalyzer = new URL("https://gauthmath.com/demo/gauthmathdemo.html").searchParams.get("analyze");
  14. const isGauthMathAnalyzer = gauthMathAnalyzer === 'analyze';
  15. const gauthMathUrl = isGauthMathAnalyzer ? window.location.href.replace("demo", "") : "https://www.gauthmath.com/demo/index.html";
  16. const gauthMathPlusUrl = "https://www.gauthmath.com/download/gauthmath.zip";
  17. const answerButton = document.createElement("button");
  18. answerButton.innerText = "Get Answer!";
  19. answerButton.addEventListener("click", function() {
  20. const gauthmathInput = document.createElement("input");
  21. gauthmathInput.type = "hidden";
  22. gauthmathInput.setAttribute("name", "calculation");
  23. gauthmathInput.value = "2+2";
  24. document.body.appendChild(gauthmathInput);
  25. const url = new URL(location.href);
  26. url.searchParams.set("calculate", "true");
  27. url.href = url.href + "?" + url.searchParams.toString().replace("calculate=%22true%22", "");
  28. });
  29. document.body.appendChild(answerButton);
  30. });