Tagged articles
clipboard
12 articles · Page 1 of 1
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

This article explains how to use the browser's Visibility API and Clipboard API to detect when a web page becomes visible after being hidden, read text or image data from the clipboard in a secure context, and trigger custom actions such as link parsing or image uploading.
clipboardclipboard-readvisibilitychange
0 likes · 10 min read

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

This guide explains why building your own password generator with a Tkinter graphical interface enhances security, customization, and learning, and provides a complete Python example that generates random passwords, displays them, and optionally copies them to the clipboard using pyperclip.
GUIclipboardpassword-generator
0 likes · 5 min read

This article explains why a copy button failed on mobile browsers, compares the modern Clipboard API with the deprecated document.execCommand method, and provides a robust fallback implementation in a custom React hook that works across browsers and secure contexts.
COPYclipboardfallback
0 likes · 5 min read

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

This article provides a comprehensive guide to creating various wxPython GUI elements—including Frame windows, toolbars, MDI and MiniFrame windows, multiple types of dialogs, and clipboard operations—complete with explanatory text, screenshots, and full Python code examples.
DialogGUIPython
0 likes · 14 min read

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.
CCTVclipboarddata leakage
0 likes · 3 min read

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

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.
JavaScriptWeChat Mini-Programclipboard
0 likes · 4 min read

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.
C++Linuxclipboard
0 likes · 10 min read

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
