Mathswatch Autosolver

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

Tendrás que instalar una extensión para tu navegador como Tampermonkey, Greasemonkey o Violentmonkey si quieres utilizar este script.

You will need to install an extension such as Tampermonkey to install this script.

Tendrás que instalar una extensión como Tampermonkey o Violentmonkey para instalar este script.

Necesitarás instalar una extensión como Tampermonkey o Userscripts para instalar este script.

Tendrás que instalar una extensión como Tampermonkey antes de poder instalar este script.

Necesitarás instalar una extensión para administrar scripts de usuario si quieres instalar este script.

(Ya tengo un administrador de scripts de usuario, déjame instalarlo)

Tendrás que instalar una extensión como Stylus antes de poder instalar este script.

Tendrás que instalar una extensión como Stylus antes de poder instalar este script.

Tendrás que instalar una extensión como Stylus antes de poder instalar este script.

Para poder instalar esto tendrás que instalar primero una extensión de estilos de usuario.

Para poder instalar esto tendrás que instalar primero una extensión de estilos de usuario.

Para poder instalar esto tendrás que instalar primero una extensión de estilos de usuario.

(Ya tengo un administrador de estilos de usuario, déjame instalarlo)

Autor
vovvy-ops
Instalaciones diarias
2
Instalaciones totales
146
Calificaciones
0 0 0
Versión
1.0
Creado
17/2/2025
Actualizado
17/2/2025
Tamaño
9,97 KB
Licencia
MIT
Funciona en

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.