twitter latest

force web twitter to show tweets chronologically

  1. // ==UserScript==
  2. // @name twitter latest
  3. // @namespace https://greasyfork.org/en/users/36620
  4. // @version 0.1
  5. // @description force web twitter to show tweets chronologically
  6. // @author scriptfairy
  7. // @match https://twitter.com/home
  8. // @require http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. (function($) {
  13.  
  14. $(document).ready(function() {
  15. setTimeout(function(){
  16. let top = $('[aria-label="Top Tweets on"]');
  17.  
  18. if (top[0]) {
  19. top.trigger("click");
  20. setTimeout(function() {
  21. let toggle = $("span:contains('See latest Tweets instead')");
  22. toggle.parent().parent().parent().trigger("click");
  23. }, 1000);
  24. }
  25.  
  26. }, 2000);
  27. });
  28.  
  29. })(window.jQuery);