Tweak the Web

Library · Work

GitHub: wrap long lines in code

Wraps long lines in file views so you never scroll sideways.

github.comFrom the Tweak the Web library

What it changes

It applies as the page loads and keeps working as the page updates. Turn it off any time and the page returns to normal.

Technical details
{
  "matches": [
    "github.com"
  ],
  "actions": [
    {
      "type": "css",
      "css": ".blob-code-inner, .react-code-text, .react-file-line, .react-code-line-contents, .markdown-body pre code {white-space:pre-wrap!important;word-break:break-all!important;overflow-wrap:anywhere!important;}"
    }
  ]
}
More rules

Using Claude, ChatGPT or another assistant? Ask it: “Add the GitHub: wrap long lines in code rule from Tweak the Web.”