赛尔号官网夜间版开放

使赛尔号官网开放夜间版,在夜间也可以通过赛尔号官网进入游戏。

// ==UserScript==
// @name 赛尔号官网夜间版开放
// @match *://seer.61.com/
// @version 1.0.0
// @author  橙汁
// @copyright   橙汁
// @namespace http://tampermonkey.net/
// @homepageURL https://space.bilibili.com/293848435
// @supportURL  http://mail.qq.com/cgi-bin/qm_share?t=qm_mailme&email=973354623@qq.com
// @license     GNU General Public License version 2; https://opensource.org/licenses/GPL-2.0
// @description  使赛尔号官网开放夜间版,在夜间也可以通过赛尔号官网进入游戏。
// @grant none
// ==/UserScript==

var autoTimes = new Date();
var hour=autoTimes.getHours();
if (hour<6)
  {
    var flashUrl = "Client.swf?" + autoTimes.getTime();
    var so = new SWFObject(flashUrl, "Client", "960", "560", "8", "#000000");
    so.addParam("menu", "false");
    so.addParam("wmode", "opaque");
    so.addParam("allowFullScreen", "true");
    so.addParam("allowScriptAccess", "always");
    so.addParam("allowFullScreenInteractive", "true");
    so.addParam("quality", "low");
    so.write("flashContent");
  }