Trumphider

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

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey, Greasemonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

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

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

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

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

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

(I already have a user script manager, let me install it!)

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.

(I already have a user style manager, let me install it!)

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");

})();