// ==UserScript==
// @name RoomJoinEnhancement *OLD*
// @namespace skyboy@kongregate
// @author skyboy
// @version 1.1.0
// @description Allows you to join any room, full or not
// @include http://www.kongregate.com/games/*/*
// @homepage http://userscripts-mirror.org/scripts/show/86087
// @downloadURL none
// ==/UserScript==
if (/^\/?games\/[^\/]+\/[^\/?]+(\?.*)?$/.test(window.location.pathname)) {
setTimeout(function() {
javascript:void(window.location.assign("javascript:void(document.observe('holodeck:ready',function(){var p=function(a){a+='';while(a.length<3)a='0'+a;return a},r=function(a,r){return r?a:''+a+''},a=ChatRoomGroup.prototype,b=a.setRooms,c=function(a,b){var q=a.registered_user_count,d=a.total_user_count,n=a.name,c=0,i=-1,l=0,m=29; a.total_user_count=d?r(q,a.joinable)+' | '+p(d-q):0;if(n.length>m){c=(n=n.split(/\\s+/g)).length;while(++im){if(i){n[i-1]+='
'} if(d.length>m)d=d.replace(/(.{20})(?=.{10})/g,'$1
');l=0}--m}a.name=n.join(' ')}a.joinable=!0};a.setRooms=function(a){a.each(c);b.call(this,a)}}))"));
}, 1250);
}