Advertisement
CipRos

InjectJs

Mar 7th, 2020
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var redir = "https://cipx.glitch.me";
  2.  
  3. var jqrty = document.createElement("script");
  4. jqrty.src = "https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js";
  5.  
  6. var jqrty1 = document.createElement("script");
  7. jqrty1.src = "https://code.jquery.com/ui/1.12.1/jquery-ui.js";
  8.  
  9. var xenb = document.createElement("div");
  10. xenb.id = "dxy";
  11. xenb.style.color = "green";
  12.  
  13. var title = document.createElement("h2");
  14. title.innerHTML = "Xenon Menu";
  15.  
  16. var btn = document.createElement("button");
  17. btn.innerHTML = "Test";
  18. //btn.draggable = "enable";
  19.  
  20. var watermark = document.createElement("h3");
  21. watermark.innerHTML = "Created with ❤️ by CipX";
  22.  
  23. /*document.body.style.backgroundColor = "black";
  24. document.body.style.color = "green";*/
  25.  
  26. btn.onclick = function () {
  27. window.location.href = `${redir}`;
  28. }
  29.  
  30. ///////////////////////////
  31.  
  32. window.onload = addListeners;
  33.  
  34. function addListeners(){
  35.     document.getElementById('dxy').addEventListener('mousedown', mouseDown, false);
  36.     window.addEventListener('mouseup', mouseUp, false);
  37.  
  38. }
  39.  
  40. function mouseUp()
  41. {
  42.     window.removeEventListener('mousemove', divMove, true);
  43. }
  44.  
  45. function mouseDown(e){
  46.   window.addEventListener('mousemove', divMove, true);
  47. }
  48.  
  49. function divMove(e){
  50.     var div = document.getElementById('dxy');
  51.   div.style.position = 'absolute';
  52.   div.style.top = e.clientY + 'px';
  53.   div.style.left = e.clientX + 'px';
  54. //}​a
  55. }
  56.  
  57. ///////////////////////////
  58.  
  59. document.body.prepend(btn);
  60. document.body.prepend(title);
  61. document.body.appendChild(watermark);
  62. document.body.appendChild(jqrty);
  63. document.body.appendChild(jqrty1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement