Writing into user.js

Discussion in 'Mac Programming' started by BLDun, Dec 14, 2006.

  1. macrumors regular

    Joined:
    Jan 22, 2005
    #1
    I need some help here. This is beyond my ability at this point. Here goes: I was working on a new web site for our church and using Firefox. When I went to make some changes and clicked on the delete button I got a message telling me that this and two other buttons were disabled and if I wanted more info to click on the OK button. When I did it took me to the Mozilla website and an explanation on how to write new code into the user.js file. I got lost almost before I got started.

    This is what I was supposed to add into this file:
    Code:
    user_pref("capability.policy.policynames", "allowclipboard");
    user_pref("capability.policy.allowclipboard.sites", "http://www.echurchonline.com");
    user_pref("capability.policy.allowclipboard.Clipboard.cutcopy", "allAccess");
    user_pref("capability.policy.allowclipboard.Clipboard.paste", "allAccess");

    Instructions said there was no file of this name at present and I would have to create one but never told me how to write this material. Can you help me???

    Thanks
     
  2. macrumors 68030

    Catfish_Man

    Joined:
    Sep 13, 2001
    Location:
    Portland, OR
    #2
    Create a text file with that text, and save it as user.js

    <edit>If you use TextEdit make sure to hit "make plaintext" in the menu. Formatted text won't work. </edit>
     
  3. thread starter macrumors regular

    Joined:
    Jan 22, 2005
    #3
    Thanks a lot! That helps greatly! Is there any particular location this file needs to be saved in??? I tried to place it in the library/application support/firefox/profiles/default file but it says there is already one there and when I look it up it has a dreamweaver logo on the file from that program. Has exactly the lines written in it. Can this be used by both programs or do I have to write a new one for Firefox and store it somewhere else??
     
  4. thread starter macrumors regular

    Joined:
    Jan 22, 2005
    #4
    Additionally. . . I just did this same thing on my MacBook Pro and found out that when I saved it dreamweaver automatically put their logo on it. I did it in text edit and saved it as user.js and when I went to look to make sure it was there it had a small dreamseaver logo on it. Will it still be usable in Firefox or do I need to do something more?
     
  5. macrumors member

    Joined:
    Oct 17, 2007
    #5
    2 years!

    I hate it when people fail to give obvious information. As the other person said, where do you put user.js?!
     
  6. macrumors 68030

    Catfish_Man

    Joined:
    Sep 13, 2001
    Location:
    Portland, OR

Share This Page