// ==UserScript== // @name MsgHelp - Add No Parse button // @namespace http://www.msghelp.net/ // @description Add a "No Parse" button to the format bar // @include http://www.msghelp.net/newreply.php?* // @include http://www.msghelp.net/newthread.php?* // @include http://www.msghelp.net/editpost.php?* // @include http://msghelp.net/newreply.php?* // @include http://msghelp.net/newthread.php?* // @include http://msghelp.net/editpost.php?* // ==/UserScript== (function(window) { var document = window.document; var form = document.forms[(document.forms.length > 1)?1:0]; var tableForm = form.getElementsByTagName("table").item(0).rows[0].cells[0].getElementsByTagName("table").item(0); var rowIndex = (tableForm.rows[1].cells[0].className == "tcat") ? 5 : 4; var tableMessage = tableForm.rows[rowIndex].cells[1].getElementsByTagName("table").item(0); var tableButtons = tableMessage.rows[1].cells[0].getElementsByTagName("table").item(0); var tdButtons = tableButtons.rows[0].cells[0]; tdButtons.innerHTML += "\"Insert"; })(typeof unsafeWindow == 'undefined' ? window : unsafeWindow);