您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
A userscript that move checks to the top of the page
// ==UserScript== // @name Github Move Checks // @description A userscript that move checks to the top of the page // @license MIT // @author Marco Pelegrini // @namespace https://github.com/marcopelegrini // @version 1.0.0 // @include https://*github*/* // @exclude https://*github*/*/*.diff // @exclude https://*github*/*/*.patch // @run-at document-idle // @grant GM.addStyle // @grant GM_addStyle // @icon https://github.githubassets.com/pinned-octocat.svg // ==/UserScript== (function () { function moveChecks() { let actions = document.getElementsByClassName('discussion-timeline-actions')[0]; actions.style.border = "none"; document.getElementsByClassName('js-pull-discussion-timeline')[0].prepend(actions); document.getElementsByClassName('js-discussion js-socket-channel')[0].append(document.getElementsByClassName('timeline-comment-wrapper')[0]); document.getElementsByClassName('merge-pr-more-commits')[0].hidden=true; } moveChecks(); })();