您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Return to the old github feed version. This scripts fetches the content of the old feed and replaces it into the new feed.
- // ==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!'
- });
- })();