Trumphider

HIDE all mentions of Trump and related MAGA terms with black/red boxes.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

Advertisement:

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

Advertisement:

// ==UserScript==
// @name         Trumphider
// @namespace    http://tampermonkey.net/
// @version      2025-05-23
// @description  HIDE all mentions of Trump and related MAGA terms with black/red boxes.
// @author       R
// @match        *://*/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net
// @grant        none
// @require https://code.jquery.com/jquery-3.6.0.min.js
// @license MIT
// ==/UserScript==

(function() {
    'use strict';

    // Your code here...
var col='red';



    var hide = function (x){

        $(':contains(' + x +'):not(:has("*"))').css('background-color', col).css('color', col).hover(
    function(){
  $(this).css("color", "white");
    }, function(){
  $(this).css("color", col);
});

    }

    hide("Trump");


    hide("Elon");
    hide("Musk");
    hide("MAGA");
    hide("Marjorie");

})();