The handler creates a div with a table inside it, then visits each link in the page, processes it, and adds an entry to the table using document.createElement and the appendChild and insertBefore ...