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 do I edit my .js file?

more options

I need to add four lines, so that I can copy and paste, but when I open my .js file it won't let me. How do I add these four lines?

I need to add four lines, so that I can copy and paste, but when I open my .js file it won't let me. How do I add these four lines?

Solution choisie

Open js files in a text program like WordPad. Notepad doesn't usually do line wrap and make it harder to edit. And make sure that you don't disrupt for formatting of that file.

Lire cette réponse dans son contexte 👍 0

Toutes les réponses (3)

more options

Solution choisie

Open js files in a text program like WordPad. Notepad doesn't usually do line wrap and make it harder to edit. And make sure that you don't disrupt for formatting of that file.

more options

What .js file are you talking about?

Is this about .js files in the Firefox profile folder?

Is this about adding pref lines to prefs.js or user.js?

more options

Hi pam.butler24, if you are thinking of editing the prefs.js file (or a user.js file), that may not be what you want. Those changes are intended to provide websites permission to read and modify your clipboard. That shouldn't be necessary to use standard commands.

By standard commands, I mean:

  • right-click > Copy -or- Ctrl+c
  • right-click > Paste -or- Ctrl+v

If those commands are not working on a particular site, do you want to mention which one it is and which methods you've tried?

Also, if this is related to YouTube or Facebook, have you changed this setting in about:config:

dom.event.clipboardevents.enabled

That can have unexpected consequences.