Google Translate - Add Reset/Clear Button

By SD-DAken Last update Jun 27, 2009 — Installed 474 times. Daily Installs: 0, 0, 1, 0, 0, 3, 0, 0, 2, 3, 1, 2, 0, 2, 2, 0, 1, 2, 0, 0, 1, 0, 0, 0, 4, 0, 2, 0, 2, 4, 1, 1

There are 3 previous versions of this script.

// ==UserScript==
// @author         Andreas Jung (sd-daken.deviantart.com)
// @name           Google Translate - Add Reset/Clear Button
// @namespace      http://www.w3.org/1999/xhtml
// @description    Adds a reset/clear button to translate.google.*
// @include        http://translate.google.*
// ==/UserScript==

// This file is licensed under Creative Commons Attribution License
//
// http://creativecommons.org/licenses/by/3.0/
//
// Initial Developer:
// Andreas Jung (sd-daken.deviantart.com)
//
// Contributor(s):
//

if (document.getElementById('old_submit')) {
   a=document.getElementById('old_submit').parentNode;
   b=a.appendChild(document.createElement('input'));
   b.setAttribute('type','reset');
   b.setAttribute('style','margin-right: 15px;');
   a.appendChild(document.getElementById('old_submit'));
}