[WordPress] 外掛分享: Tiny Simple AdBlock Detector

首頁外掛目錄 › Tiny Simple AdBlock Detector
WordPress 外掛 Tiny Simple AdBlock Detector 的封面圖片
10+
安裝啟用
尚無評分
30 天前
最後更新
問題解決
WordPress 5.0+ PHP 7.4+ v1.2.0 上架:2016-07-04

內容簡介

Tiny Simple AdBlock Detector 是一款輕量級的外掛,幫助網站管理者應對使用廣告封鎖器的訪客。透過簡單的 CSS 類別切換,您可以請求訪客將您的網站加入白名單、隱藏內容或追蹤廣告封鎖的使用情況,無需編寫任何 JavaScript 代碼。

【主要功能】
• 輕量級設計,僅需 2 KB 的 JavaScript
• 無需配置,啟用即用
• 支援所有主要的廣告封鎖器
• 兼容各大頁面建構器,如 Gutenberg 和 Elementor
• 內建偵錯模式,實時檢測結果

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.2.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Tiny Simple AdBlock Detector」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Over 40% of internet users run an ad blocker. Tiny Simple AdBlock Detector gives you the power to respond — politely ask visitors to whitelist your site, gate premium content, or simply track awareness — all without touching a line of JavaScript yourself.
How it works
The plugin loads a tiny decoy script with a filename that ad blockers love to block. When the script gets blocked, a lightweight CSS class swap kicks in — revealing or hiding any element you’ve marked up. That’s it. No jQuery, no external services, no tracking pixels, no cookie banners.
Two CSS classes. Infinite possibilities.

class="show-only-when-adblock" — Element appears only when an ad blocker is active.
class="hide-only-when-adblock" — Element disappears when an ad blocker is active.

Add them to any HTML element: a

, a Gutenberg block, an Elementor section, a WooCommerce notice — anything.
Real-world examples

“Please whitelist us” — Show a polite banner only to ad-blocking visitors
Content gating — Hide exclusive articles or downloads from users blocking your ads
Alternative monetization — Show a “Support us on Patreon” box only when ads are blocked
Analytics — Pair with your analytics tool to track ad-blocker adoption rates on your site

Why this plugin?

Zero configuration — Activate it and it works. No settings page, no wizard, no API key.
Ridiculously lightweight — Under 2 KB of JavaScript. Your visitors won’t notice.
No external requests — Nothing leaves your server. Fully GDPR-friendly.
Works with all major ad blockers — uBlock Origin, AdBlock Plus, AdBlock, AdGuard, Brave Shield, Opera built-in blocker.
Page builder compatible — Works with Gutenberg, Elementor, Divi, WPBakery, Beaver Builder — anything that lets you add a CSS class.
Built-in debug mode — Append ?tsad_debug=1 to any URL to see live detection results.
Translation-ready — Includes Polish translation. PRs welcome for others.

From the maker of WP Multi Tool
This plugin is built by the same developer behind WP Multi Tool — the Swiss Army knife for WordPress developers and site administrators. If you manage multiple WordPress sites, check it out.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon