Thomasims

URealms - HCJustin Chat embedded

May 27th, 2017
347
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.24 KB | None | 0 0
  1. Hey, here's an upgraded version of the URealms chat 'hack'.
  2. Now it adds a tab instead of replacing the URealms chat.
  3. You can either open your browser console (on https://stream.urealms.com/) (F12 on chrome) and copy this in:
  4.  
  5. $("#side").append('<div id="panelJChat" class="" style="display: none; height: calc(100% - 40px);"><iframe src="https://www.twitch.tv/hcjustin/chat?popout=" style="width:100%;height:100%" frameborder="0"></iframe></div>');
  6. $(".pull-left").append(' <button class="btn btn-primary" onclick="tabJChat(this)"><i class="fa fa-comment"></i> JChat</button>');
  7. tabChat = function(e) { return $("#panelDonate").hide(), $("#panelJChat").hide(), $("#panelChat").show(), $(e).parent().children().removeClass("active"), $(e).addClass("active"), !1 };
  8. tabDonate = function(e) { return $("#panelChat").hide(), $("#panelJChat").hide(), $("#panelDonate").show(), $(e).parent().children().removeClass("active"), $(e).addClass("active"), $(e).removeClass("new"), !1 };
  9. tabJChat = function(e) { return $("#panelDonate").hide(), $("#panelChat").hide(), $("#panelJChat").show(), $(e).parent().children().removeClass("active"), $(e).addClass("active"), !1 };
  10.  
  11.  
  12. Or add a bookmark with this as the URL and click the bookmark when you're on the page (include the 'javascipt:' line):
  13.  
  14. javascript:
  15. $("#side").append('<div id="panelJChat" class="" style="display: none; height: calc(100% - 40px);"><iframe src="https://www.twitch.tv/hcjustin/chat?popout=" style="width:100%;height:100%" frameborder="0"></iframe></div>');
  16. $(".pull-left").append(' <button class="btn btn-primary" onclick="tabJChat(this)"><i class="fa fa-comment"></i> JChat</button>');
  17. tabChat = function(e) { return $("#panelDonate").hide(), $("#panelJChat").hide(), $("#panelChat").show(), $(e).parent().children().removeClass("active"), $(e).addClass("active"), !1 };
  18. tabDonate = function(e) { return $("#panelChat").hide(), $("#panelJChat").hide(), $("#panelDonate").show(), $(e).parent().children().removeClass("active"), $(e).addClass("active"), $(e).removeClass("new"), !1 };
  19. tabJChat = function(e) { return $("#panelDonate").hide(), $("#panelChat").hide(), $("#panelJChat").show(), $(e).parent().children().removeClass("active"), $(e).addClass("active"), !1 };
  20.  
  21.  
  22. PS: I don't recommend running it twice :p
Advertisement
Add Comment
Please, Sign In to add comment