# Diffinity: Get PR Review from LLM in the Simplest Way Diffinity is a Chrome extension designed to streamline the code review…

Latest Version

Version
1.1
Update
November 9, 2024
Size
73.0KiB
Developer
Category
Users
84
Rating
5 ★
Manifest Version
3
Web Store Status
Languages Support
English (United States)
See more
Permissions
ActiveTab
Storage
Scripting
See more

Diffinity Extension

# Diffinity: Get PR Review from LLM in the Simplest Way

Diffinity is a Chrome extension designed to streamline the code review process for GitHub pull requests by automatically fetching the PR diff and preparing a review request in ChatGPT. This extension provides a seamless way to gather and send PR data for analysis and feedback.

## Features

- Adds a \"Do Diffinity\" button to GitHub pull request pages.
- Fetches the diff data from GitHub PRs.
- Opens a new tab to ChatGPT with the diff data preloaded for review.
- Supports custom review language settings.

## Installation

1. Clone this repository or download the source code as a ZIP file.
2. Open Chrome and navigate to `chrome://extensions/`.
3. Enable \"Developer mode\" using the toggle in the top right corner.
4. Click \"Load unpacked\" and select the folder containing the extension files.

## Usage

1. Install the extension.
2. Set the review language by clicking the extension icon and entering your preferred language.
3. Navigate to a GitHub pull request page.
4. Click the \"Do Diffinity\" button that appears in the pull request header.
5. That's it! The extension will handle the rest and open ChatGPT with the review request.

## Explanation of Key Files

- **background.js**: Contains background event listeners for extension initialization, message handling, and script execution.
- **chatgpt_injector.js**: Injects text into ChatGPT’s input field and simulates a button click to submit the PR review request.
- **content.js**: Injects the \"Do Diffinity\" button into GitHub PR pages and handles user interactions.
- **popup.html, popup.js, popup.css**: Files for the extension popup interface, allowing users to set their preferred language.
- **manifest.json**: The configuration file defining the extension’s content scripts and background services.

## Contributing

Feel free to fork this repository and submit pull requests. Contributions and feedback are highly appreciated!

## License

This project is licensed under the MIT License.

## Disclaimer

This extension is not affiliated with GitHub or ChatGPT. Use it at your own discretion and ensure compliance with any relevant terms of service.

---

Thank you for using Diffinity. We hope this tool makes your code review process smoother and more efficient!
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 3, "name": "Diffinity", "version": "1.1", "permissions": ["activeTab", "storage", "scripting"], "host_permissions": [ "https://patch-diff.githubusercontent.com/*", "https://chatgpt.com/*" ], "background": { "service_worker": "background.js" }, "content_scripts": [ { "matches": ["https://github.com/*"], "js": ["content.js"], "css": ["styles.css"] }, { "matches": ["https://chatgpt.com/*"], "js": ["chatgpt_injector.js"] } ], "action": { "default_popup": "popup.html" }, "icons": { "16": "icons/icon16.png", "32": "icons/icon32.png", "48": "icons/icon48.png", "128": "icons/icon128.png" }}
Read more

Similar Extensions

icon

HTML to React & Figma by Magic Patterns Extension · Developer Tools 84 10 ★ 392KiB

icon

Tooltip Dictionary Extension · Productivity 84 48 ★ 299KiB

icon

백준허브(BaekjoonHub) Extension · Productivity 84 26 ★ 222KiB

icon

Rayst - Reveal the web Extension · Developer Tools 84 20 ★ 455KiB

icon

Material Icons for GitHub Extension · Developer Tools 84 77 ★ 1.05MiB

icon

Vercel Extension · Developer Tools 84 24 ★ 34.3KiB

icon

일일일 - 스타트업 사람들을 위한 감도 높은 정보 큐레이션 플랫폼 Extension · News & Weather 84 3 ★ 3.7MiB

icon

LeetHub Extension · Developer Tools 84 92 ★ 22.43MiB

icon

LocatorJS Extension · Developer Tools 84 64 ★ 190KiB

icon

Hackertab.dev - developer news Extension · Developer Tools 84 168 ★ 525KiB

icon

서핏 - 매일 성장하는 사람들의 커리어 플랫폼 Extension · Productivity 84 55 ★ 27.29MiB

icon

apic cors extension Extension · Productivity 84 0 ★ 75.58KiB

icon

Refined GitHub Extension · Developer Tools 84 213 ★ 572KiB

icon

네이버 영어사전 (Naver English Dictionary) Extension · Productivity 84 730 ★ 693KiB

icon

오늘 뭐임 Extension · Productivity 84 6 ★ 5.6MiB

icon

Video CC translator Extension · Productivity 84 89 ★ 295KiB

icon

Starsucks Extension · Productivity 84 17 ★ 60.19KiB

icon

GPT Review Extension · Productivity 84 2 ★ 2.5MiB

icon

Medium Parser Extension · Productivity 84 6 ★ 590KiB

icon

Qodo Merge: AI-Powered Code Reviews & Chat Extension · Developer Tools 84 32 ★ 389KiB

icon

DeFi Lens Extension · Productivity 84 6 ★ 276KiB

icon

Velog Helper Extension · Social & Communication 84 4 ★ 28.4KiB

icon

codereview.gpt Extension · Developer Tools 84 9 ★ 1.29MiB

icon

OPFS Explorer Extension · Developer Tools 84 14 ★ 15.57KiB