Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

user.js fil ein 32.03 does not effect prefernces

  • 6 回覆
  • 4 有這個問題
  • 16 次檢視
  • 最近回覆由 cor-el

more options

User has FF 32.03- trying to edit user.js file to allow for javascript copy and paste

user_pref("capability.policy.policynames", "allowclipboard"); user_pref("capability.policy.allowclipboard.sites", "https://www.hccfl.blackboard.com"); user_pref("capability.policy.allowclipboard.Clipboard.cutcopy", "allAccess"); user_pref("capability.policy.allowclipboard.Clipboard.paste", "allAccess");


But while the prefs.js absorbs the changes it still does not correct the problem. Even though in 32.02 it does?

User has FF 32.03- trying to edit user.js file to allow for javascript copy and paste user_pref("capability.policy.policynames", "allowclipboard"); user_pref("capability.policy.allowclipboard.sites", "https://www.hccfl.blackboard.com"); user_pref("capability.policy.allowclipboard.Clipboard.cutcopy", "allAccess"); user_pref("capability.policy.allowclipboard.Clipboard.paste", "allAccess"); But while the prefs.js absorbs the changes it still does not correct the problem. Even though in 32.02 it does?

所有回覆 (6)

more options

The "capability.policy" feature was removed in Firefox 29, so I'm surprised to hear it was working in Firefox 32.0.2. ??

There is a plan to implement a new clipboard permission, but I don't see any progress on it here: Bug #1012662 – implement click-to-copy and click-to-cut permissions (semi-trusted events).

Just a note about the bug tracking system: it's generally not helpful to add comments like "hurry up" to bugs, but you can register on the Bugzilla site and "vote" for them to be fixed. See:


Meanwhile, in most cases your user will find that you don't need a website's copy/paste buttons, but instead she or he can use one of these methods:

  • To copy, select text, then either:
    • right-click it > Copy
    • Ctrl+c keyboard shortcut
  • To paste, click to position the cursor, then either:
    • right-click > Paste
    • Ctrl+v keyboard shortcut

These two methods work thoughout most of Windows, and if one doesn't work the other usually does.

I understand this is not a complete replacement, since the site probably cannot intercept this kind of paste and clean out bad formatting tags (which presumably is one of the benefits of letting the site access the clipboard). But at the moment, it's all I've got.

more options

If ctrl-v and ctrl-p, or right clicking worked I wouldn't be here.

This code fixes it in 32.02 but not 32.03

Is there any way to modify these preferences?

more options

My guess is that something else has changed that is unrelated to those preferences because as far as I know, the "allowclipboard" permission has been out of the code base since Firefox 29.

more options

I think the allowclipboard permission may have been deprecated but not removed until 32.03. This would make logical sense as there is no difference in the two versions of FF except this issue.

Wonderful

more options

RightToClick {web link} Stops javascript annoyances such as forbidden right click, forbidden text selection or cascading dialog boxes.

more options