Mathspace Tutor Box

Adds a tutor box to Mathspace

目前为 2025-02-14 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name Mathspace Tutor Box
  3. // @namespace http://tampermonkey.net/
  4. // @version 2.0
  5. // @description Adds a tutor box to Mathspace
  6. // @author Your Name
  7. // @match *://*.mathspace.co/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. function createTutorBox() {
  15. // Remove existing box if it already exists
  16. let existingBox = document.getElementById("mathspace-tutor");
  17. if (existingBox) existingBox.remove();
  18.  
  19. // Create the floating box
  20. let tutorBox = document.createElement("div");
  21. tutorBox.id = "mathspace-tutor";
  22. tutorBox.style.position = "fixed";
  23. tutorBox.style.bottom = "20px";
  24. tutorBox.style.right = "20px";
  25. tutorBox.style.background = "#0073e6";
  26. tutorBox.style.color = "white";
  27. tutorBox.style.padding = "15px";
  28. tutorBox.style.borderRadius = "8px";
  29. tutorBox.style.boxShadow = "0px 0px 10px rgba(0,0,0,0.2)";
  30. tutorBox.style.cursor = "pointer";
  31. tutorBox.style.zIndex = "1000";
  32. tutorBox.style.fontSize = "16px";
  33. tutorBox.style.fontWeight = "bold";
  34. tutorBox.innerText = "Mathematical Tutor";
  35.  
  36. // Add click event
  37. tutorBox.addEventListener("click", function() {
  38. tutorBox.innerText = "Analysing...";
  39. setTimeout(() => {
  40. tutorBox.innerText = "Analysing the Question...";
  41. }, 2000);
  42. });
  43.  
  44. // Add to the page
  45. document.body.appendChild(tutorBox);
  46. }
  47.  
  48. // Run the function after the page loads
  49. window.onload = createTutorBox;
  50. })();
  51.  
  52.  

QingJ © 2025

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