This scripts that returns the old github dahsboard to your home page.
当前为
// ==UserScript==
// @name Old github dashboard
// @namespace renanborgez
// @author renanborgez
// @version 1.2
// @match https://github.com/
// @match https://github.com/dashboard-feed
// @description This scripts that returns the old github dahsboard to your home page.
// ==/UserScript==
(function() {
'use strict';
fetch('https://github.com/dashboard-feed').then(response => response.text()).then(data => {
const parser = new DOMParser();
const doc = parser.parseFromString(data, 'text/html');
const olddashelement = doc.getElementsByTagName('main')[0]
document.getElementById('dashboard').innerHTML = olddashelement.innerHTML;
}).catch(console.log);
})();