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!

Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

Learn More

How to force spellcheck for all websites

  • 3 réponses
  • 0 a ce problème
  • 1 vue
  • Dernière réponse par cor-el

more options

I would like to force spellcheck for all websites, and override any HTML code from the websites. which may be disabling it. This should be done automatically and not by inspecting and manually altering the HTML. I consulted with ChatGPT and tried adding some code to my existing userChrome.css but it is having no effect, even after clearing cache and restarting Firefox. For instance, faxzero.com has a form with spellcheck disabled. I tinkered with the CSS and kept testing faxzero, but the spellcheck always remains disabled. How can I accomplish my goal?

Code: body[spellcheck="false"], input[type="text"][spellcheck="false"], input[type="email"][spellcheck="false"], input[type="password"][spellcheck="false"], input[type="search"][spellcheck="false"], input[type="url"][spellcheck="false"], textarea[spellcheck="false"], [contenteditable="true"][spellcheck="false"] {

   spellcheck: true !important;

}

I would like to force spellcheck for all websites, and override any HTML code from the websites. which may be disabling it. This should be done automatically and not by inspecting and manually altering the HTML. I consulted with ChatGPT and tried adding some code to my existing userChrome.css but it is having no effect, even after clearing cache and restarting Firefox. For instance, faxzero.com has a form with spellcheck disabled. I tinkered with the CSS and kept testing faxzero, but the spellcheck always remains disabled. How can I accomplish my goal? Code: body[spellcheck="false"], input[type="text"][spellcheck="false"], input[type="email"][spellcheck="false"], input[type="password"][spellcheck="false"], input[type="search"][spellcheck="false"], input[type="url"][spellcheck="false"], textarea[spellcheck="false"], [contenteditable="true"][spellcheck="false"] { spellcheck: true !important; }

Solution choisie

I posted this user script (for Tampermonkey or Violentmonkey) nine years ago:

https://greasyfork.org/en/scripts/11786-always-can-check-spelling

Lire cette réponse dans son contexte 👍 1

Toutes les réponses (3)

more options

You can't change or disable an attribute via CSS, you need JavaScript to remove an attribute and you need to use userContent.css and not userChrome.css to style a webpage.

You need to use an extension like Tampermonkey to inject JavaScript in the webpage.

Cela vous a-t-il été utile ?

more options

Solution choisie

I posted this user script (for Tampermonkey or Violentmonkey) nine years ago:

https://greasyfork.org/en/scripts/11786-always-can-check-spelling

Cela vous a-t-il été utile ?

more options

Note that you can use a simple JavaScript bookmarklet.

javascript:void(document.querySelectorAll('[spellcheck="false"]').forEach(s=>s.removeAttribute("spellcheck")))

If you need frame support:

javascript:(function(){function R(w){try{document.querySelectorAll('[spellcheck="false"]').forEach(s=>s.removeAttribute("spellcheck"))}catch(e){}}R(self);var i,x;for(i=0;x=frames[i];++i)R(x)})()

Cela vous a-t-il été utile ?

Poser une question

Vous devez vous identifier avec votre compte pour répondre aux messages. Veuillez poser une nouvelle question, si vous n’avez pas encore de compte.