Αναζήτηση στην υποστήριξη

Προσοχή στις απάτες! Δεν θα σας ζητήσουμε ποτέ να καλέσετε ή να στείλετε μήνυμα σε κάποιον αριθμό τηλεφώνου ή να μοιραστείτε προσωπικά δεδομένα. Αναφέρετε τυχόν ύποπτη δραστηριότητα μέσω της επιλογής «Αναφορά κατάχρησης».

Μάθετε περισσότερα

user.js file won't save

  • 6 απαντήσεις
  • 1 έχει αυτό το πρόβλημα
  • 7 προβολές
  • Τελευταία απάντηση από ClintonLee83

more options

I'm trying to copy and paste text in an application online but firefox won't let me use the clip board unless I add this code to the user.js file in the firefox profile folder:

user_pref("capability.policy.policynam… "allowclipboard");
user_pref("capability.policy.allowclip…
"http://www.mozilla.com");
user_pref("capability.policy.allowclip… "allAccess");
user_pref("capability.policy.allowclip… "allAccess");

However, when I try to save that file using "save as" in the correct folder, it saves only until firefox is restarted. Once firefox restarts, I go back to that file and the code that I've pasted there is gone.

I've tried deleting the prefs.js file in the same folder but the user.js still isn't saving the data.

There is other code already in the user.js file, would that have anything to do with the problem?

I'm trying to copy and paste text in an application online but firefox won't let me use the clip board unless I add this code to the user.js file in the firefox profile folder:<br /> <br /> <pre><nowiki>user_pref("capability.policy.policynam… "allowclipboard"); user_pref("capability.policy.allowclip… "http://www.mozilla.com"); user_pref("capability.policy.allowclip… "allAccess"); user_pref("capability.policy.allowclip… "allAccess"); </nowiki></pre> However, when I try to save that file using "save as" in the correct folder, it saves only until firefox is restarted. Once firefox restarts, I go back to that file and the code that I've pasted there is gone. I've tried deleting the prefs.js file in the same folder but the user.js still isn't saving the data. There is other code already in the user.js file, would that have anything to do with the problem?

Τροποποιήθηκε στις από το χρήστη cor-el

Όλες οι απαντήσεις (6)

more options

I haven't looked at this for a long time, but I thought that Firefox merged the contents of user.js into prefs.js at some point.

As a workaround, could I suggest using one of these methods to copy and paste?

Copy selected text:

Ctrl+c
right-click > Copy
Alt+e (displays Edit menu) > Copy

Paste at the insertion point:

Ctrl+v
right-click > Paste
Alt+e (displays Edit menu) > Paste

Edit: By the way, you should close all Firefox windows before editing the user.js files.

Τροποποιήθηκε στις από το χρήστη jscher2000 - Support Volunteer

more options

OMG... I think your 'edit' may be correct... one moment please.

more options

I'm running into the same problem again :(

I don't know why I was able to use the copy and paste but it only lasted for one session with firefox.

any other suggestions?

more options

I don't have a specific explanation for why your edits aren't sticking. Have you considered using this add-on: AllowClipboard Helper?

more options

Ah, I didn't even know about it. I'll give it a whirl, Thank you for all the help jscher!

It's strange that I seem to be the only one with this problem... maybe it's me :(