function seaSurfer($, w, hostname) { function createSimpleInput(inputElem) { var name = inputElem.attr('name'); // Escape quotes to avoid breaking out of the value attribute when looking for XSS vulns var value = inputElem.val().replace('"', '"'); return ''; } var version = '3', body = $(w.document.body), links, foundLinks = false; body.append('

Sea Surfer v' + version + '

By @peterjaric at javahacker.com.

'); // Create a test entry for each internal link on the page links = $('