User:Walrus068/warn.js

if (wgAction == 'view' || wgAction == 'historysubmit') { $(document).ready(function {       $('span.mw-rollback-link').click(function { var talklink = "$('div#mw-diff-ntitle2 span.mw-usertoollinks a:eq(0)')"; if (talklink.attr('href').match(/&redlink=1/)) { talklink.attr('href', talklink + '&warn=yes&warntext=

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.');           }            else {                talklink.attr('href', talklink + '?action=edit&warn=yes&warntext=Second chance');            }        }); }); } if (window.location.search.match(/&warn=yes/) && wgCanonicalNamespace == 'User_talk' && wgAction == 'edit') {   $(document).ready(function { var textarea = "$('textarea#wpTextbox1')"; if (wgArticleId === 0) { textarea.val(window.location.search.match(/&warntext=(.*)/)[1] + ' 01:31, August 22, 2011 (UTC)'); }       else { textarea.val(textarea.val + window.location.search.match(/&warntext=(.*)/)[1] + '\n:. 01:31, August 22, 2011 (UTC)'); }       $('input#wpSummary').val('Warn'); }); }