mihura

try to take over the world!

  1. // ==UserScript==
  2. // @name mihura
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description try to take over the world!
  6. // @author You
  7. // @match http://play.afreecatv.com/pkdlwpans/220773575
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. $(function() {
  12. var addScript = document.createElement('script');
  13. addScript.src = 'http://code.jquery.com/ui/1.10.2/jquery-ui.js';
  14. addScript.type = 'text/javascript';
  15. document.getElementsByTagName('head')[0].appendChild(addScript);
  16.  
  17. var addScript1 = document.createElement('script');
  18. addScript1.src = 'http://code.jquery.com/jquery-1.9.1.min.js';
  19. addScript1.type = 'text/javascript';
  20. document.getElementsByTagName('head')[0].appendChild(addScript1);
  21.  
  22.  
  23. var test = document.createElement("div");
  24. var button = document.createElement("button");
  25. test.id = "testArea";
  26. button.id = "testbutton";
  27. document.body.append(test);
  28. $("#mngr_menu").append(button);
  29. $("#test").dialog({
  30. autoOpen : false,
  31. position : {my:"left", at:"left top"},
  32. modal : true,
  33. resizable : true,
  34. buttons : {
  35. "닫기" : function(){
  36. $(this).dialog("close");
  37. }
  38. }
  39. });
  40. });