您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Switch to "Following" TAB on visiting twitter's home
// ==UserScript== // @name Switch to "Following" TAB // @namespace http://tampermonkey.net/ // @version 0.3 // @description Switch to "Following" TAB on visiting twitter's home // @author You // @match https://twitter.com/ // @match https://twitter.com/home // @icon https://www.google.com/s2/favicons?sz=64&domain=twitter.com // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; const callback = (mutationsList, observer) => { const followingTabLink = document.querySelector('div[role=tablist] div[role=presentation]:nth-child(2) a'); if (followingTabLink) { followingTabLink.click(); observer.disconnect(); } }; const observer = new MutationObserver(callback); observer.observe(document.body, { childList: true, subtree: true }); })();