Greasy Fork镜像 支持简体中文。

Mathspace Answer Extractor

Extracts answers from Mathspace

目前為 2025-02-13 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name Mathspace Answer Extractor
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  5. // @description Extracts answers from Mathspace
  6. // @author You
  7. // @match *://*.mathspace.co/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. function getAnswer() {
  15. // Select all span elements with mathquill-command-id
  16. let answerElements = document.querySelectorAll('span[mathquill-command-id]');
  17. if (answerElements.length > 0) {
  18. let answers = Array.from(answerElements).map(span => span.innerText).join(", ");
  19. alert("Answer: " + answers);
  20. console.log("Answer:", answers);
  21. } else {
  22. console.log("Answer not found! Check the selector.");
  23. }
  24. }
  25.  
  26. // Run the script after the page loads
  27. setTimeout(getAnswer, 3000); // Wait 3 seconds to ensure content is loaded
  28. })();
  29.  
  30.  

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址