Tagged articles
14 articles
Page 1 of 1
Architect
Architect
Nov 2, 2024 · Frontend Development

How to Build Robust Dark Watermarks and Boost OCR Accuracy in Web Apps

This article walks through the evolution of watermark techniques, demonstrates how to harden a front‑end watermark against deletion, invisibility, and covering using MutationObserver and canvas, introduces a low‑visibility dark watermark with decode logic, and details OCR integration and optimization to improve recognition accuracy in screenshot‑search scenarios.

CanvasImage ProcessingMutationObserver
0 likes · 21 min read
How to Build Robust Dark Watermarks and Boost OCR Accuracy in Web Apps
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 29, 2024 · Frontend Development

Optimizing ECharts Integration in Vue and React with Lazy Loading, Theme Switching, and DOM Observation

This article presents a comprehensive solution for integrating ECharts into Vue and React projects, addressing bundle size, API complexity, and lack of CSS‑variable support by introducing custom imports, a draw helper, MutationObserver‑based resizing, theme‑aware color replacement, lazy loading, and usage examples for both frameworks.

MutationObserverReactTheme Switching
0 likes · 18 min read
Optimizing ECharts Integration in Vue and React with Lazy Loading, Theme Switching, and DOM Observation
DeWu Technology
DeWu Technology
Sep 11, 2024 · Frontend Development

Advanced Watermark Techniques and OCR Integration for Front-End Applications

The article details progressive front‑end watermark schemes—from a basic canvas overlay to mutation‑observer‑protected, hide‑ and cover‑resistant, and low‑opacity dark watermarks—and explains how adaptive tone handling, contrast tuning, region cropping, and a hybrid OCR pipeline (internal service with tesseract.js fallback) ensure robust, invisible data protection and accurate screenshot analysis.

CanvasFront-endImage Processing
0 likes · 20 min read
Advanced Watermark Techniques and OCR Integration for Front-End Applications
ByteFE
ByteFE
Apr 17, 2023 · Frontend Development

rrweb: A Deep Dive into Web Page Recording and Replay Mechanism

rrweb is an open-source library that records web page DOM changes as JSON arrays instead of video streams, enabling precise replay of user interactions without compression artifacts or storage overhead.

DOM recordingJavaScriptMutationObserver
0 likes · 20 min read
rrweb: A Deep Dive into Web Page Recording and Replay Mechanism
IT Services Circle
IT Services Circle
Feb 16, 2022 · Frontend Development

Using Browser Observer APIs: IntersectionObserver, MutationObserver, ResizeObserver, PerformanceObserver, and ReportingObserver

This article explains how to use the five browser Observer APIs—IntersectionObserver, MutationObserver, ResizeObserver, PerformanceObserver, and ReportingObserver—to monitor element visibility, attribute changes, size adjustments, performance metrics, and browser interventions, providing code examples and practical use cases.

IntersectionObserverMutationObserverReportingObserver
0 likes · 10 min read
Using Browser Observer APIs: IntersectionObserver, MutationObserver, ResizeObserver, PerformanceObserver, and ReportingObserver
Xueersi Online School Tech Team
Xueersi Online School Tech Team
Jan 21, 2022 · Frontend Development

White‑Screen Detection and Performance Optimization for Front‑End Applications

The article explains the concept of white‑screen time, its impact on user experience, and presents multiple detection methods—including Navigation Timing API, MutationObserver, element‑point analysis, and headless‑browser simulation—along with implementation code and a monitoring‑alert architecture for front‑end performance optimization.

MutationObserverPuppeteerfrontend
0 likes · 17 min read
White‑Screen Detection and Performance Optimization for Front‑End Applications
ELab Team
ELab Team
May 20, 2021 · Frontend Development

Robust Browser Watermarks: DOM Overlays, Canvas, SVG & Hidden Image Techniques

This article explores why adding watermarks to web pages is essential for protecting confidential content, compares front‑end and back‑end watermarking approaches, and provides step‑by‑step implementations using DOM overlays, canvas, SVG, image processing, and MutationObserver to keep watermarks resilient against tampering.

CanvasImage ProcessingMutationObserver
0 likes · 20 min read
Robust Browser Watermarks: DOM Overlays, Canvas, SVG & Hidden Image Techniques
WeDoctor Frontend Technology
WeDoctor Frontend Technology
Feb 1, 2021 · Frontend Development

Turn Web Interactions into Video: Recording, Incremental Snapshots, and rrweb Playback

This article explains how to capture user interactions on insurance web pages by taking DOM snapshots, creating incremental snapshots with MutationObserver, leveraging the rrweb library for recording and replay, and converting the recorded data into high‑frame‑rate video using Puppeteer and FFmpeg to ensure reliable evidence.

DOM snapshotMutationObserverfrontend
0 likes · 13 min read
Turn Web Interactions into Video: Recording, Incremental Snapshots, and rrweb Playback
QQ Music Frontend Team
QQ Music Frontend Team
Jul 15, 2018 · Frontend Development

Create Unbreakable Web Page Watermarks with Canvas, SVG, and Node.js

This article presents multiple techniques for generating robust web page and image watermarks—including Canvas and SVG rendering, MutationObserver protection, and Node.js server-side generation—complete with code examples, compatibility notes, and best‑practice recommendations to prevent content leakage and enable traceability.

MutationObserverWatermarknodejs
0 likes · 14 min read
Create Unbreakable Web Page Watermarks with Canvas, SVG, and Node.js
Baidu Waimai Technology Team
Baidu Waimai Technology Team
Jun 13, 2017 · Frontend Development

Design and Implementation of a Universal Frontend Event Tracking Solution

This article presents a universal frontend event tracking (埋点) solution designed for Baidu Takeaway's sales CRM platform, detailing its background, comparison of tracking methods, a declarative approach using Vue directives and MutationObserver mixins, support for legacy jQuery, and practical usage and results.

MutationObserverVuedeclarative-tracking
0 likes · 14 min read
Design and Implementation of a Universal Frontend Event Tracking Solution
Baidu Tech Salon
Baidu Tech Salon
Oct 17, 2014 · Information Security

How to Hook and Hide JavaScript APIs to Thwart XSS Attacks

This article explores practical techniques for intercepting and protecting JavaScript APIs—such as setAttribute—using MutationObserver, API hooks, random token naming, property hiding, and recursive iframe monitoring to build a resilient front‑end defense against XSS and other injection attacks.

API interceptionHookJavaScript
0 likes · 14 min read
How to Hook and Hide JavaScript APIs to Thwart XSS Attacks