yojimbos_law

game.ash with likely a million issues (WIP)

Oct 18th, 2018
498
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. buffer whole_page = visit_url();
  2. //make chat be open when the relay browser is loaded.
  3. whole_page = whole_page.replace_string("<frame name=chatpane src=\"chatlaunch.php\">","<frame name=chatpane src=\"mchat.php\">");
  4.  
  5.  
  6. //make leftmost frame column in game.php (the charpane) not exist
  7. 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*,*\" >");
  8. //get rid of the charpane frame.
  9. whole_page.replace_string("<frame name=charpane src=\"charpane.php\" >", "");
  10.  
  11. //append the declaration of a frameset to the end of the mainpane's frameset
  12. 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=\"3*,*\" >");
  13.  
  14. //put the charpane.php frame on top of mchat.php's column and close the frameset tag added above.
  15. 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>");
  16.  
  17.  
  18. whole_page.write();
Advertisement
Add Comment
Please, Sign In to add comment