cuando visite un sitio web, el navegador buscará los recursos necesarios como html, css y js. Luego, el navegador resolverá html, ejecutará el código js... Me pregunto si puedo cambiar el comportamiento del sitio web insertando un fragmento JS personalizado en el archivo JS obtenido del servidor antes de que el navegador ejecute el código JS?
<!DOCTYPE html> <html> <head> <title>Title of the document</title> <script> // Here goes your JS code </script> </head> <body> The content of the document </body> </html>