Загрузка...

TamperMonkey | Making invisible text visible

Thread in Extentions created by lvlvdv48 Sep 28, 2023. (bumped Oct 7, 2023) 152 views

  1. lvlvdv48
    lvlvdv48 Topic starter Sep 28, 2023 Banned 60 Sep 3, 2023
    Вроде ворк
    на TamperMonkey
    JS
    // ==UserScript==
    // @name Отображает невидимый текст
    // @namespace http://tampermonkey.net/
    // @version 0.1
    // @description Отображает невидимый текст
    // @author lvlvdv48
    // @match https://zelenka.guru/threads/*
    // @grant none
    // ==/UserScript==

    (function() {
    'use strict';

    function changeBlockquoteTextColor() {
    const blockquotes = document.querySelectorAll('blockquote.messageText.SelectQuoteContainer.baseHtml.ugc');

    blockquotes.forEach(function(blockquote) {
    const textSpans = blockquote.querySelectorAll('span');

    textSpans.forEach(function(span) {
    const computedStyle = window.getComputedStyle(span);
    const textColor = computedStyle.getPropertyValue('color');

    if (textColor === 'rgb(39, 39, 39)') {
    span.style.color = 'white';
    }
    });
    });
    }

    function processNewBlockquotes() {
    changeBlockquoteTextColor();
    }

    processNewBlockquotes();
    setInterval(processNewBlockquotes, 1000);
    })();
     
Loading...
Top