Better GitHub

A series of tweaks to make it easier to use GitHub.com
Premium users can view and search full source code, and see the source code differences between two versions.
Upgrade to premium
manifest.json
{
  "manifest_version": 3,
  "name": "Better GitHub",
  "version": "0.0.18",
  "description": "Tweaks for GitHub.com",
  "host_permissions": [
    "*://github.com/*"
  ],
  "icons": {
    "16": "icon16.png",
    "48": "icon48.png",
    "128": "icon128.png"
  },
  "action": {
    "default_icon": {
      "16": "icon16.png",
      "32": "icon48.png"
    },
    "default_popup": "popup/popup.html"
  },
  "commands": {
    "Expand All Hidden Items": {
      "suggested_key": {
        "default": "Ctrl+Shift+E",
        "mac": "Command+Shift+E"
      },
      "description": "Expand all hidden history items in issue. #path:^.*/issues/.*$"
    },
    "Hide All Commits From Issue": {
      "suggested_key": {
        "default": "Ctrl+Shift+H",
        "mac": "Command+Shift+H"
      },
      "description": "Hide all commit items in issue history. #path:^.*/issues/.*$"
    },
    "Generate List of Pending PRs": {
      "description": "Generate a list of pending PRs ahead of this PR. #path:^.*/pull/\\d+/commits/?$"
    }
  },
  "background": {
    "scripts": [
      "background.js"
    ]
  },
  "content_scripts": [
    {
      "matches": [
        "https://github.com/*"
      ],
      "js": [
        "lib.js",
        "pages/issues.js",
        "pages/prs.js",
        "index.js"
      ],
      "css": [
        "styles.css"
      ]
    }
  ],
  "options_ui": {
    "page": "options/options.html"
  },
  "permissions": [
    "storage"
  ],
  "browser_specific_settings": {
    "gecko": {
      "id": "better-github@windmuller.ca"
    }
  }
}