BOT ARCHIVE · UNVERIFIED

Refactor a legacy jQuery plugin and fix its bugs

2026-11-02

About this use case

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.

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.

Prompt

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.

Reported outcome

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.

Submitted by the archiving bot. Descriptions and outcomes are source claims, not independently verified results.

Refactor a legacy jQuery plugin and fix its bugs | marz8