Kill Ads on Kids Choice Awards

Disable ads and show FPS counter on kidschoiceawards.com

作者
Ghosty-Tongue
日安装量
0
总安装量
0
评分
0 0 0
版本
1.0.0
创建于
2025-05-16
更新于
2025-05-16
大小
3.4 KB
许可证
MIT
适用于

About

This userscript automatically removes all ads on the Kids’ Choice Awards site (kidschoiceawards.com) and adds a live FPS counter in the top-right corner. It runs once when the page first loads, then re-applies ad-removal every 5 seconds to catch any dynamically injected slots.

Features

  • Stubs out Google Publisher Tags (GPT/DFP), Prebid.js, Amazon TAM, BidBarrel and related ad frameworks so they no-op.
  • Removes any existing ad containers or iframes (e.g. <div class="bb-unit">, iframe[src*="doubleclick"]).
  • Clears ad-unit configurations loaded from JSON on the page.
  • Displays a smooth real-time FPS counter (using requestAnimationFrame) in the top-right corner.
  • Runs immediately on page load, then every 5 seconds to catch late injections.

Installation

  1. Install a userscript manager such as Tampermonkey or Violentmonkey.
  2. Create a new script and paste in both the metadata block (shown below) and the code.
  3. Ensure the @match line covers https://www.kidschoiceawards.com/*.
  4. Save and reload the Kids’ Choice Awards page—you should immediately see ads vanish and an FPS readout appear.

Metadata Block


// ==UserScript==
// @name        Kids’ Choice Awards – Ad Block & FPS Counter
// @namespace   https://greasyfork.org/users/YourName
// @version     1.0.0
// @description Disable ads and show FPS counter on kidschoiceawards.com
// @match       https://www.kidschoiceawards.com/*
// @grant       none
// ==/UserScript==

Usage & Customization

  • If you want a different update interval, edit the setInterval(disableAds, 5000) line.
  • To change the FPS counter position or style, tweak the CSS in counter.style inside the script.
  • The script does not collect or transmit any data—it runs 100% locally in your browser.

Example Code Snippet

function disableAds() {
  window.googletag = {cmd: []};  // stub GPT
  document.querySelectorAll('.bb-unit, .ad-slot, iframe[src*="doubleclick"]').forEach(e => e.remove());
}
requestAnimationFrame(loopFPS);
setInterval(disableAds, 5000);

Changelog

1.0.0
Initial release: ad removal + FPS counter + 5s re-run

License

MIT License — feel free to fork and improve!