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
- Go to the Mathswatch Autosolver page on GreasyFork.
- 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
- Visit the Mathswatch website:
https://vle.mathswatch.co.uk
.
- Press
Ctrl + X
to trigger the script. The script will capture the question image and send it to Gemini for analysis.
- 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.