Twitter Word Ultrablock

Removes the "View" button on tweets that contain muted words.

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램을 설치해야 합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

// ==UserScript==
// @name         Twitter Word Ultrablock
// @name:et      Twitter Sõnade Ultrablokk
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  Removes the "View" button on tweets that contain muted words.
// @description:et Ei lase sul vaadata blokeeritud sõnadega säutse.
// @author       Zomg
// @match        https://*.twitter.com/*
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant        none
// @license      MIT
// ==/UserScript==

function check() {
    //console.log("Hiiiiiiiiiiiiiiiiiiiiiiiiii");
    let buttons = document.getElementsByTagName("span");
    //console.log(buttons);
    for (let i = 0; i < buttons.length; i++) {
        let button = buttons[i];
        if (button.textContent === "View") {
            //console.log("FOUND ONE!");
            var counter = 2
            while (counter > 0) {
                button = button.parentElement;
                counter--;
            }
            button.style.display = "none";
        }
    }
}

const observer = new MutationObserver(check)
observer.observe(document, { childList: true, subtree: true })