您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Minimizes pushs and commits from github actions and bots from github.com dashboard
// ==UserScript== // @name Github Dashboard Filter // @description Minimizes pushs and commits from github actions and bots from github.com dashboard // @namespace RyoLee // @author RyoLee // @version 1.3 // @copyright 2022, RyoLee (https://github.com/RyoLee) // @license GPL-3.0-or-later; http://www.gnu.org/licenses/gpl-3.0.txt // @icon https://github.githubassets.com/pinned-octocat.svg // @match https://github.com/ // @grant none // ==/UserScript== (function () { 'use strict' function hideBots () { document.querySelectorAll('#dashboard div.push:not(.shotBot), #dashboard div.Details:not(.shotBot)').forEach(function (div) { const label = div.querySelector('.body .d-flex .d-flex .Label') const isAppUrl = div.querySelector('.body .d-flex .d-flex a.Link--primary[href^="/apps/"]') if (isAppUrl || (label && label.textContent === 'bot')) { div.style.display = 'none' } }) } hideBots() const iv = window.setInterval(hideBots, 200) window.setTimeout(() => window.clearInterval(iv), 5000) window.setInterval(hideBots, 4000) })()