bugfix: run window_onload instead of window.onload only when injection is not enabled for it.