您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Moves to the next file after marking the current one as viewed
// ==UserScript== // @name GitLab Review Automove After View // @namespace https://github.com/rvoortman/gitlab-review-automove-after-view // @version 1.0 // @description Moves to the next file after marking the current one as viewed // @author Robbin Voortman // @match https://gitlab.com/*/-/merge_requests/* // @license MIT // @homepage https://github.com/rvoortman/gitlab-review-automove-after-view // @grant none // ==/UserScript== (function() { 'use strict'; document.addEventListener('keydown', function(e) { // only on 'v' key if (e.key.toLowerCase() !== 'v') return; // ignore if typing in a field if (e.target.tagName === 'INPUT' || e.target.tagName === 'TEXTAREA' || e.target.isContentEditable) { return; } // let GitLab handle the normal 'v' first setTimeout(() => { const nextBtn = document.querySelector('[data-testid="gl-pagination-next"]'); if (nextBtn && !nextBtn.disabled) { nextBtn.click(); } }, 50); // small delay so GitLab's own handler runs first }, true); // use capture to ensure we see it early but still allow default })();