In your webpage, you would do the following:
<script> function Array(){ alert('You created an array!'); } </script> <script src="https://gmail.com/messages"></script>
This way you overload the constructor before loading the messages themselves.
Ah ok, I see. I think the way it is written in the article is confusing. It should instead say "override the Array constructor before loading external scripts"
Thanks for the feedback, updated the post so it's more clear
Wow you're fast!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
In your webpage, you would do the following:
This way you overload the constructor before loading the messages themselves.
Ah ok, I see.
I think the way it is written in the article is confusing. It should instead say "override the Array constructor before loading external scripts"
Thanks for the feedback, updated the post so it's more clear
Wow you're fast!