// ==UserScript== // @name Google translation replace // @version 1.0.1 // @author Sokranotes // @namespace http://tampermonkey.net/ // @description Automatically replace the \n and -\n in the content when you use Google Translate // @match https://translate.google.cn/* // @match https://translate.google.com/* // @downloadURL none // ==/UserScript==***/ document.getElementsByTagName("textarea")[0].addEventListener('input', function() { var curtxt = ""; curtxt = document.getElementsByTagName("textarea")[0].value; //alert(curtxt); for (var i=0;i