HS CB Floater

Adds the HS CB to GW

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name        HS CB Floater
// @include     http://game.galaxywarfare.com*
// @description Adds the HS CB to GW
// @version     Public Beta 5.5
// @require     http://code.jquery.com/jquery-3.1.0.js
// @namespace   https://greasyfork.org/users/26728
// ==/UserScript==

var CB = document.createElement('div');
var missions = document.getElementById('missions');
missions.parentNode.insertBefore(CB, missions);

CB.innerHTML =''
+ '<div class="well well-small" id="CB1" style="display: none;">'
+ '<iframe src="http://v1.halosphere.net/shoutbox_frame.php?id=3839" style="border: 0px # none; width: 100%;" height="160px"></iframe>'
+ '</div>';

var CBC = document.createElement('span');
var chat = document.getElementById('halosphere');
chat.parentNode.insertBefore(CBC, chat.nextSibiling);

CBC.innerHTML ='<a href="javascript:;" style="display: inline; border-top-left-radius: 0px; border-bottom-left-radius: 0px;" onclick="$(\'#CB1\').toggle();" class="btn btn-mini togglebtn pull-right btn-primary">Toggle HS CB</a>';