Quantcast
Channel: Javascript Code Examples – Gary Sieling
Viewing all articles
Browse latest Browse all 12

Javascript to remove line number, author, revision columns from Fisheye/Crucible

$
0
0

Fisheye puts a bunch of useful columns in code reviews, but they’re irritating if you want to copy code out, because they copy too:

I’ve found it helpful to create bulk reviews to view patches, where the code is spread across many repositories (CVS + Git + many revisions + many branches, don’t ask). The following  Javascript will remove these columns, so you can copy text out in peace:

var nodes = document.body.querySelectorAll(".tetrisColumn, .diffNav, .author, .revision, .diffLineNumbers, .diffLineNumbersA, .diffLineNumbersB");
for (var i = 0; i < nodes.length; i++)
{
  nodes[i].innerHTML = '';
}

The post Javascript to remove line number, author, revision columns from Fisheye/Crucible appeared first on Gary Sieling.


Viewing all articles
Browse latest Browse all 12

Trending Articles