• Stars
    star
    2,098
  • Rank 22,008 (Top 0.5 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 8 years ago
  • Updated 6 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🚀 Browser extension to display size of each file, download link and copy file contents directly to the clipboard

Enhanced GitHub

Browser extension that adds useful features on GitHub website


Chrome Web Store Chrome Web Store

Firefox Users Firefox Add-on

Microsoft Edge Add-on

Build Status

github-plus - Chrome Extension to display file size, download & copy link | Product Hunt Embed

Supported Browsers

Chrome Install extension from Chrome Web Store

Firefox Install add-on from Firefox Add-ons

Microsoft Edge Install extension from Microsoft Edge Add-ons

Website

Home

Features

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

The extension handles the SPA behavior of GitHub website from v3.0.0 onwards :)

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

Permissions required

  • "*://*.github.com/*" - for running on github.com domain.
  • storage - for storing GitHub access token on your local system. GitHub Access token is required for private repos and for handling API rate-limiting issues.
  • webRequest - to support GitHub being a single-page-application now. Read this detailed blog.
  • webNavigation - to support GitHub being a single-page-application now. Read this detailed blog.

Author

Varun Malhotra Varun Malhotra Website twitter StackOverflow LinkedIn GitHub

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 click on Options in the dropdown menu.

  5. Enter the valid GitHub Access Token

  6. Click on SAVE and Enjoy the benefits.

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

Screenshots

New GitHub Design - Blog

Screenshot of each file size and it's download link

Screenshot of Copy file contents and download link

Old GitHub Design

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 yarn dev for generating packaged folder specifically for extension stuff.
  3. Go to extension page. For chrome extensions chrome://extensions, Firefox Add-ons about:debugging, and Microsoft Edge Extensions edge://extensions/.
  4. Enable developer mode
  5. Click on load unpacked extension and select the generated folder.
  6. [Admin Access Only] - run yarn build for generating zip file to be uploaded on Chrome Web Store, Firefox Add-ons, and Microsoft Edge Addons.

PRs are most welcome :)

Changelog

CHANGELOG.md

Contributors

Author: Varun Malhotra(@softvar)

Code Contributors

This project exists thanks to all the people who contribute. [Contribute].

Financial Contributors

Become a financial contributor and help us sustain our community. [Contribute]

Individuals

Organizations

Support this project with your organization. Your logo will show up here with a link to your website. [Contribute]

Policy

Refer Privacy Policy.

Enhanced GitHub Extension doesn't collect/share/care about your data at all.

Asks for GitHub Access Token for private repos and if Rate Limiting is your concern.

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-2021 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.

More Repositories

1

secure-ls

🔒 Secure localStorage data with high level of encryption and data compression
JavaScript
645
star
2

awesome-web-storage

😎 Everything you need to know about Client-side Storage.
443
star
3

json2html

🐍 Python module for converting complex JSON to HTML Table representation
Python
274
star
4

awesome-startups

❤️ A curated list of awesome startups
PHP
244
star
5

translatr

💬 Translate to multiple languages at once
HTML
157
star
6

super-workers

🐴 Distribute load on front-end via parallelism
JavaScript
95
star
7

json2html-flask

🐍 Webapp to convert complex JSON Object to HTML representation
HTML
94
star
8

simplegist

Advanced python wrapper for Github Gist API
Python
64
star
9

producthunt_globe

🌎 A visualization of ProductHunt users throughout the globe
JavaScript
27
star
10

awesome-products-by-women

👭 Awesome products made by female founders
JavaScript
23
star
11

ns2-roadv

roadv protocol implementation in ns2
C++
21
star
12

softvar.github.io

My new website using materializecss framework
HTML
21
star
13

save-the-forest

🔥 Canvas based HTML5 game where a player has to extinguish fire on trees using his magical water tank in order to save the Burning Forest.
JavaScript
18
star
14

colorschemr

🎨 Color Palettes one will fall in love with <3
HTML
15
star
15

dont_risk_your_life

Save the LOST man
JavaScript
9
star
16

new-site-engine

My site's engine using hyde and materialize framework
CSS
9
star
17

pyShare

It's a local file sharing app in python(GUI with Kivy)
Python
8
star
18

frontend-boilerplate

Frontend application scaffolding to start immediate development ❤️
JavaScript
8
star
19

js

Every possible javascript utility you ever need
JavaScript
6
star
20

fOS-Gisthub

Managing Github-Gists in firefox OS(smartphone)
JavaScript
4
star
21

resumizr

Real time Resume Builder, auto-filling data from connected social networking sites
JavaScript
3
star
22

bridge-the-gap

Entry game for js13kGames 2015
CSS
3
star
23

goldMiner

Simple game in C
C++
3
star
24

my-terminal

💠 Theme, Font, iterm2 preferences, zsh & plugins and my other terminal stuff
3
star
25

OpenGL

Great collection of useful utility programs in openGL(c++)
C++
2
star
26

countdown-begins

Free yourself and start doing what actually matters to you 😍
2
star
27

collabdraw

Collaborative drawing app in Node.js
2
star
28

proword

console and text mode based Wordpad Application developed in C
C++
2
star
29

fOS-Calculator

Calculator for firefox OS
JavaScript
2
star
30

experiment

Play on!
1
star
31

softvar

Hello, there!
1
star
32

ld-test

JavaScript
1
star
33

old-softvar.github.io

my website cum blog
CSS
1
star
34

System_Networking_Programming

Different networking programs written in python language.
Shell
1
star
35

site-engine

driver for my website cum blog
CSS
1
star
36

test-codesandbox

Testing codesandbox...
JavaScript
1
star
37

Melange

Design room for static webpage designing
PHP
1
star
38

test-diaglog

HTML
1
star
39

embed-jsfiddle

Web Component wrapper for jsFiddle's widgets using Polymer
JavaScript
1
star