Stop JavaScript from modifying the clipboard in Firefox

Did it ever happen to you that you copied text from a webpage and when you pasted the text it was modified, or nothing at all appeared? This happens because the page in question executes JavaScript code that modifies the clipboard.

To avoid that, you can disable JavaScript or change your Firefox settings this way:

  1. Type about:config in the address bar.
  2. Press Enter and then the button Accept the Risk and Continue.
  3. Type dom.event.clipboardevents.enabled in the search box.
  4. Double-click on that preference, or press its Toggle button to change its value to false.

It should look like this

This way, the web pages you visit will not be able to modify your clipboard. Note that some web applications that modify the clipboard with JavaScript (such as Collabora) will no longer be able to do this, so their paste functionality will no longer work properly.

How to download YouTube playlist

You can use yt-dlp. There are many ways to install it, one of them is with the package manager of your distro:

sudo apt install yt-dlp

To download a playlist you only have to type in a terminal yt-dlp and the URL of the playlist you want to download, and press the Enter key. For instance:

yt-dlp https://youtube.com/playlist?list=PLvvDxND6LkgB_5dssZod-3BET4_DFRmtU

This program not only downloads videos from YouTube, it can also download videos from many websites.

How to bypass newspaper paywalls

Many newspapers display paywalls that prevent us from seeing the full content of articles. There are, however, a few tricks to avoid them.

A useful browser extension that allows us to bypass those paywalls is Bypass Paywalls Clean. This extension works for popular websites, and others can easily be added. How does it work? Basically, the extension uses tricks such as disabling JavaScript, disabling cookies or changing the user agent to that of a known web crawler (such as Googlebot).

There is no need to install the above extension if you don't want to. Read on to find out in detail the tricks you can use to avoid most paywalls.

Keep reading How to bypass newspaper paywalls