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.

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey, Greasemonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Old github dashboard
// @description  Return to the old github feed version. This scripts fetches the content of the old feed and replaces it into the new feed.
// @namespace    renanborgez
// @author       renanborgez
// @version      2.2
// @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!'
  });
})();