您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Always sort JIRA comments ascending.
当前为
// ==UserScript== // @name Sort JIRA comments in ascending order (oldest first). // @namespace http://stevekehlet.com // @version 0.2 // @description Always sort JIRA comments ascending. // @author Steve Kehlet // @match https://jira.atlassian.com/browse/* // ... include more match statements here, including your private JIRA repos // @grant none // ==/UserScript== (function() { 'use strict'; $('.issue-activity-sort-link').each(function () { var sortLink = $(this); // when the link says 'asc', it means it's currently sorted descending if (sortLink.attr('data-order') == 'asc') { // use .issue-view if there's a sidebar and scrollable frame to the right, otherwise window var selector = $('.issue-view').length > 0 ? '.issue-view' : window; var scrollPos = $(selector).scrollTop(); // scroll back to where we were after clicking $(selector).one('scroll', function () { $(selector).scrollTop(scrollPos); }); sortLink.click(); } }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址