Line break at view width rather than wrapping at 'words' on github code views and reviews.

Latest Version

Version
1.0
Update
January 3, 2025
Size
3.48KiB
Developer
Category
Users
0
Rating
0 ★
Manifest Version
3
Web Store Status
Languages Support
English
See more
Permissions
See more

Github code line wrap Extension

Github web UI does a thing in code reviews where it word wraps like a word processor rather than like a code text editor. This can make Python code, especially, difficult to review, when it incorrectly looks like the indent level has changed, or obscures the fact that the indent level has changed.

This extension simply adds a bit of extra CSS on github pages that makes the wrap occur at the first character that exceeds the width of the view, rather than moving \"words\" (which are often entire lines of code).

Some issues reported about the default behavior:
https://github.com/orgs/community/discussions/45559
https://github.com/orgs/community/discussions/42298#discussioncomment-4725465

Note, the bookmarklet solution in that second link unwraps lines entirely, which some people may find preferable, but with long lines it can cause a mess of overlapped text. This extension, on the other hand, makes the content stay within the pane width, and wraps like vim's default behavior.
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "name": "Github code line wrap", "manifest_version": 3, "version": "1.0", "description": "Line break at view width rather than wrapping at 'words' on github code views and reviews.", "content_scripts": [ { "matches": ["*://github.com/*", "*://*.github.com/*"], "css": ["fix_wrap.css"] } ]}
Read more

Similar Extensions

icon

GoFullPage - Full Page Screen Capture Extension · Developer Tools 0 77052 ★ 1.81MiB

icon

ColorZilla Extension · Developer Tools 0 3845 ★ 410KiB

icon

JSON Formatter Extension · Developer Tools 0 1859 ★ 19.86KiB

icon

User-Agent Switcher for Chrome Extension · Developer Tools 0 2631 ★ 132KiB

icon

Lighthouse Extension · Developer Tools 0 318 ★ 50.7KiB

icon

Similarweb - Website Traffic & SEO Checker Extension · Developer Tools 0 3255 ★ 1.19MiB

icon

SEOquake Extension · Developer Tools 0 2529 ★ 1.5MiB

icon

Clear Cache Extension · Developer Tools 0 1124 ★ 616KiB

icon

Postman Interceptor Extension · Developer Tools 0 957 ★ 478KiB

icon

ModHeader - Modify HTTP headers Extension · Developer Tools 0 1061 ★ 676KiB

icon

Selenium IDE Extension · Developer Tools 0 286 ★ 3.96MiB

icon

SEO META in 1 CLICK Extension · Developer Tools 0 1108 ★ 462KiB

icon

Stylus Extension · Developer Tools 0 1101 ★ 1.01MiB

icon

CSS Peeper Extension · Developer Tools 0 363 ★ 279KiB

icon

WhatRuns Extension · Developer Tools 0 398 ★ 290KiB

icon

Color Picker for Chrome™ Extension · Developer Tools 0 118 ★ 194KiB

icon

SelectorsHub - XPath Helper Extension · Developer Tools 0 1384 ★ 556KiB

icon

BuiltWith Technology Profiler Extension · Developer Tools 0 407 ★ 54.1KiB

icon

Fake Filler Extension · Developer Tools 0 752 ★ 536KiB

icon

Detailed SEO Extension Extension · Developer Tools 0 193 ★ 266KiB

icon

Responsive Viewer Extension · Developer Tools 0 298 ★ 639KiB

icon

JSON Viewer Pro Extension · Developer Tools 0 137 ★ 349KiB

icon

Grepper Extension · Developer Tools 0 405 ★ 1.41MiB

icon

Requestly - Intercept, Modify & Mock HTTP Requests Extension · Developer Tools 0 1227 ★ 876KiB