Create Full Room

Room of 8 players in 1 click.

  1. // ==UserScript==
  2. // @name Create Full Room
  3. // @namespace createfullroomforbonk.io
  4. // @version 2
  5. // @description Room of 8 players in 1 click.
  6. // @author Helloim0_0, (Bonk Commands)
  7. // @match https://bonk.io/*
  8. // @run-at document-idle
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. if(document.getElementById("maingameframe").contentDocument.getElementById("classic_mid_fullroombutton") == null){
  13. document.getElementById("maingameframe").contentDocument.getElementById("roomlistrefreshbutton").click();
  14. var fullroombutton = document.getElementById("maingameframe").contentDocument.createElement("div");
  15. fullroombutton.id = "classic_mid_fullroombutton";
  16. fullroombutton.classList.value = "brownButton brownButton_classic classic_mid_buttons";
  17. fullroombutton.textContent = `Create Full Room`;
  18. fullroombutton.onclick = function(){
  19. document.getElementById("maingameframe").contentDocument.getElementById("roomlistcreatewindowgamename").value = document.getElementById("maingameframe").contentDocument.getElementById("classic_mid_nameofroom").value;
  20. document.getElementById("maingameframe").contentDocument.getElementById("roomlistcreatewindowmaxplayers").value = 8;
  21. document.getElementById("maingameframe").contentDocument.getElementById("roomlistcreatecreatebutton").click();
  22. document.getElementById("maingameframe").contentDocument.getElementById("classic_mid_customgame").click();
  23. };
  24. document.getElementById("maingameframe").contentDocument.getElementById("classic_mid").insertBefore(fullroombutton,document.getElementById("maingameframe").contentDocument.getElementById("classic_mid_customgame"))
  25. }
  26.  
  27. if(document.getElementById("maingameframe").contentDocument.getElementById("classic_mid_nameofroom") == null){
  28. document.getElementById("maingameframe").contentDocument.getElementById("roomlistrefreshbutton").click();
  29. var nameofroom = document.getElementById("maingameframe").contentDocument.createElement("input");
  30. nameofroom.id = "classic_mid_nameofroom";
  31. nameofroom.ondblclick = function dblclick(data){
  32. if(data.altKey){
  33. nameofroom.value = document.getElementById("maingameframe").contentDocument.getElementById('pretty_top_name').innerHTML + "'s game"
  34. }
  35. }
  36. document.getElementById("maingameframe").contentDocument.getElementById("classic_mid").insertBefore(nameofroom,document.getElementById("maingameframe").contentDocument.getElementById("classic_mid_customgame"))
  37. }