Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Learn More

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

  • 1 ответ
  • 1 имеет эту проблему
  • 1 просмотр
  • Последний ответ от 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?

Выбранное решение

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

Прочитайте этот ответ в контексте 👍 0

Все ответы (1)

more options

Выбранное решение

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