You are browsing as a guest. Sign up (or log in) to start making projects!

34m 21s logged

So I’ve been building this browser extension called Xraps Maths it’s basically a sidekick that helps me solve maths homework without having to copy‑paste or switch tabs like a maniac.I started with some existing code from another project (ZeroScript) but stripped out all the Roblox/MCP stuff because that’s not what I needed. I kept the smart bits the provider system that can talk to different AI websites and reshaped it into a maths‑solving assistant.What’s already working:I can load the extension into Chrome, and it pops up a little panel on Gemini and DeepSeek.I click “Start”, it injects a system prompt that tells the AI to speak in a special format (with ###XRAPS_ANSWER### blocks).I tested it with something like 3x + 7 = 22 and Gemini actually gave back the answer in the right format so the communication works.There was a bug where the panel got stuck on “Reading answer” even though the AI had already replied but I’ve been tweaking the DeepSeek adapter to fix that (I updated deepseek.js myself).Now I’m pushing it further:I want the extension to also work on Sparx Maths that’s the site where I actually see the question. Instead of making myself copy the question and paste it into Gemini, I want a single button that:Takes a screenshot of the visible question on Sparx.Automatically sends that screenshot to whichever AI I have open (Gemini or DeepSeek).The AI solves it and sends the answer back.The Xraps panel shows the answer + working, right there on Sparx.So I’m basically building a bridge: Sparx → screenshot → AI → answer back to Sparx, all without leaving the page.The new stuff I just added:A background script that does the screenshot magic and talks across tabs.A Sparx‑specific provider that adds the “📸 Solve this question” button to the panel.Cross‑tab messaging so Sparx can ask Gemini/DeepSeek to solve a question and wait for the answer.What’s still a bit sketchy:DeepSeek doesn’t support images, so screenshots sent to DeepSeek will fall back to just the question text (which might still work for text‑based questions).The Sparx DOM is unpredictable the selectors I used might need tweaking if Sparx changes their layout.The answer parsing bug I saw earlier might still bite me (but I’m already on it).Overall vibe:I’ve got a solid foundation the AI providers work, the panel shows up, and the screenshot pipeline is set up. Now it’s about testing it on real Sparx pages, ironing out the rough edges, and making sure the answer shows up cleanly.I’m basically building a maths‑solving cyborg that lives in my browser pretty cool, honestly. 😄

0
3

Comments 0

No comments yet. Be the first!