Skip to content

Conversation

@erbanku
Copy link

@erbanku erbanku commented Jan 10, 2026

Tested, it works.

Description

Adds user-configurable settings to independently toggle Enhanced GitHub features in different UI locations (sidebar, file browser rows, file view page).

Changes

Options UI

image
  • Added "Display Settings" section with 4 checkboxes:
    • Show repository size (sidebar)
    • Show file size in file browser rows
    • Show download links in file browser rows and file view
    • Show copy file contents button in file view

Implementation

  • Added 4 setting keys to CommonEnum.js (SHOW_REPO_SIZE, SHOW_FILE_SIZE, SHOW_DOWNLOAD_LINK, SHOW_COPY_FILE_BUTTON)
  • Updated inject.js to load settings from chrome.storage.sync on page load
  • Modified domUtil.js and handlersUtil.js to check settings before rendering UI elements

Storage Structure

{
  'show-repo-size': true,
  'show-file-size': true,
  'show-download-link': true,
  'show-copy-file-button': true
}

https://github.com/erbanku/enhanced-github/pull/1

Copilot AI and others added 6 commits January 10, 2026 14:35
Co-authored-by: erbanku <79493862+erbanku@users.noreply.github.com>
Co-authored-by: erbanku <79493862+erbanku@users.noreply.github.com>
Co-authored-by: erbanku <79493862+erbanku@users.noreply.github.com>
Copilot AI and others added 4 commits January 10, 2026 15:28
Co-authored-by: erbanku <79493862+erbanku@users.noreply.github.com>
Co-authored-by: erbanku <79493862+erbanku@users.noreply.github.com>
Co-authored-by: erbanku <79493862+erbanku@users.noreply.github.com>
@erbanku
Copy link
Author

erbanku commented Jan 10, 2026

Plus: Add optional code block line wrapping for GitHub markdown
erbanku#2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant