Skip to content

Instantly share code, notes, and snippets.

@erlendaakre
Last active July 19, 2016 11:03
Show Gist options
  • Save erlendaakre/4d0e2de97d1b05f2cd16c2c9c466406c to your computer and use it in GitHub Desktop.
Save erlendaakre/4d0e2de97d1b05f2cd16c2c9c466406c to your computer and use it in GitHub Desktop.
Tampermonkey script to make it easier to distinguish outdated vs live comments in bitbucket pull requests
// ==UserScript==
// @name Bitbucket hide outdated comments
// @namespace http://frostvoid.com
// @version 1.0
// @match http://your-bitbucket.com:8080/*
// @require http://code.jquery.com/jquery-latest.js
// ==/UserScript==
/* jshint -W097 */
(function() {
'use strict';
setInterval(function() {
$("li.activity-item.diff-comment-activity").filter(function(){
return $(this).find("div.secondary").text() == "Outdated"
}).children().css('opacity', '0.3'); // replace call to .css(...) with .fadeOut() to hide completely
}, 1000);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment