RoomJoinEnhancement *OLD*

Allows you to join any room, full or not

  1. // ==UserScript==
  2. // @name RoomJoinEnhancement *OLD*
  3. // @namespace skyboy@kongregate
  4. // @author skyboy
  5. // @version 1.1.0
  6. // @description Allows you to join any room, full or not
  7. // @include http://www.kongregate.com/games/*/*
  8. // @homepage http://userscripts-mirror.org/scripts/show/86087
  9. // ==/UserScript==
  10. if (/^\/?games\/[^\/]+\/[^\/?]+(\?.*)?$/.test(window.location.pathname)) {
  11. setTimeout(function() {
  12. 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:'<u style=\"color:#099\">'+a+'</u>'},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(++i<c){l+=(d=n[i]).length;if(l>m){if(i){n[i-1]+='<br>'} if(d.length>m)d=d.replace(/(.{20})(?=.{10})/g,'$1<br>');l=0}--m}a.name=n.join(' ')}a.joinable=!0};a.setRooms=function(a){a.each(c);b.call(this,a)}}))"));
  13. }, 1250);
  14. }