yojimbos_law

game.ash relay override for making chat start open

Oct 3rd, 2024
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1.  
  2. buffer whole_page = visit_url();
  3. //make relay browser load with chat already open instead of making you click shit to do so.
  4. whole_page = whole_page.replace_string("<frame name=chatpane src=\"chatlaunch.php\">","<frame name=chatpane src=\"mchat.php\">");
  5.  
  6. /*
  7.  
  8. //the rest of this script just positions the charpane above the chatpane.
  9.  
  10.  
  11. //make leftmost frame column in game.php (the charpane) not exist
  12. whole_page.replace_string(whole_page.group_string("<frameset id=rootset name=\"root\" cols=\"\\d+\\,3\\*\\,\\*\" >")[0][0],"<frameset id=rootset name=\"root\" cols=\"3*,*\" >");
  13. //get rid of the charpane frame.
  14. whole_page.replace_string("<frame name=charpane src=\"charpane.php\" >", "");
  15.  
  16. //append the declaration of a frameset to the end of the mainpane's frameset
  17. whole_page.replace_string(whole_page.group_string("<frame name=mainpane src=\".*?\"></frame></frameset>")[0][0],whole_page.group_string("<frame name=mainpane src=\".*?\"></frame></frameset>")[0][0]+"<frameset id=whatever rows=\"*,*\" >");
  18.  
  19. //put the charpane.php frame on top of mchat.php's column and close the frameset tag added above.
  20. whole_page.replace_string("<frame name=chatpane src=\"mchat.php\"></frame>", "<frame name=charpane src=\"charpane.php\" ><frame name=chatpane src=\"mchat.php\"></frame></frameset>");
  21.  
  22. */
  23.  
  24. whole_page.write();
  25.  
  26.  
Advertisement
Add Comment
Please, Sign In to add comment