Skip to content
Advertisement

How to Enable Right Click and Copy Paste

Amit YadavAmit Yadav···4 min read
Browser context menu blocked on a webpage with copy disabled

Some sites block right-click, text selection, or copy shortcuts to protect content or reduce scraping. Banks sometimes do it on payment pages. For normal reading and research, these blocks are easy to bypass in your own browser.

Pair this with our best Chrome extensions list, useful bookmarklets, and how to access blocked websites when a site limits more than copying.

Ways to restore right-click and copy

1. Block JavaScript for one site

Built-in

Most copy blocks listen for the contextmenu, copy, or selectstart events in JavaScript.

  1. Click the padlock or site-info icon left of the address bar.
  2. Open Site settings.
  3. Set JavaScript to Block.
  4. Reload the page and try right-click or copy again.

To block JavaScript everywhere, open chrome://settings/content/javascript and choose Do not allow sites to use JavaScript, then add exceptions for sites you trust.

Chrome site settings showing JavaScript permission toggle

2. Use a browser extension

Easiest

Extensions override the handlers sites attach at load time. Most toggle right-click and text selection together.

Turn the extension on only for the tab you need, then disable it elsewhere. See extensions that work in Incognito if you browse in private mode.

3. Run a bookmarklet

No install

A bookmarklet is JavaScript saved as a bookmark. Drag this link to your bookmarks bar, open the blocked page, then click it:

javascript:void(document.oncontextmenu=null)

To reset a body attribute some sites set:

javascript:void(document.body.removeAttribute("oncontextmenu"))

Dragging JavaScript code to bookmark bar to create a bookmarklet

4. Paste code in DevTools Console

One-off

Press F12 (or Ctrl+Shift+J / Cmd+Option+J), open the Console tab, paste, and press Enter:

document.oncontextmenu=null
document.onselectstart=null
document.oncopy=null

This lasts until you reload. Use it when you do not want to install an extension for a single paragraph.

5. Inject fixes with User JavaScript and CSS

Per-site rules

The User JavaScript and CSS extension runs your own snippets on matching URLs.

Example URL patterns:

  • www.example.com/* (all pages on one host)
  • *.example.com/* (include subdomains)
  • * (every site, use sparingly)

Add the console lines from method 04 as JS, or pair with the CSS below for sites that block highlighting with user-select: none.

User JavaScript and CSS extension with custom code injected

More detail in our guide to add CSS and JavaScript to any webpage.

6. Override CSS user-select

Text highlight

When you can right-click but cannot highlight text, the page CSS may set user-select: none. Inject:

* {
  -webkit-user-select: text !important;
  user-select: text !important;
}

Use the User JavaScript and CSS extension above, or any stylesheet injector you already trust.

Why do websites disable right-click?
Sites use JavaScript to block the context menu, copy shortcuts, or text selection. The goal is usually to reduce content scraping or image saving, not to stop normal readers.
Is it legal to bypass copy protection on a website?
For personal reference on content you can already view, bypassing a client-side block in your own browser is common. Do not use these tricks to republish paywalled or copyrighted material.
Will disabling JavaScript always work?
Only when the block is script-based. Server-side restrictions, DRM, or canvas-rendered text may still resist copying. In those cases try Reader Mode or request the source another way.
Which method is safest for banking sites?
Avoid extensions on login or payment pages. If a bank blocks right-click for security, use the built-in copy tools the page provides instead of overriding protections.
Do bookmarklets work in Firefox and Edge?
Yes. Create a new bookmark and paste the javascript: URL into the location field. Click it on the blocked page the same way as in Chrome.
Why does copy work until I refresh?
Console snippets and bookmarklets reset on reload because the site scripts run again. Extensions or per-site JS injection persist across visits until you turn them off.
AYAmit Yadav

Amit Yadav

Contributor

Amit loves new tech and apps that make life easier, he writes about apps, games and useful websites on TheTechBasket.

869 articles writtenView all posts by Amit →

Related articles

See all