As mentioned, not easily. Apps script works on the backend google servers, while you want to change what is happening in the browser. That is why Grammarly is a browser extension, because it changes the css at the browser level, then I'm guessing uses javascript to send the corrections back to the google Docs API. That is why you have to authorize it with your account.