您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Hide starred repos in trending and remove glob
当前为
// ==UserScript== // @name Undiscovered Trending // @namespace shiftgeist // @icon https://github.com/fluidicon.png // @match https://github.com/trending* // @grant none // @version 20250228 // @author shiftgeist // @description Hide starred repos in trending and remove glob // @license GNU GPLv3 // ==/UserScript== function log(...params) { if (localStorage.getItem('undiscovered-debug') === 'true') { console.log('[undiscovered]', ...params) } } function main() { log('start of main') setTimeout(() => { log('delay done') const articles = document.querySelectorAll('article') for (article of articles) { if ( // Already starred article.querySelector('.starred-button-icon').getClientRects().length > 0 || // Contains AI ['llm', 'ollama', 'openai', 'crypto'].findIndex(e => article.innerText.toLowerCase().includes(e) ) >= 0 ) { article.style.display = 'none' } } }, 300) } log('init') let previousUrl = ''; const observer = new MutationObserver(function(mutations) { if (location.href !== previousUrl) { previousUrl = location.href main() } }); const config = {subtree: true, childList: true}; observer.observe(document, config);
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址