HS CB Floater

Adds the HS CB to GW

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 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>';