Skip to content
TORNLIFE More

[SCRIPT] Remove Flashy Rainbow overlay

Started by Will [2057823] on in Tools & Userscripts.

4 replies · 132 views · thread synced · 5 days ago · View on torn.com
About this thread

Posts archived: 5 / 5 posts (100%) · the total is Torn's reply count + the opening post at the last fetch

Counted by TornLife from the archived posts.

Archived posts
5
Discussion span
→
People posting
4
Likes on archived posts
15
Authority score
36 / 100
Historical score
20 / 100
Story score
36 / 100
Engagement score
58 / 100

Most-liked replies

Will [2057823]

Hello,

 

no offence but I have a habit to use the Torn logo button a lot and my eyes are not happy with the flashing rainbow, so asked grok for a fast script to prevent it. Cheers and happy Pride Day!

// ==UserScript==
// @name         Remove Pride Overlay
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Hide pride day overlay
// @author       Grok
// @match        https://www.torn.com/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    const hideOverlay = () => {
        document.querySelectorAll('.prideDayOverlay___jV2oK').forEach(el => el.remove());
    };
    new MutationObserver(hideOverlay).observe(document.body || document.documentElement, { childList: true, subtree: true });
    hideOverlay();
})();


AeC3 [2883335]

Works on pda and removes top left pride logo 

 

// ==UserScript==

// @name remove pride stuff

// @namespace remove pride

// @version 1.4.0

// @description Remove all Torn pride-day effects and restore the regular logo

// @author AeC

// @match https://www.torn.com/*

// @grant none

// ==/UserScript==

 

(function() {

    'use strict';

 

    // Hide the flashy rainbow effects (overlay, bands, stars) via CSS.

    // Substring selectors survive Torn's React class-hash rotation.

    const>

    style.textContent =

        '[class*="prideDayOverlay"],' +

        '[class*="prideEffect"],' +

        '[class*="prideBand"],' +

        '[class*="prideStars"]{display:none !important;}';

    (document.head || document.documentElement).appendChild(style);

 

    // Swap the rainbow logo back to the regular Torn logo (mobile + desktop).

    const fixLogo = () => {

        document.querySelectorAll('.logo').forEach(el => {

            const bg = getComputedStyle(el).backgroundImage;

            if (bg && bg.indexOf('pride-day') !== -1) {

                el.style.setProperty('background-image', bg.replace(/pride-day/g, 'regular'), 'important');

            }

        });

    };

    new MutationObserver(fixLogo).observe(document.documentElement, { childList: true, subtree: true });

    fixLogo();

})();