Bedrock Learning Autosolver

Takes a screenshot of Bedrock Learning, sends it to Gemini, and displays the answer in a beautifully styled new tab.

Author
vovvy-ops
Daily installs
0
Total installs
5
Ratings
0 0 0
Version
1.3
Created
2025-02-16
Updated
2025-02-17
Size
9.33 KB
License
MIT
Applies to

Before we start I want to make one thing clear.This is for EDUCATIONAL PURPOSES only and I am NOT responsible for any damages caused. Please read ALL the script to avoid errors.
Bedrock Learning Gemini Solver
A Tampermonkey script that captures a screenshot of Bedrock Learning questions, sends it to Google's Gemini API, and displays the answer in a beautifully styled new tab.

Features
Screenshot Capture: Automatically captures the entire webpage.
Gemini API Integration: Sends the screenshot to Google's Gemini API for analysis.
Customizable Prompt: Allows users to provide additional instructions or use the default prompt.
Stylish Answer Display: Displays the answer in a new tab with a modern, animated background.
Copy to Clipboard: Easily copy the answer to your clipboard with one click.
Prerequisites
Tampermonkey Extension:

Install the Tampermonkey extension for your browser (Chrome, Firefox, Edge, etc.).
Google Gemini API Key:

Obtain an API key from Google AI Studio.
The script will prompt you to enter your API key the first time you use it,you do NOT need to modify any of the code.
Installation
Copy the Script:

Copy the script from the GitHub repository or the raw script file.
Create a New Script in Tampermonkey:

Open the Tampermonkey dashboard.
Click on Create a new script.
Paste the Script:

Delete the default template and paste the copied script into the editor.
Save the Script:

Click File > Save or press Ctrl + S to save the script.
Enable the Script:

Ensure the script is enabled in the Tampermonkey dashboard.
Also make sure to go to the puzzle (extension) icon near the top,press manage extensions and then enable developer mode,or else it will NOT work.
Usage
Navigate to Bedrock Learning:

Go to the Bedrock Learning website and log in to your account.
Trigger the Script:

Press Ctrl + X on any Bedrock Learning page.
The script will capture a screenshot and prompt you for additional instructions (optional).
View the Answer:

The script will open a new tab with the answer displayed in a stylish interface.
You can copy the answer to your clipboard by clicking the 📋 Copy button.
Customization
Default Prompt
The script uses the following default prompt for Gemini:

You can modify this prompt in the script by editing the DEFAULT_PROMPT constant.

Background Animation
The script includes a dynamic background that transitions between blue, green, and pink. You can customize the colors and animation speed by editing the @keyframes hueShift section in the CSS.

Troubleshooting
API Key Not Working
Ensure you have entered a valid Gemini API key.
If the key is incorrect, the script will display an error message.
Screenshot Issues
If the screenshot is not capturing the entire page, adjust the html2canvas settings in the script.
Script Not Working
Ensure the script is enabled in Tampermonkey.
Check the browser console for errors (press F12 and go to the Console tab).
License
This project is licensed under the MIT License.

Acknowledgments
Tampermonkey for providing the userscript manager.
Google Gemini API for the AI capabilities.
html2canvas for the screenshot functionality.


Github project:

github.com/vovvy-ops/bedrock_learning-hack/blob/