Mathswatch Autosolver

Takes a screenshot of Mathswatch question images, sends it to Gemini, and displays the answer in a beautifully styled new tab.

作者
vovvy-ops
日安装量
0
总安装量
4
评分
0 0 0
版本
1.0
创建于
2025-02-17
更新于
2025-02-17
大小
10.0 KB
许可证
MIT
适用于

Description

Mathswatch Autosolver is a userscript designed to automate the process of solving questions on the Mathswatch platform. The script captures images of questions, sends them to Gemini (a Google AI model), and displays the generated answers in a styled, user-friendly new tab.

Features

  • Image Capture: Automatically captures images of questions with the class img-responsive col-xs-12 img-question on the Mathswatch website.
  • Gemini AI Integration: Sends the image to Gemini (Google AI) for analysis and answer generation.
  • Answer Display: Displays the answer in a beautifully styled new tab with the option to copy it to the clipboard.
  • Customizable Prompts: Allows users to modify the prompt sent to Gemini for a more tailored response.

Installation

1. Install a Userscript Manager

To use this script, you need a userscript manager. Recommended options:

2. Add the Script to GreasyFork

  1. Go to the Mathswatch Autosolver page on GreasyFork.
  2. Click Install this script and follow the instructions provided by GreasyFork.

3. API Key Setup

When you first run the script, it will prompt you to enter your Google AI Studio API key (if it's not already saved).

  • After entering your API key, it will be stored for future use, so you won't have to input it again.

4. Use the Script

  1. Visit the Mathswatch website: https://vle.mathswatch.co.uk.
  2. Press Ctrl + X to trigger the script. The script will capture the question image and send it to Gemini for analysis.
  3. Once the answer is returned, it will appear in a new tab, and you can easily copy the answer to your clipboard.

Configuration

You can customize the default prompt by editing the DEFAULT_PROMPT variable in the script. The default prompt is:

const DEFAULT_PROMPT = "Analyze the image and identify any questions. Answer the questions with as much detail as possible. Show your reasoning.";

Disclaimer

This script is provided "as is" and is for educational purposes only. I am not responsible for any damage, misuse, or unintended consequences arising from the use of this script. Please use it responsibly and ensure that it complies with the terms of service of the Mathswatch platform and Google. By using this script, you accept all risks associated with its use.

License

This script is open-source and licensed under the MIT License.

Support

If you run into any issues or have questions, feel free to open an issue on the GitHub repository.

QingJ © 2025

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