Pesquisar no site de suporte

Evite golpes de suporte. Nunca pedimos que você ligue ou envie uma mensagem de texto para um número de telefone, ou compartilhe informações pessoais. Denuncie atividades suspeitas usando a opção “Denunciar abuso”.

Learn More

How do I run some Javascript after a page has loaded?

  • 1 resposta
  • 1 tem este problema
  • 329 visualizações
  • Última resposta de Jack

more options

I'd like to add a couple of lines of Javascript that will automatically log me in my email once the page loads (my provider has no "remember me" option. I found an extension [an extension](https://addons.mozilla.org/en-US/firefox/addon/javascript/) that allows me to do this, but unfortunately, my email provider has a strict [CSP](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), and the extension is blocked.

Is there any way around this? Can I tell Firefox to ignore the CSP for this one webpage, or maybe run some Javascript automatically via dev tools?

I'd like to add a couple of lines of Javascript that will automatically log me in my email once the page loads (my provider has no "remember me" option. I found an extension [an extension](https://addons.mozilla.org/en-US/firefox/addon/javascript/) that allows me to do this, but unfortunately, my email provider has a strict [CSP](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), and the extension is blocked. Is there any way around this? Can I tell Firefox to ignore the CSP for this one webpage, or maybe run some Javascript automatically via dev tools?

Solução escolhida

Turns out if I use Greasemonkey instead of the other extension, the script isn't rejected. Never mind!

Ler esta resposta 👍 0

Todas as respostas (1)

more options

Solução escolhida

Turns out if I use Greasemonkey instead of the other extension, the script isn't rejected. Never mind!