您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
no more 'For You'
// ==UserScript== // @name Twitter Tab Keeper // @namespace http://ejew.in/ // @version 0.2 // @description no more 'For You' // @author EntranceJew // @match https://twitter.com/home // @icon https://www.google.com/s2/favicons?sz=64&domain=twitter.com // @grant none // @license MIT // ==/UserScript== window.addEventListener("load", (event) => { console.log('orange tree'); if ( document.querySelector('div.r-16y2uox.r-cpa5s6.r-6b64d0.css-175oi2r:nth-of-type(1) > a[aria-selected="true"]') ){ document.querySelector('div.r-16y2uox.r-cpa5s6.r-6b64d0.css-175oi2r:nth-of-type(2) > a[aria-selected="false"]').click(); } });