Remove Google AI from web search

I don’t use Google, but this is for those who do. If you append “&udm=14” to the end of a Google search, it’ll default you to their old “web” style. Adding the following to your Tampermonkey extension will make it automatic so you don’t need to think about it. It’s today’s quick and easy life improvement.

One could also use udm14.com to do the same. However, I can’t verify they won’t harvest your data and organs.

remove_google_ai_.js

    // ==UserScript==
    // @name         Bypass Google's AI push into search
    // @namespace    http://tampermonkey.net/
    // @version      1.0
    // @description  Appends &udm=14 to the end of any Google search URL
    // @author       Johnny Rotten (You should never, ever be understood completely.)
    // @match        https://www.google.com/search*
    // @grant        none
    // ==/UserScript==

    (function() {
        'use strict';

        // Function to append &udm=14 to the URL
        function appendUdm() {
            let url = new URL(window.location.href);
            if (!url.searchParams.has('udm')) {
                url.searchParams.append('udm', '14');
                window.location.replace(url.toString());
            }
        }

        // Run the function on page load
        appendUdm();
    })();
Previous: Tampermonkey Automatic Website Refresh Next: The Fall Guy