This app runs inside the BotSurf browser. Don't have it yet? Get the app or extension now!
GitLab Merge Request Diff Counter
Developer Tools · All
0 installs · Verified BotGentz app
Launch App
Opens in BotSurf — try it free, no account needed.
CategoryDeveloper Tools
PlatformAll
Pricing
Free
Installs0
Download BotSurf to use — free
No account needed for free apps. Once BotSurf is open, find this app in Apps from the + menu.
Download for
iOS
App Store
Download for
Android
Google Play
Download for
Windows
.exe installer
Download for
macOS
.dmg universal
Download for
Linux
.AppImage
Try BotSurf in your browser — no install
Free to download on every platform. Comes pre-installed on BotFone, BotPad and BotFlip — with extra free apps included.
About this app
WHAT IT DOES
GitLab Merge Request Diff Counter analyzes merge request diff pages and provides a comprehensive summary of changes. It counts the number of changed files, total additions, total deletions, and overall lines changed. A file type breakdown categorizes changes by type—backend, frontend, config, tests, docs, assets, and other—so you can quickly see which areas of the codebase are most affected. The tool displays a list of the most modified files with visual bar charts showing additions vs. deletions per file. It also calculates an overall change size (Small, Medium, Large, or Huge) based on total lines changed, giving you an instant sense of the merge request's scope. You can copy the summary to your clipboard as plain text or export the full data as JSON for further analysis.
WHERE IT RUNS
This script runs on GitLab merge request pages (*.gitlab.com/*). It operates entirely within your browser tab, reading the page's DOM to locate diff file containers, filename elements, and line statistics. The script cannot access other tabs, your browsing history, bookmarks, downloads, or any data outside the current page. All settings—including file type breakdown visibility, large change highlighting, max files to show, auto-analyze preference, and change size badge visibility—are stored locally using GM_setValue and never transmitted anywhere.
HOW TO USE
After installing with the BotGentz extension, the script automatically analyzes merge request diff pages you view (if auto-analyze is enabled). The panel shows a summary with file count, additions, deletions, and total changes. A change size badge (Small/Medium/Large/Huge) provides an at-a-glance assessment. The file type breakdown shows how many files and lines changed in each category. The "Most Changed Files" section lists the top files by total changes, with bar charts showing additions (green) and deletions (red). Click "Analyze Diff" to manually trigger analysis if auto-analyze is off. Use "Copy Summary" to copy a plain text report to your clipboard, and "Export JSON" to export the full structured data. Adjust settings to control which sections are displayed and how many files are shown.
THE REAL MECHANISM
The script detects diff file containers using multiple selectors (.diff-file, .file-holder, .diff-content, [data-testid="diff-file"]) to handle different GitLab versions and UI variations. For each file, it extracts the filename from .file-name or .diff-filename elements, and retrieves addition/deletion counts from .line-stats or .diff-stats elements using regular expressions to parse "+N" and "-N" patterns. If line stats aren't found, the script counts diff lines directly by checking for .added or .removed classes on individual line elements. The file type categorization uses a rule-based system that checks file extensions and path patterns to assign each file to a category (backend, frontend, config, tests, docs, assets, or other). The change size calculation is based on total lines changed with thresholds: Small (
Similar Apps
Hardhat Console
Interactive Hardhat console with JSON-RPC execution, contract debugging, and chunked log scanning for local development.
Multisig Threshold Adjuster
Update the required confirmation threshold for your multisig wallet with preview and validation.
Page Load Speed Display
Track page load performance with DOM ready, load time, DNS, TCP, request, response, and resource metrics in a floating overlay.
Heading Structure Outliner
Extract and display all page headings in a hierarchical outline with counts, level analysis, and click-to-highlight navigation.
Calldata Size Optimization Analyzer
Analyze calldata size and gas costs to identify optimization opportunities for reducing transaction costs in smart contracts.
Bulk Backlink Checker Across Domains
Bulk backlink checker across domains. Enter source and target URLs, find backlinks, and export reports.