AI Services Market
AI Services Market › Use cases › Software & DevOps
Software & DevOpsDone with Devin 2026-11-01

Refactor a legacy jQuery plugin and fix its bugs

Devin refactored a 2017 jQuery plugin, fixed a popup-not-closing bug and added a debug mode, producing two accepted PRs, though its first code left console.logs in.

Refactor a legacy jQuery plugin and fix its bugs preview
What They Did
The author connected Devin to GitHub and asked it to clone his 2017 exit-intent plugin, remove jQuery, refactor it, update the README and example, and test it. Devin planned the steps, asked once before refactoring, and opened a PR. The author ran the code, reported the console errors, and had Devin fix the bug and remove the console.logs. A second prompt asked for a debug mode.
How It Went
The popup-close fix took Devin about two hours. The debug mode took 9 minutes, including the README update and a new PR. Both PRs were merged, but the author had to step in on basic issues.
Worth Knowing
Devin plans now start at US$500/month. The author tested it free before general availability.
Try it yourself with Devin

In my repo [repo URL], refactor the legacy jQuery plugin at [file path] into clean modern JavaScript without changing its public behavior. Fix this bug: [describe bug, e.g. popup does not close on outside click], add an optional debug mode that is off by default, and make sure no stray console.log calls remain. Open a pull request with a summary of changes and tests, and do not merge it.

Read the original ↗

Do this with a skill.

These AI Services Market playbooks do this exact job.