Force Enable Right-Click & Selection

Restore right-click, text selection, and copy-paste on sites that try to block them.

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey, Greasemonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

You will need to install an extension such as Tampermonkey to install this script.

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

ผู้เขียน
EdwardDk
จำนวนติดตั้งประจำวัน
0
จำนวนติดตั้งทั้งหมด
5
คะแนน
0 0 0
เวอร์ชัน
1.0
สร้างเมื่อ
14-04-2026
อัปเดตเมื่อ
14-04-2026
Size
1.13 กิโลไบต์
สัญญาอนุญาต
MIT
ปรับใช้กับ
ไซต์ทั้งหมด

Right-Click and Selection Bypass Script



Project Overview

This User Script is designed for browser extensions like Tampermonkey or Greasemonkey. It addresses the common issue of web platforms disabling native browser functionality such as the context menu, text highlighting, and the clipboard.

Problem Solved

Web developers often implement preventDefault() on specific mouse events to prevent users from saving images or copying text. This script intercepts those commands at the document level before the website's internal logic can execute them.



Technical Implementation

  • Event Interception: Uses the capture phase of event propagation to stop contextmenu and selectstart events.
  • CSS Injection: Overrides user-select: none properties that prevent text highlighting via stylesheets.
  • Global Scope: Applies to all protocols and subdomains using the *://*/* match pattern.