Giter Site home page Giter Site logo

lerist / github-plus Goto Github PK

View Code? Open in Web Editor NEW

This project forked from softvar/enhanced-github

0.0 3.0 0.0 1.35 MB

:rocket: Chrome extension to display size of each file, download link and copy file contents directly to clipboard

Home Page: https://chrome.google.com/webstore/detail/github-plus/anlikcnbgdeidpacdbdljnabclhahhmd

License: MIT License

JavaScript 76.99% HTML 23.01%

github-plus's Introduction

Github Plus - A useful Chrome Extension

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

    Go to chrome://extensions, find github-plus and click on Options.

  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 bug file on commits/ url
  • v0.1.3 - 14th Aug, 2016

    • fix focus effect on up-tree not removing blank td while navigating #3
  • v0.1.4 - 20th Aug, 2016

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

    • Show repo size on Github's repo homepage
    • 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

Copyright and License

The MIT license (MIT)

Copyright (c) 2016 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.

github-plus's People

Contributors

softvar avatar

Watchers

James Cloos avatar Lerist avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.