Disable Clipboard Manipulations in Firefox

There are times when we copy some words from a webpage and find something new when we paste it, usually with some copyright related messages. See below as an example:

Test page: http://download.cnet.com/Mobogenie/3000-18511_4-75952185.html

cnet clipboard manipulations

The problem is:

The original source page listens to copy, paste and cut events and adds something into your clipboard.

The solution is simple:

 locate dom.event.clipboardevents.enable preference item in Firefox about:config, and set it to false (default is true)

This will prevent watching behaviour towards copy, paste and cut event, thus, the original pages don’t know what you have copied, or we can say: they won’t be informed when you copied something.


Here is a video showing how it works :

If you don’t want to get your hands dirty with Firefox advanced settings, you can try this add-on:


Disable clipboard manipulations Firefox addon

This entry was posted in Firefox. Bookmark the permalink.

4 Responses to Disable Clipboard Manipulations in Firefox

  1. JohnKimble says:

    Thank you! This was driving me nuts on some websites. Can confirm this still works.

  2. flaz14 says:

    Thank you very much for this post, Jeriff!

    I’ve looked about how to get protected from Pastejacking attacks (https://github.com/dxa4481/Pastejacking). After applying your snippet the demo described there doesn’t work (so I get

    echo “not evil”

    without any additional symbols after copy-paste).

    Seems that for 100% protection Document.execCommand() should be disabled for actions ‘cut’, ‘copy’ and ‘paste’ (BTW does anybody know how to disable these actions in Firefox settings, without any addons installed?). But anyway your tip helps in major number of cases!

  3. Yongd says:


  4. Jiangshui says:

    Your new theme looks so high big up!

Leave a Reply

Your email address will not be published. Required fields are marked *