Results 1 to 2 of 2

Thread: Grrr

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Aug 2005
    Location
    College Station, TX
    Posts
    4,521

    Grrr

    Name:  Screenshot 2026-02-10 091858.jpg
Views: 165
Size:  12.8 KB

    Anyone with me on this one?

  2. #2
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Posts
    12,371

    Re: Grrr

    I'm not saying that I, as a super moderator, do this. Nor would I recommend anyone doing this...

    However, a simple tamper monkey script can fix this:
    Code:
    // ==UserScript==
    // @name         Hide Ads
    // @namespace    http://tampermonkey.net/
    // @version      2025-09-19
    // @description  hides advertisements
    // @author       You
    // @match        https://www.vbforums.com/*
    // @match
    // @icon         https://www.google.com/s2/favicons?sz=64&domain=vbforums.com
    // @grant        none
    // ==/UserScript==
    
    (function() {
        'use strict';
    
        const removeAds = () => {
            document.querySelectorAll('[data-google-query-id]').forEach(item => item.parentElement?.remove());
            document.querySelectorAll('.below_body').forEach(item => item.remove());
        };
        const observer = new MutationObserver((mutationsList, observer) => {
            for (const mutation of mutationsList) {
                removeAds();
            }
        });
        observer.observe(document.body, {
            childList: true,
            subtree: true
        });
    })();
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | HtmlLessons | CssLessons | Code Tags | Sword of Fury - Jameram

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width