Last active
July 19, 2016 11:03
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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