{"id":16,"date":"2014-10-16T01:37:02","date_gmt":"2014-10-16T09:37:02","guid":{"rendered":"http:\/\/blog.tailslide.org\/?p=16"},"modified":"2014-10-16T01:37:02","modified_gmt":"2014-10-16T09:37:02","slug":"stop-javascript-from-hijacking-clipboard-actions-in-firefox","status":"publish","type":"post","link":"http:\/\/blog.tailslide.org\/?p=16","title":{"rendered":"Stop Javascript from hijacking clipboard actions in Firefox"},"content":{"rendered":"<p>Since I&#8217;ve been using password managers for a while now (KeePass &#038; LastPass) I keep noticing that some sites will block you from pasting into their password fields.  So no I&#8217;m not typing in that randomly generated 64 character password ever.<\/p>\n<p>A bit of googling found a Firefox extension that disables clipboard events, but it&#8217;s now built into Firefox itself.<\/p>\n<p>Paste this into the URL bar:<br \/>\n<code>about:config<\/code><\/p>\n<p>then change this key from true to FALSE<br \/>\n<code>dom.event.clipboardevents.enabled<\/code><\/p>\n<p>Now JS in page can&#8217;t see clipboard related events and thus can&#8217;t stop you from pasting into password fields among other things.<\/p>\n<p>Obviously beware that this may cause issues on some sites, but I&#8217;d rather deal with that if it happens than be annoyed by not being able to paste into password fields.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Since I&#8217;ve been using password managers for a while now (KeePass &#038; LastPass) I keep noticing that some sites will block you from pasting into their password fields. So no I&#8217;m not typing in that randomly generated 64 character password &hellip; <a href=\"http:\/\/blog.tailslide.org\/?p=16\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[],"class_list":["post-16","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p16AwM-g","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/blog.tailslide.org\/index.php?rest_route=\/wp\/v2\/posts\/16","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.tailslide.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.tailslide.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.tailslide.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.tailslide.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=16"}],"version-history":[{"count":0,"href":"http:\/\/blog.tailslide.org\/index.php?rest_route=\/wp\/v2\/posts\/16\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.tailslide.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=16"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.tailslide.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=16"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.tailslide.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=16"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}