Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
81 lines (58 sloc) 2.75 KB
layout author title date desc img categories tags extras interesting toc
post
Wouter Van Schandevijl
Chrome Extension: Starify Github project links
2019-03-06 16:00:00 -0800
Automatically add Github stars badges to all Github project links. Runs automatically on google, stackoverflow and github. Activate with Control + Alt + G on any other webpage.
javascript
product
githubproject githubtext
Chrome Extension source code
url desc
Shields.io: The Stars badges provider!
title icon
Starifyication
icon-javascript

A free and open source Chrome Extension that adds Github stars badges to all links on a web page.


**Before**: [https://github.com/sindresorhus/awesome](https://github.com/sindresorhus/awesome) **After**: ![sindresorhus/awesome](https://img.shields.io/github/stars/sindresorhus/awesome.svg?style=social&label=Star) [sindresorhus/awesome](https://github.com/sindresorhus/awesome)
Runs automatically on certain pages like Google search results, StackExchange questions, on Github itself and on Package Manager registries.

{% include kbd k="Control+Alt+G" l="Activate on any other page" %}

More Examples

Google Search Results

{% include post/image.html file="starify-github-links-google-results.png" alt="" title="" desc="" %}

Github Awesome List

{% include post/image.html file="starify-github-links-github-awesome-list.png" alt="" title="" desc="" %}

Source

Fork the project and modify the source if you want different behavior because... Well there isn't some sort of settings page :)

Find these variables at the top of github-stars.user.js:

// Execute directly on pages matching one of these:
const activateDirectlyOn = [
  'https://stackoverflow.com', 'https://superuser.com', 'https://askubuntu.com',
  'https://serverfault.com', /^https:\/\/.*\.stackexchange\.com/,
  /^https:\/\/(www.)?google\..*\/search/, 'https://www.bing.com',
  'https://github.com', 'https://www.npmjs.com/package', 'https://www.nuget.org/packages',
];

// Otherwise wait for Control + Alt + G:
const isTheHotkey = e => e.ctrlKey && e.altKey && e.code === 'KeyG';

// Shoutout to Shields.io for kindly providing the badges!
const badgeUrl = 'https://img.shields.io/github/stars/{userName}/{repoName}.svg?style=social&label=Star';
You can’t perform that action at this time.