Currently, I am experimenting with a GreaseMonkey userscript and trying out something relatively straightforward;
function test() {
document.getElementById('elementhere').innerHTML = 'test';
}
document.onload = test();
When I visit the desired page and manually initiate the script by clicking "run" or "reload & run", it works as expected. However, I am attempting to make it run automatically upon loading the document using document.onload.