Skip to content

Instantly share code, notes, and snippets.

@avin
Last active September 14, 2022 07:59
Show Gist options
  • Save avin/41ca51ee62b0a4d092e74a54157d8f62 to your computer and use it in GitHub Desktop.
Save avin/41ca51ee62b0a4d092e74a54157d8f62 to your computer and use it in GitHub Desktop.
Auto expand jira comments
// ==UserScript==
// @name Auto expand jira comments
// @namespace http://tampermonkey.net/
// @version 0.1
// @author You
// @match https://rbs-develop.paymentgate.ru/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
const expandComments = () => {
const $sortButtonEl = $('.show-more-comment-tabpanel:not([data-processed]');
if($sortButtonEl.length){
$sortButtonEl.click()
$sortButtonEl.attr('data-processed', '1');
}
}
setInterval(expandComments, 200);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment