https://bugzilla.wikimedia.org/show_bug.cgi?id=46774

Bartosz Dziewoński <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Bartosz Dziewoński <[email protected]> ---
I'd suggest a different solution - no user options, let's just expand
everything apart from autogenerated comments (both the ones generated by gerrit
itself, gerrit pretending to be you (for new patchsets etc.), and by Jenkins).

According to Chad, this is possible and seems reasonably easy to do. Also
according to Chad, it would be nice to get
https://gerrit-review.googlesource.com/#/c/43520/ merged upstream first so we
can nicely inject jQuery instead of hardcoding it in the script.


Example barely tested "mockup" code (there are some more cases to handle),
requiring jQuery:

$(window).on('hashchange', function() {
  $('.commentPanel:not(.commentPanelLast) .commentPanelHeader')
    .filter(function(){
      var isJenkins = $(this).find('.commentPanelAuthorCell').text() ==
'jenkins-bot';
      var isNewPatchset =
$(this).find('.commentPanelSummaryCell').text().match(/^\s*Uploaded patch set
\d+\.\s*$/);
      return !isJenkins && !isNewPatchset;
    })
    .click()
}).trigger('hashchange');

This seems to work for me on Opera and not throw exceptions.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to