Este site está com funcionalidades limitadas enquanto realizamos manutenção para melhorar sua experiência de uso. Se nenhum artigo resolver seu problema e você quiser fazer uma pergunta, nossa comunidade de suporte pode te ajudar em @FirefoxSupport no Twitter e /r/firefox no Reddit.

Pesquisar no site de suporte

Evite golpes de suporte. Nunca pedimos que você ligue ou envie uma mensagem de texto para um número de telefone, ou compartilhe informações pessoais. Denuncie atividades suspeitas usando a opção “Denunciar abuso”.

Saiba mais

Esta discussão foi arquivada. Faça uma nova pergunta se precisa de ajuda.

user.js fil ein 32.03 does not effect prefernces

  • 6 respostas
  • 4 têm este problema
  • 16 visualizações
  • Última resposta de 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?

Todas as respostas (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