NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Emoticons Eorkut adicionar // @namespace emoticonsEorkut // @description Adiciona emoticons. // @include http://app.e-orkut.com/comunidade/respondertopico/* // @include http://app.e-orkut.com/comunidade/novotopico/* // @exclude http://app.e-orkut.com/home/index // @exclude http://app.e-orkut.com/ // @exclude http://app.e-orkut.com/comunidade/ // @exclude http://app.e-orkut.com/comunidade/forum/ // @version 1 // @grant none // ==/UserScript== // ==UserScript== // @name Emoticons Eorkut 2016 // @author Céfa Santiago (céfa function) // @include http* // @exclude http*://*app.e-orkut.com/comunidade/forum/ // @grant none // ==/UserScript == function addMe(emoticon, target) { return function() { target.value += emoticon; } } window.onload = function() { var url = ['http://app.e-orkut.com/assets/images/emoticons/', '.gif']; var emoticons = ['[8)]', '[:(]', '[:x]', '[:)]', '[;)]', '[:D]', '[:o]', '[:p]', '[/)]']; var textarea = document.querySelector('textarea'); var emoticonsElement = document.getElementsByTagName("td")[2]; for (var i = 0; i < emoticons.length; i++) { var img = document.createElement('img'); img.src = url.join(i + 1); emoticonsElement.appendChild(img); img.addEventListener('click', addMe(emoticons[i], textarea)); } } /* Em desenvolvimento, ainda falta adicionar outros elementos. (= */