←back to thread

Et Tu, Grammarly?

(dbushell.com)
279 points dbushell | 1 comments | | HN request time: 0.29s | source
Show context
karaterobot ◴[] No.43516187[source]
If you're injecting scripts or styles into unknown pages, the least you can do is namespace your variables.
replies(4): >>43516604 #>>43516740 #>>43516957 #>>43517036 #
1. tikhonj ◴[] No.43516604[source]
Hell, namespacing makes life easier even just for yourself. I wrote some browser automation in a previous role that was never going to be user-facing—it wasn't an extension—and it still proved useful to namespace things, both to clearly mark what we were inserting vs what was already there, and to avoid possible collisions.