Skip to content
🚀 Chrome extension to display size of each file, download link and copy file contents directly to clipboard
JavaScript HTML
Branch: master
Clone or download
softvar Merge pull request #46 from softvar/dependabot/npm_and_yarn/mixin-dee…
…p-1.3.2

Bump mixin-deep from 1.3.1 to 1.3.2
Latest commit 9a9d458 Nov 16, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Create FUNDING.yml Nov 16, 2019
icons Update logo and rename extension as per Github guidelines Aug 8, 2018
screenshots fix resolution of screenshots fro chrome webstore Aug 8, 2018
src Prettier changes, use clipboard as actual dep instead of requiring fr… Nov 16, 2019
.eslintignore replace gulp with webpack, add prettier, eslint, improve build process Nov 16, 2019
.eslintrc.json replace gulp with webpack, add prettier, eslint, improve build process Nov 16, 2019
.gitignore replace gulp with webpack, add prettier, eslint, improve build process Nov 16, 2019
.prettierrc
LICENSE Prettier changes, use clipboard as actual dep instead of requiring fr… Nov 16, 2019
README.md Prettier changes, use clipboard as actual dep instead of requiring fr… Nov 16, 2019
index.html Prettier changes, use clipboard as actual dep instead of requiring fr… Nov 16, 2019
manifest.json Update version in manifest Nov 16, 2019
options.html Prettier changes, use clipboard as actual dep instead of requiring fr… Nov 16, 2019
options.js Prettier changes, use clipboard as actual dep instead of requiring fr… Nov 16, 2019
package.json fix(package.json): Update webpack version to eliminate security vulne… Nov 16, 2019
popup.js Prettier changes, use clipboard as actual dep instead of requiring fr… Nov 16, 2019
webpack.config.js
yarn.lock Merge pull request #46 from softvar/dependabot/npm_and_yarn/mixin-dee… Nov 16, 2019

README.md

Enhanced GitHub

Chrome extension that adds useful features on GitHub website

Chrome Web Store Chrome Web Store Chrome Web Store

Link

🚀 Install extension from Chrome Web Store

Features

  • Displays repo size.
  • Displays each file size for every active branch (not applicable for folder / symlink).
  • Show download link for each individual file (not applicable for folder / symlink).
  • Copy file's contents directly to Clipboard (just won't work for markdown files).
  • Download file while viewing it's contents.

Note: For private repos(Issue #6), GitHub Access Token is required. Follow the steps mentioned below to add your GitHub Access Token.

Featured on ProductHunt

Author

Author Varun Malhotra

GitHub API Rate Limiting

Since this extension fetches data using GitHub public v3 API for showing file size and download_url, it consumes free quota which is very less GitHub API Rate Limiting.

To tackle this, create a new GitHub Access Token.

  1. If logged-in, visit https://github.com/settings/tokens

  2. Generate a new token, select repo scope and create a one.

  3. Copy and store the generated token which looks something like: 17c1a8d5b399d66b6212382d98d4c67a94d58955 (a fake one :P).

  4. Click on extension icon and then on Settings-Options on top right.

    OR

    Right click on enhanced-github extension and and click on Options in the dropdown menu.

  5. Enter the valid GitHub Access Token

  6. Click on SAVE and Enjoy the benefits.

This Chrome extension will automatically pick this valid access token and Bingo!

Screenshots

Screenshot of each file size and it's download link

Screenshot of Copy fle contents and download link

Libraries Used

Development

  1. Clone this repo
  2. Run gulp for generating packaged folder specifically for extension stuff.
  3. Go to chrome extensions chrome://extensions
  4. Enable developer mode
  5. Click on load unpacked extension and select the generated folder.
  6. [Admin Access Only] - run gulp zip for generating zip file to be uploaded on Chrome Web Store.

PRs are most welcome :)

Changelog

  • v0.1.1 - 13th Aug, 2016

      * Initial Launch
    
  • v0.1.2 - 14th Aug, 2016

      * Fix :: fix bug file on commits/<branch> url
    
  • v0.1.3 - 14th Aug, 2016

      * Fix :: fix focus effect on up-tree not removing blank td while navigating [#3](https://github.com/softvar/enhanced-github/pull/3)
    
  • v0.1.4 - 20th Aug, 2016

      * Improvement :: Better way of adding GitHub Access token - click extension or click options - Enhanced GitHub after opening *chrome://extension*
    
  • v0.1.5 - 22nd Aug, 2016

      * Feature :: Show repo size on GitHub's repo homepage
      * Fix :: bugfix of default branch other than **master**
    
  • v0.1.6 - 27th Aug, 2016

      * Fix :: not showing repo size when navigating back; fix no hash change detection
    
  • v0.1.7 - 10th Mar, 2017

      * Fix :: Add proper toggle class [github changed class names] which fixes flickering while hover
      * Fix :: Dont add `td` when there's no file present.
    
  • v0.1.8 - 10th Mar, 2017

      * Imporvemnt :: Use `clipboard` as a dependency and use it via `manifest.json`
    
  • v1.0.8 - 1st May, 2018

      * Fix :: Update classes to fix download. (Cmd/Ctr + Click) to download file
    
  • v2.0.0 - 09th Aug, 2018

      * Improvement :: Update logos/icons to adhere with [GitHub logo policy](https://github.com/logos)
      * Improvement :: Show GitHub-styled tooltip when hovering hover file download link
    
  • v2.0.2 - 26th Oct, 2018

      * Fix buttons alignment in options.js
    
  • v2.0.3 - 27th Oct, 2018

      * Fix selector path for inserting _copy file_ and _download file_ buttons while viewing a file
      * Minify content script thereby saving `4KB` per request. `inject.js` from `12KB` to `4KB`
    
  • v2.1.0 - 16th Nov, 2019

      * Remove gulp and used webpack for bundling and automation
      * Remove clipboard from source code and instead use a dep bundled with (minified)inject.js
      * Remove jshint and used eslint for linting
      * Used prettier for auto-formatting files
      * Used husky and lint-staged to configure and run git-hooks
    

Copyright and License

❗️ This extension is not sponsored by, endorsed by, or an official project of GitHub. This is a personal project and is developed solely for providing additional functionalities on GitHub website.

The MIT license (MIT)

Copyright (c) 2016-2019 Varun Malhotra

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

You can’t perform that action at this time.