巴哈動畫瘋自動更新彈幕

每10秒自動更新彈幕

目前為 2018-10-13 提交的版本,檢視 最新版本

// ==UserScript==
// @name         巴哈動畫瘋自動更新彈幕
// @namespace    https://greasyfork.org/users/179168
// @version      1.0
// @description  每10秒自動更新彈幕
// @author       YellowPlus
// @run-at       document-start
// @match        *://ani.gamer.com.tw/animeVideo.php?sn=*
// @grant        none
// @require      https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js
// ==/UserScript==

(function() {
    'use strict';

  	document.addEventListener ("DOMContentLoaded", DOM_ContentReady);

  	function DOM_ContentReady () {
    	var t = setInterval(refreshComment, 10000);
		}

  	function refreshComment () {
      $(".refresh").click();
      console.log ("==> Refreshing comment.", new Date() );
    }

})();