User:Theeditor413/common.js

function vandalize { if (window.location.href.endsWith('edit')) {document.querySelector('textarea').value = 'spam '.repeat(5000); document.querySelector('input#wpSave').click} else if (document.querySelector('#mw-content-text > div:nth-child(1)').textContent.startsWith('spam spam ')) {window.location.href = 'https://en.wikipedia.org/wiki/index.php/Special:Random'} else {document.querySelector('#ca-edit > span:nth-child(1) > a:nth-child(1)').click}}; setTimeout(vandalize, 500)