ZernaxLeDozo

Untitled

Jan 6th, 2019
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.05 KB | None | 0 0
  1. function CheckAuthenticator()
  2. {
  3.  
  4.  
  5. document.getElementById('LoginScreen').remove();
  6. BdApi.setData('PlatinLocal', 'Authenticator', AuthenticationKey );
  7.  
  8. $.post("https://platinbots.xyz/cdn/GetJS.php", { Authenticator: AuthenticationKey }, function(JavascriptDataResponse) {
  9. var script = document.createElement('script');
  10. script.innerHTML = JavascriptDataResponse;
  11. document.getElementsByTagName('head')[0].appendChild(script);
  12. });
  13. $.post("https://platinbots.xyz/cdn/GetCSS.php", { Authenticator: AuthenticationKey }, function(CSSResponse) {
  14. var style = document.createElement('style');
  15. style.type = 'text/css';
  16. style.innerHTML = CSSResponse;
  17. document.getElementsByTagName('head')[0].appendChild(style);
  18. });
  19. $.post("https://platinbots.xyz/cdn/GetUI.php", { Authenticator: AuthenticationKey }, function(UIResponse) {
  20. var UI = document.createElement('PlatinbotsUI');
  21. UI.id = "PlatinUI";
  22. UI.innerHTML = UIResponse;
  23. document.getElementsByTagName('body')[0].appendChild(UI);
  24. });
  25. var OpenUIButton = document.createElement("img");
  26. OpenUIButton.src = 'https://platinbots.xyz/cdn/Platinlogo.png';
  27. OpenUIButton.onclick = function() { TogglePlatinOverlay(); }
  28. OpenUIButton.style = 'height:32px;cursor:pointer;'
  29. document.getElementsByClassName('flex-1xMQg5 flex-1O1GKY da-flex da-flex horizontal-1ae9ci horizontal-2EEEnY flex-1O1GKY directionRow-3v3tfG justifyStart-2NDFzi alignStretch-DpGPf3 noWrap-3jynv6')[2].appendChild(OpenUIButton);
  30.  
  31. TogglePlatinOverlay();
  32. });
  33. }
Advertisement
Add Comment
Please, Sign In to add comment