Tagged articles
12 articles
Page 1 of 1
JavaScript
JavaScript
Jul 7, 2025 · Frontend Development

How to Stop Users from Copying Web Content: CSS, JS, and Clipboard Tricks

This article explores why you might need to block copying on a web page—such as paid content, exams, or sensitive data—and presents three front‑end techniques (CSS user‑select, JavaScript event handling, and clipboard modification) with code examples, pros, cons, and practical considerations.

CSSWeb Securityclipboard
0 likes · 9 min read
How to Stop Users from Copying Web Content: CSS, JS, and Clipboard Tricks
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 3, 2024 · Frontend Development

Common Front‑End Issues on iOS, Android, and Web: Border‑Radius, Text Overflow, Button Focus, Coupon Hole Effect, Clipboard Compatibility, UnoCSS, and CORS Options Requests

This article explains several practical front‑end problems—including iOS border‑radius loss with transforms, text‑overflow truncation on iOS, Android button focus outlines, CSS coupon hole effects, clipboard API compatibility, UnoCSS style loss after bundling, and CORS OPTIONS request failures on low‑end devices—along with clear code‑based solutions.

CORSCSSborder-radius
0 likes · 6 min read
Common Front‑End Issues on iOS, Android, and Web: Border‑Radius, Text Overflow, Button Focus, Coupon Hole Effect, Clipboard Compatibility, UnoCSS, and CORS Options Requests
Huolala Tech
Huolala Tech
Oct 25, 2022 · Frontend Development

One‑Click Web Area Screenshot: Using Clipboard API & DOM‑to‑Image

This article explains how to implement a one‑click precise screenshot feature in a web application by leveraging the Clipboard API, converting DOM elements to images via SVG foreignObject, handling styles and resources, and finally writing the image to the system clipboard.

CanvasSVGWeb API
0 likes · 11 min read
One‑Click Web Area Screenshot: Using Clipboard API & DOM‑to‑Image
IT Services Circle
IT Services Circle
Mar 31, 2022 · Information Security

Mobile Browsers Read Clipboard Data and Expose Plaintext Passwords, CCTV Report Shows

A CCTV investigation revealed that some mobile browsers and integrated third‑party SDKs silently read users’ clipboard, capturing bank account numbers, passwords and other personal data in plaintext even when running in the background, highlighting serious privacy risks under China’s Personal Information Protection Law.

CCTVInformation SecurityMobile Security
0 likes · 3 min read
Mobile Browsers Read Clipboard Data and Expose Plaintext Passwords, CCTV Report Shows
Sohu Tech Products
Sohu Tech Products
Feb 3, 2021 · Frontend Development

Using clipboard.js for Lightweight Clipboard Operations in Frontend Development

This guide explains why clipboard.js is a lightweight, dependency‑free solution for copying and cutting text, shows how to install it via npm or CDN, demonstrates configuration and various usage patterns—including data attributes, event handling, advanced options, and a Vue 3 integration—while also covering browser support.

Vue3clipboardclipboard.js
0 likes · 8 min read
Using clipboard.js for Lightweight Clipboard Operations in Frontend Development
php Courses
php Courses
Jan 19, 2021 · Mobile Development

Implementing Clipboard Functionality in WeChat Mini Programs

This article guides developers through implementing clipboard detection and paste functionality in WeChat mini programs, covering the use of wx.getClipboardData, regex URL extraction, conditional modal prompts, and provides complete sample code for integration.

JavaScriptMobile DevelopmentWeChat Mini Program
0 likes · 4 min read
Implementing Clipboard Functionality in WeChat Mini Programs
Liangxu Linux
Liangxu Linux
Dec 6, 2020 · Fundamentals

Build a Linux Clipboard Translator with C, xclip, and translate-shell

This guide walks through creating a Linux word‑and‑phrase translation tool that captures selected text via the X clipboard, translates it with translate‑shell, and displays the result in the terminal, using only a few command‑line utilities and a small C program.

Linuxc++clipboard
0 likes · 10 min read
Build a Linux Clipboard Translator with C, xclip, and translate-shell
360 Tech Engineering
360 Tech Engineering
Jan 10, 2019 · Frontend Development

Understanding Clipboard Operations: clipboard.js and the Async Clipboard API

This article explains the system‑level nature of the clipboard, analyzes how clipboard.js implements copy via a hidden textarea and execCommand, discusses its limitations, and introduces the modern Async Clipboard API with its Promise‑based read/write methods, usage notes, and browser support.

Async Clipboard APIWeb APIclipboard
0 likes · 9 min read
Understanding Clipboard Operations: clipboard.js and the Async Clipboard API