// ==UserScript== // @name Add Subscription // @author Martin Jonáš // @include http://forum.thesims2.cz/posting.php?mode=reply* // @include http://forum.thesims2.cz/posting.php?mode=newtopic* // @include http://forum.thesims2.cz/posting.php?mode=quote* // ==/UserScript== window.addEventListener('DOMContentLoaded', function() { var textArea = document.getElementsByTagName('textarea')[0]; var podpis = "\n\n____________\n Podpis :)"; textArea.value += podpis; textArea.focus(); textArea.setSelectionRange(textArea.value.length - podpis.length, textArea.value.length - podpis.length); }, false);