Linux 软件免费装
Banner图

Tiny Simple AdBlock Detector

开发者 MythThrazz
更新时间 2026年3月31日 04:28
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

content ads adblock detect ad blocker

下载

1.0.1 1.2.0 1.0.0 1.1.0

详情介绍:

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. Add them to any HTML element: a <div>, a Gutenberg block, an Elementor section, a WooCommerce notice — anything. Real-world examples Why this plugin? 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.

安装:

  1. Install through the WordPress plugin directory, or upload to /wp-content/plugins/.
  2. Activate the plugin. That's it — it's already running.
  3. Add class="show-only-when-adblock" or class="hide-only-when-adblock" to any HTML element.
  4. (Optional) Visit the plugin's admin page for a quick reference and debug link.

屏幕截图:

  • Built-in debug mode showing real-time ad blocker detection on the frontend

升级注意事项:

1.2.0 Verified for WordPress 7.0. Fixed admin page URL bug, added cache busting, improved documentation.

常见问题:

Which ad blockers does it detect?

Tested and confirmed with: uBlock Origin, AdBlock Plus, AdBlock, AdGuard, Brave Shield, and Opera's built-in blocker. It works by exploiting how ad blockers filter script filenames — so it catches most blockers that follow standard filter lists.

Does it slow down my site?

No. The total JavaScript payload is under 2 KB (two tiny files), loaded asynchronously. It makes zero external HTTP requests. Your PageSpeed score won't budge.

Is it GDPR compliant?

Yes. The plugin doesn't collect, store, or transmit any user data. It doesn't set cookies, fingerprint browsers, or phone home. It's pure client-side CSS class toggling.

How do I test if it's working?

Append ?tsad_debug=1 to any page on your site. A debug panel will appear at the bottom showing detection status in real-time. You can also find this link on the plugin's admin page.

Can I use it with Elementor / Gutenberg / page builders?

Absolutely. Just add the CSS class in your page builder's "Advanced" → "CSS Classes" field. Works with Gutenberg, Elementor, Divi, WPBakery, Beaver Builder, and any builder that supports custom CSS classes.

What if someone uses a blocker you don't detect?

The detection relies on ad blockers blocking scripts with "ad-like" filenames (like showads.js). Very aggressive blockers or custom filter lists will definitely get caught. Very minimal or niche blockers might slip through — but those cover a tiny fraction of users.

Can I style the elements differently instead of show/hide?

The plugin uses display: none and display: initial by default. You can override this in your own CSS by targeting .show-only-when-adblock and .hide-only-when-adblock with higher specificity.

更新日志:

1.2.0 1.1.0 1.0.1 1.0.0