Old github dashboard

Return to the old github feed version. This scripts fetches the content of the old feed and replaces it into the new feed.

  1. // ==UserScript==
  2. // @name Old github dashboard
  3. // @description Return to the old github feed version. This scripts fetches the content of the old feed and replaces it into the new feed.
  4. // @namespace renanborgez
  5. // @author renanborgez
  6. // @version 2.2
  7. // @match https://github.com/
  8. // @match https://github.com/dashboard-feed
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13. document.getElementById('dashboard').innerHTML = 'Loading old dashboard...';
  14. fetch('https://github.com/dashboard-feed').then(response => response.text()).then(data => {
  15. const parser = new DOMParser();
  16. const doc = parser.parseFromString(data, 'text/html');
  17. const content = doc.getElementsByTagName('main')[0].innerHTML;
  18. document.getElementById('dashboard').innerHTML = content;
  19. }).catch(() => {
  20. document.getElementById('dashboard').innerHTML = 'Something wrong happended!'
  21. });
  22. })();
  23.  

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址