twitter start with following tab

auto-selects Twitter's "following" tab instead of the default "for you" tab

  1. // ==UserScript==
  2.  
  3. // @name twitter start with following tab
  4. // @namespace twitter_kboudy
  5. // @description auto-selects Twitter's "following" tab instead of the default "for you" tab
  6. // @match https://twitter.com/*
  7. // @match https://twitter.com
  8. // @version 1.1
  9. // @run-at document-start
  10. // @grant none
  11. // @license MIT
  12. // ==/UserScript==
  13.  
  14. const intervalHandle = setInterval(function(){
  15. const tabs = document.querySelectorAll("[role='tab']");
  16. if (tabs.length > 1)
  17. {
  18. tabs[1].click();
  19. clearInterval(intervalHandle);
  20. }
  21. },100);

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址