Hack Forums - Community Radio

Adds a link to start the Hack Forums Community Radio player in a new window.

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

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

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

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

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

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

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name        Hack Forums - Community Radio
// @namespace   Doctor Blue
// @description Adds a link to start the Hack Forums Community Radio player in a new window.
// @require     http://code.jquery.com/jquery-2.1.4.min.js
// @include     *hackforums.net*
// @exclude     *wiki.hackforums.net*
// @version     1.1.1
// @grant       none
// ==/UserScript==

$j = $.noConflict(true)

$j('#header > .menu > ul').append('<li><a id="openRadio" class="navButton" href="" style="color: #4EC7FF" target=>Radio</a></li>')
$j('#openRadio').on('click', function() {
  window.open('http://tunein.com/embed/station/250935?autoplay=true&size=small','player','width=550,height=157,scrollbars=no')
  return false
})