Twitter hide unreplyable posts

hide all tweets that cant be replied to

15.04.2024 itibariyledir. En son verisyonu görün.

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         Twitter hide unreplyable posts
// @namespace    http://tampermonkey.net/
// @version      2024-04-15
// @description  hide all tweets that cant be replied to
// @author       You
// @match        https://twitter.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=twitter.com
// @grant        none
// @license MIT
// ==/UserScript==




setInterval(()=>{
    const tweets=document.querySelectorAll("main section [aria-label*='Timeline'] [data-testid='cellInnerDiv']")
    for(const tweet of [...tweets]){
        let replyIcon=tweet.querySelector("[role='group'] [data-testid='reply'] svg");
        if(replyIcon){
            const replyIconStyle=getComputedStyle(replyIcon)
            const opacity=+replyIconStyle.opacity;
            if(opacity===0.4){
                tweet.style.display="none"
            }
        }
    }
},50)