chacham / PerlMonks Saints in our Book Ties

// ==UserScript==
// @name PerlMonks Saints in our Book Ties
// @namespace http://www.example.com/chacham/
// @description Find ties in PerlMonks Saints in our Book, based on Writeups and Experience
// @include http://perlmonks.org/?node_id=3559
// @include http://*.perlmonks.org/?node_id=3559
// @grant none
// ==/UserScript==

// Can also be a bookmarklet. http://perlmonks.org/?node_id=1135457

var table = document.getElementsByTagName('table')[4];

for (var i = 1; i < table.rows.length; i++)
 if    (
        (table.rows[i].cells[2].textContent == table.rows[i + 1].cells[2].textContent)
     &&    (table.rows[i].cells[4].textContent == table.rows[i + 1].cells[4].textContent)
    )
 alert(table.rows[i].cells[0].textContent + ' ' + table.rows[i].cells[1].textContent + '\r\n'
        + table.rows[i + 1].cells[0].textContent + ' ' + table.rows[i + 1].cells[1].textContent);