someone please help me, please please please!

  • Thread starter Thread starter Snowflake
  • Start date Start date
  • Replies Replies 22
  • Views Views 4K

Snowflake

Assalamu alaykum
Messages
7,449
Reaction score
1,708
Gender
Female
Religion
Islam
:sl:

I've got to do this (below) but I can't find the user.js. file. I can see two files with (js) in them prefs.js.back and prefs.js.new? Could it be one of them?

The instructions I'm following say to create one if none exists - how would I do that?

One more thing. It say 'change the url "Http://www.mozilla.org" to the site for which you want to enable this function. Again how do I do that?




This is what i'm trying to do:



  1. Quit Firefox. If you have Quick Launch running (in Windows, an icon in the toolbar), quit that too.
  2. Find your Firefox profile directory.
  3. Open the user.js file from that directory in a text editor. If there's no user.js file, create one.
  4. Add these lines to user.js:

    user_pref("capability.policy.policynames", "allowclipboard"); user_pref("capability.policy.allowclipboard.sites", "http://www.mozilla.org"); user_pref("capability.policy.allowclipboard.Clipboard.cutcopy", "allAccess"); user_pref("capability.policy.allowclipboard.Clipboard.paste", "allAccess"); * Change the url "http://www.mozilla.org" to the site for which you want to enable this function.

Appreciate your help in advance.
 
Open notepad and copy/paste these lines into it:
Code:
user_pref("capability.policy.policynames", "allowclipboard");  
user_pref("capability.policy.allowclipboard.sites", "[COLOR=#ff0000]http://www.mozilla.org[/COLOR]");
user_pref("capability.policy.allowclipboard.Clipboard.cutcopy",  "allAccess");
user_pref("capability.policy.allowclipboard.Clipboard.paste", "allAccess");[FONT=Verdana][COLOR=Black]
[/COLOR][/FONT]


Change the red part to whatever it is that you need to put there.

Then save the file as user.js [make sure to select 'all files' as the type]
 
Last edited:
nice work alpha dude. i opened this thread thinking it was theology related and i just read it with a blank face.
 
Open notepad and copy/paste these lines into it:

Code:
user_pref("capability.policy.policynames", "allowclipboard");  user_pref("capability.policy.allowclipboard.sites", "
Code:
[COLOR=#ff0000]http://www.mozilla.org[/COLOR][COLOR=Black]"); user_pref("capability.policy.allowclipboard.Clipboard.cutcopy",  "allAccess"); user_pref("capability.policy.allowclipboard.Clipboard.paste", "allAccess");
[/COLOR]


Change the red part to whatever it is that you need to put there.

Then save the file as user.js [make sure to select 'all files' as the type]

Do I have to delete the old one before I redo it?
 


Do I have to delete the old one before I redo it?
What do you mean redo? Did it work the first time? I think Aabiru sabeel made a change to my post to make the code appear in code blocks but the code is still the same as it was before.

Where did you get these instructions from btw and what does it do?
 
I thought the first one might not work because of the gap. It didn't. I don't understand why.

I got the instructions from Mozilla developer network. As Mozilla's security preferences weren't allowing me to copy/paste on a site I'm working on.

P.S. trying again insha Allah


P.S. Do I have to save the file to a folder? Maybe that's why it didn't work?
 
Last edited:
Ahh. It should work if you copy paste from my edited code. There was an extra space in the code that you originally posted within the word 'clipboard' which would cause it to fail.
 
Ok, trying again. Just to double check, I type in the domain name of the site I'm working on, correct?
 
Ok, trying again. Just to double check, I type in the domain name of the site I'm working on, correct?

What is the above code supposed to do? I'm not sure. Is it granting copy/paste functionality of some sort? Where did you get these instructions?
 
^ Alpha Dude is the man ! :thumbs_up

PS : @sis snowflake, in case you couldn't make it work the (alpha) geeky way, or if you are lazy like me, you can install the plugin AllowClipboard helper from here it helps do it.

then from firefox menu "tools" (sorry my FF is french)
1148484894.JPG

then put the url and click "allow" :
1148484907.JPG

  • Install AllowClipboard Helper. (If you already have this, skip down to Tools->AllowClipboard Helper.) Note: When you click Install on this page, a popup bar may popup at the top of the current page asking you to allow the site. Go ahead and do this.
  • Bookmark this page so you can come back after you exit your browser.
  • Exit(Close) all browser windows.
  • Restart your browser.
  • Click Tools->AllowClipboard Helper.
  • Add your domain: 'www.mysite.com' in the server address text box and click 'Allow'.
    (Or you can use http://www.mydomain.com and https://www.mydomain.com
    Do not include an ending slash on the website or copy/paste will not work.)
  • Click Ok.
  • Close all browser windows.
  • Restart your browser, and copy/paste should work for you in HTMLArea.
  • If you want to uninstall the AllowClipboard Helper plugin once you have verified things are working: In FireFox goto Tools->Extensions. Click on AllowClipboard Helper in your extension window and click Uninstall.
Note about AllowClipboard Helper: AllowClipboard Helper will show a tab under your Rich Text HTML Editors if it thinks cut/copy/paste is disabled. (Feel free to test yourself.) You can easily add a site to your allowed list by clicking this tab and clicking allow in the AllowClipboard Helper window. If you do not want these tabs then go here to remove them: "Tools->Extensions->AllowClipboard Helper->Options".
 
Last edited:
What does it mean to allow cliboard? I'm quite confused actually lol.

Can't you just ctrl+c/ctrl+v? What am I missing here. :hiding:
 
What does it mean to allow cliboard? I'm quite confused actually lol.

Can't you just ctrl+c/ctrl+v? What am I missing here.
AFAIK, (for security reasons) firefox does not allow access to the clipboard (os "copy/paste" buffer) from JavaScript code, like javascript functions used in js components (Editors,etc .). This makes some online text editors unable to make copy paste on some websites, so we have to explicitely allow it on this website.
 
Yeah, you have to save it in the profile folder. Drag and drop the file you created into it.
It's not worked and I know it's my fault. I'm just hopeless : ( I couldn't save it to the profile folder. Didn't know how to locate it. I tried mozilla folder but there was no 'profile' folder file in there.

^ Alpha Dude is the man ! :thumbs_up

PS : @sis snowflake, in case you couldn't make it work the (alpha) geeky way, or if you are lazy like me, you can install the plugin AllowClipboard helper from here it helps do it.

then from firefox menu "tools" (sorry my FF is french)

then put the url and click "allow" :


Thanks brother. I'll try this insha Allah.
 
It's not worked and I know it's my fault. I'm just hopeless : ( I couldn't save it to the profile folder. Didn't know how to locate it. I tried mozilla folder but there was no 'profile' folder file in there.

The profile folder is actually where you saw the pref.user.js and the other file, that you mention in your first post?

Type this in the address bar: about:support then hit go. Then click Open Containing Folder and there you go. :)

Although Marwen's idea is better.
 
Oh ok, thanks bro. Jazak Allah khayr for your patience.



@brother Marwen. Your browser seems to be different than mine.

I searched in all the options tabs but there's no 'assistant access..' option anywhere

Here's what i see:

82ce3500.jpg
 
Last edited:
^ did you install the plugin I posted ?
after installing it, and restarting FF, you should find an option "Clipboard access .." under the tools menu.
 
oops no.. sorry my head's been spinning. I'll do it now insha Allah
 

Similar Threads

Back
Top