Greasy Fork

chinahrt自动播放插件

autoplay

// ==UserScript==
// @name         chinahrt自动播放插件
// @include      http://web.chinahrt.com
// @include      https://web.chinahrt.com
// @version      1.2
// @description  autoplay
// @author       JoshuaYang
// @match        http://videoadmin.chinahrt.com.cn/videoPlay/play*
// @match        http://videoadmin.chinahrt.com/videoPlay/play*
// @match        https://videoadmin.chinahrt.com.cn/videoPlay/play*
// @match        https://videoadmin.chinahrt.com/videoPlay/play*
// @grant        none
// @namespace http://web.chinahrt.com
// ==/UserScript==

(function() {
    'use strict';

    window.onfocus = function(){console.log('on focus')};
    window.onblur = function(){console.log('on blur')};
})();