Old github dashboard

Return to the old github feed version. This scripts fetches the content of the old feed and places over the new feed.

Verzia zo dňa 27.09.2023. Pozri najnovšiu verziu.

// ==UserScript==
// @name         Old github dashboard
// @description  Return to the old github feed version. This scripts fetches the content of the old feed and places over the new feed.
// @namespace    renanborgez
// @author       renanborgez
// @version      2.3
// @match        https://github.com/
// @match        https://github.com/dashboard-feed
// ==/UserScript==

(function() {
  'use strict';
  
  document.getElementById('dashboard').innerHTML = 'Loading old dashboard...';
  
  fetch('https://github.com/dashboard-feed').then(response => response.text()).then(data => {
  	const parser = new DOMParser();
    const doc = parser.parseFromString(data, 'text/html');
    const content = doc.getElementsByTagName('main')[0].innerHTML;
    document.getElementById('dashboard').innerHTML = content;
  }).catch(() => {
    document.getElementById('dashboard').innerHTML = 'Something wrong happended!'
  });
})();

长期地址
遇到问题?请前往 GitHub 提 Issues。