MCPcopy
hub / github.com/Justineo/github-hovercard

github.com/Justineo/github-hovercard @main sqlite

repository ↗ · DeepWiki ↗
1,144 symbols 2,610 edges 41 files 45 documented · 4%
README

GitHub Hovercard

Neat hovercards for GitHub.

Installation

Published versions

Manual installation

See Adding and removing extensions for Microsoft Edge.

See Using Extension Builder to learn how to activate the Extension Builder. And then:

  1. Use “Add Extension” instead of “Create Extension”.
  2. Choose the downloaded directory.
  3. Click “install” to load the extension.

FAQ

  • Why and how should I bind my access token and which scopes should I allow?

    GitHub limits unauthenticated API requests to 60 per hour but after binding your access token you will be able to enjoy the rate limit of 5,000 requests per hour.

    Triple click on any hovercard and the access token form will pop out.

    You should at lease add permission for public_repo to enable star/unstar, and user:follow to enable follow/unfollow.

  • How can I make the follow/unfollow button work?

    First you need to provide an access token with adequate scopes.

  • Why Chrome warns me the extension might read my browser history?

    It's because GitHub Hovercard uses webNavigation module to dynamically inject content scripts (to support GitHub Enterprise). See #34. GitHub Hovercard won't track or record any of these private data.

  • Why can GitHub Hovercard's demo page find out I have installed the extension or not?

    In Chrome/Opera it's allowed to get this information through the API while in Firefox the extension will add a special attribute (data-github-hovercard) to the page's body element so that the demo page can find out if the user has installed GitHub Hovercard. It's all about user experience and the extension itself won't track or record these data.

  • Why access token doesn't work?

    Now GitHub Hovercard is saving user's private access token into localStorage. localStorage has a limit of 5MB and the problem might be other extensions have consumed too much storage that GitHub Hovercard failed to save access tokens.

Options

For browser extension versions, GitHub Hovercard provide following options:

  • Domain

    Use this option to set custom domains for your GitHub Enterprise service. Note that you don't need to set github.com because it's always included. You may be asked to grant additional permissions for those domains.

  • Theme

    The theme of hovercards. Defaults to GitHub-style hovercards. You can set it back to the classic dark style in the options.

  • Delay

    If you don't want the hovercards to pop up instantly, you may set a delay before they try to retrieve data and appear.

  • Disable Projects

    You can disable hovercards on project pages for less interference.

  • Placement

    You can set the default placement of the hovercards.

  • Readme

    You may disable readme content for repo cards if you don't need it.

  • Show self

    You may choose if you want to show user hovercard for yourself.

Screenshots

Users in trending repo avatars

Users in feeds

Repos in feeds

Issues

Pull requests

Commits

Known issues

For unauthenticated requests, GitHub API has a fairly low request limit.

~~In later versions I might introduce access tokens to increase this limit.~~

~~Working on it.~~

Authentication is supported from v0.0.7.

Acknowledgements

Core symbols most depended-on inside this repo

get
called by 184
extensions/edge/backgroundScriptsAPIBridge.js
DoActionAndLog
called by 116
extensions/edge/backgroundScriptsAPIBridge.js
remove
called by 84
extensions/edge/backgroundScriptsAPIBridge.js
set
called by 83
extensions/edge/backgroundScriptsAPIBridge.js
contains
called by 70
extensions/edge/backgroundScriptsAPIBridge.js
LogUnavailbleApi
called by 55
extensions/edge/backgroundScriptsAPIBridge.js
setTimeout
called by 43
extensions/edge/timeout.js
r
called by 37
src/jquery.js

Shape

Function 811
Method 257
Class 76

Languages

TypeScript100%

Modules by API surface

extensions/edge/backgroundScriptsAPIBridge.js245 symbols
extensions/edge/contentScriptsAPIBridge.js90 symbols
src/jquery.js84 symbols
extensions/github-hovercard.safariextension/jquery.js84 symbols
extensions/firefox/jquery.js84 symbols
extensions/edge/jquery.js84 symbols
extensions/chrome/jquery.js84 symbols
src/hovercard.js41 symbols
extensions/github-hovercard.safariextension/hovercard.js41 symbols
extensions/firefox/hovercard.js41 symbols
extensions/edge/hovercard.js41 symbols
extensions/chrome/hovercard.js41 symbols

Dependencies from manifests, versioned

@primer/octicons11.0.0 · 1×
cheerio1.0.0-rc.2 · 1×
datauri1.0.5 · 1×
del2.2.2 · 1×
eslint5.14.1 · 1×
gulp4.0.0 · 1×
gulp-buble0.9.0 · 1×
gulp-concat2.6.1 · 1×
gulp-cssnano2.1.3 · 1×
gulp-rename1.2.2 · 1×
gulp-replace0.5.4 · 1×
gulp-stylus2.7.0 · 1×

For agents

$ claude mcp add github-hovercard \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact