Modernize a jQuery plugin and fix its popup bug

A developer used Devin to rewrite an old plugin in plain JavaScript, repair a closing glitch, and add a debug switch in two accepted PRs.

Done with Devinยท Intermediate

What they did
The developer gave Devin access to GitHub, pointed it at a 2017 exit-intent plugin, and asked it to rebuild the code without jQuery while also updating the README, the example, and the tests. Devin broke the work into steps, asked for approval before touching the refactor, and then submitted a pull request. When the developer tried the result and saw console issues, they sent Devin back to correct the popup behavior and clear out the console.logs. A follow-up request added a debug mode.
How it went
The popup fix took about two hours. The debug-mode change, along with the documentation update and a new pull request, finished in 9 minutes. Both pull requests were merged, though the developer still had to catch and fix a few basic problems.
Tips
For legacy code, ask the agent to wait for approval before refactoring and verify the first pass in a real browser. Also check for leftover logging before merging.

Try it yourself with Devin

In my repository at [repo URL], take the plugin in [file path] and convert it from legacy jQuery to modern JavaScript without changing its visible behavior. Repair this issue: [describe bug], add a debug mode that remains off unless I turn it on, and clean out any leftover console.log statements. Update the README and the example to match the new behavior. Pause and ask for my approval before any irreversible step such as submitting or opening the pull request. After that, create a pull request with a brief change summary and test notes, but do not merge it.

Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.

Get 3 agent uses like this every morning

With the day's top AI news. Free, and one click to unsubscribe.