// ==UserScript== // @name X_Twitter_Pinned_List_Open // @name:ja X(Twitter)で固定されたリストを開く // @namespace https://greasyfork.org/users/1324207 // @match https://x.com/ // @match https://x.com/home // @version 2.2 // @run-at document-start // @author Lark8037 // @description Open a pinned list when you visit X(Twitter). // @description:ja X(Twitter)を訪れた時に固定されたリストを開きます。 // @license MIT // @icon https://abs.twimg.com/favicons/twitter.3.ico // @downloadURL none // ==/UserScript== (() => { let done = false; const isSelected = el => el?.getAttribute("aria-selected") === "true"; const tick = () => { if (done) return; const tabs = document.querySelectorAll('[role="tab"]'); if (tabs.length < 3) { requestAnimationFrame(tick); return; } if (!isSelected(tabs[0]) && !isSelected(tabs[1])) { requestAnimationFrame(tick); return; } if (!isSelected(tabs[2])) { tabs[2].click(); } done = true; }; requestAnimationFrame(tick); })();