Add clickable page number navigation to GitHub Stars pages
A UserScript that adds clickable page number navigation to GitHub Stars pages
https://github.com/your-username?tab=stars)Configurable constants at the top of the script:
const STARS_PER_PAGE = 30; // Items per page
const MAX_PAGES = 15; // Maximum pages to preload
const REQUEST_DELAY = 800; // Delay between requests (ms)
const CACHE_EXPIRY = 24 * HOUR; // Cache duration
If pagination doesn't appear:
?tab=stars)为 GitHub 标星页面添加可点击页码导航的用户脚本
https://github.com/your-username?tab=stars)脚本顶部的可配置常量:
const STARS_PER_PAGE = 30; // 每页项目数
const MAX_PAGES = 15; // 最大预加载页数
const REQUEST_DELAY = 800; // 请求之间的延迟(毫秒)
const CACHE_EXPIRY = 24 * HOUR; // 缓存持续时间
如果分页没有显示:
?tab=stars)