Always expand "Show more" repositories on GitHub dashboard
اعتبارا من
// ==UserScript==
// @name GitHub+
// @namespace https://github.com
// @version 1.0.1
// @description Always expand "Show more" repositories on GitHub dashboard
// @match https://github.com/*
// @grant none
// @license MIT
// ==/UserScript==
(function () {
'use strict';
const isDashboard = () =>
location.pathname === '/' || location.pathname.startsWith('/dashboard');
function clickShowMore() {
if (!isDashboard()) return;
const buttons = Array.from(document.querySelectorAll('button')).filter(
(b) =>
b.textContent &&
b.textContent.trim() === 'Show more' &&
!b.disabled &&
b.offsetParent !== null
);
buttons.forEach((b) => b.click());
}
setInterval(clickShowMore, 1000);
})();