🏠 Home 

GitHub Status

Changes the colour of the main Github octocat icon according to status.github.com


Install this script?
  1. // ==UserScript==
  2. // @name GitHub Status
  3. // @icon https://github.com/eXistenZNL/userscripts/raw/master/icons/github.png
  4. // @namespace eXistenZNL
  5. // @description Changes the colour of the main Github octocat icon according to status.github.com
  6. // @include https://*github.com/*
  7. // @version 3.0.1
  8. // @grant none
  9. // @require https://ajax.googleapis.com/ajax/libs/jquery/2.2.3/jquery.min.js
  10. // ==/UserScript==
  11. (function($) {
  12. $.get(
  13. 'https://status.github.com/api/status.json',
  14. function(data) {
  15. colors = {
  16. 'good': '#396',
  17. 'minor': '#f29d50',
  18. 'major': '#c30'
  19. };
  20. $logo = $('.header-logo-invertocat .octicon-mark-github');
  21. $logo.css('color', colors[data.status]);
  22. }
  23. );
  24. })(jQuery);