Twitter auto-refresh

Refreshes the timeline items automatically every 10 sec.

2016/01/26のページです。最新版はこちら

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name         Twitter auto-refresh
// @namespace    http://elamperti.com/
// @version      0.1
// @description  Refreshes the timeline items automatically every 10 sec.
// @author       Enrico Lamperti
// @match        https://twitter.com/*
// @grant        none
// ==/UserScript==
/* jshint -W097 */
'use strict';

function updateTimeline() {
  var newTweets = document.querySelector(".new-tweets-bar");
  if (newTweets) {
    newTweets.click();
  }
  return true;
}

setInterval(updateTimeline, 10000);