Activate links to Eclipse bugzilla on

If you are running Chrome, or Firefox with the GreaseMonkey plug-in, then you may want to install this very simple extension that will detect when an Eclipse bug is mentioned in a commit message displayed in the web frontend.

You will end up with clickable links for every “bug XXXXXX” encountered in a commit message.
Enjoy! 🙂

// ==UserScript==
// @name bug reference detector
// @version       0.1.0
// @licence       EPL v1.0 -
// @namespace
// @description   Make references to Eclipse bugs clickable in Web UI
// @include*
// ==/UserScript==

var nodes = document.evaluate(
    "//div[@class='commit-subject'] | //div[@class='commit-msg'] | //a",
if (!nodes) return;

for (var i = 0; i < nodes.snapshotLength; i++) {
    node = nodes.snapshotItem(i);
    node.innerHTML = node.innerHTML.replace( /.*(bug ([0-9]+))/ig,
        " <a style=\"border: dotted 1px #DAA520; background: #FAFAD2; font-size: inherit;\" " +
        "    href=\"$2\">$1</a>");

By Benjamin Cabé

Benjamin is a technology enthusiast with a passion for empowering developers to build innovative solutions. A long-time open source advocate, he co-founded Eclipse IoT in 2011 and is currently working at Microsoft on Azure IoT.

Leave a Reply

Your email address will not be published. Required fields are marked *