Forum Voices

Brings back the "voices" in threads

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

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

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name           Forum Voices
// @namespace      ventero.de
// @author         Ventero
// @description    Brings back the "voices" in threads
// @include        http://www.kongregate.com/forums/*
// @date           05.04.2013
// @version        0.7
// @license        MIT license
// ==/UserScript==
// Written by Ventero (http://www.kongregate.com/accounts/Ventero) 07.11.2010
// Licensed under MIT/X11 license
// Copyright (c) 2010-2013 Ventero
// http://www.opensource.org/licenses/mit-license.php

function createVoices(){
	var forum_info = $$(".forum_info")[0];
	forum_info.setStyle({overflow: "visible"});

	var sidebar = new Element("div", {
		style: "position: absolute; width: 300px; right: 0px; top: -30px;"
	}).insert(new Element("h5").update("Voices"));
	var container = sidebar.wrap(new Element("div", {
		style: "position: relative;"
	}));

	var ul = new Element("ul", {"class": "flat talking"});
	$$(".fn").map(function(ele){
		return $A(ele.down("a").getAttribute("href").split("/")).last();
	}).uniq().each(function(user){
		ul.insert(new Element("li", {"style": "display: inline-block;"}).insert(
			new Element("a", {href: "/accounts/" + user}).update(user)
		));
	});
	sidebar.insert(ul);
	forum_info.insert(container);
}

if($$(".forum_info").length){
	var s = document.createElement("script");
	s.setAttribute("type", "text/javascript");
	s.innerHTML = "(" + createVoices.toString() + ")();";
	document.body.appendChild(s);
	setTimeout(function(){document.body.removeChild(s);}, 100);
}