ポストするボタンをツイートするボタンに変更

Twiiterのポストするボタンをエックスするボタンに変更する。

// ==UserScript==
// @name         ポストするボタンをツイートするボタンに変更
// @namespace    https://twitter.com/yosshi9990
// @version      1.0
// @description  Twiiterのポストするボタンをエックスするボタンに変更する。
// @author       元祖のヨッシー
// @match        *://twitter.com/*
// @grant        none
// @compatible   vivaldi
// @compatible   chrome
// @compatible   firefox
// @compatible   edge
// @icon https://abs.twimg.com/responsive-web/client-web/icon-ios.b1fc727a.png
// @supportURL   https://twitter.com/messages/compose?recipient_id=1183000451714703361
// @contributionURL https://www.youtube.com/@gansonoyoshi?sub_confirmation=1
// @license MIT
// ==/UserScript==

(function() {
    window.setInterval(function(){
        let elements = document.querySelectorAll('*');
        const filterElements = Array.from(elements)
        .filter((element)=> element.textContent === 'ポストする');
        filterElements[7].textContent="ツイートする";
    }, 500);
})();