User:Suppa chuppa/warn.js

$(document).ready(function {      if (wgAction == 'rollback') {                var a = document.createElement('a');                var user = getParam('from');                a.href = wgScript + '?title=' + user + '&action=edit&page=' + getParam('title');                a.appendChild(document.createTextNode('warn'));		a.title = 'Warn this user.';                var page = document.getElementById('bodyContent');		var p = document.createElement('p');		p.style.fontWeight = 'bold';		p.appendChild(document.createTextNode('You can '));		p.appendChild(a);		p.appendChild(document.createTextNode(' this user.'));		page.insertBefore(p, page.firstChild);       }       if(wgAction == 'edit' && getParam(page)) {                         var obj = document.getElementById('wpTextbox1');                obj.value += '\n

Vandalism
Hello Special:Contributions/, Please do not remove content from, add nonsense to, or add otherwise disruptive material to RuneScape Wiki pages. Doing so is considered vandalism. If you have been or are doing this, please stop and try to make useful contributions or you will be blocked. If you would like to experiment, please use the sandbox. Thank you and happy contributing. ';               document.getElementById('wpSummary').value += 'Warn'; } });