Advertisement
Guest User

Untitled

a guest
Mar 19th, 2018
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. var style = document.createElement('style');
  2. style.type = 'text/css', style.innerHTML = `
  3. #player_container {
  4. width: 370px;
  5. min-height: 100px;
  6. max-height: 400px;
  7. display: inline-block;
  8. text-align: center;
  9. overflow: hidden;
  10. overflow-y: scroll;
  11. }
  12. .online_player {
  13. border: 1px solid #694b0e;
  14. padding: 3px 8px 3px;
  15. display: inline-block;
  16. width: 110px;
  17. margin: 1px;
  18. background: #1b1717;
  19. font-size: 13px;
  20. line-height: 13px;
  21. cursor: pointer;
  22. color: orange;
  23. box-sizing: border-box;
  24. text-decoration: none;
  25. text-align: center;
  26. text-overflow: ellipsis;
  27. white-space: nowrap;
  28. overflow: hidden;
  29. }
  30. `, document.getElementsByTagName('head')[0].appendChild(style), $('#lagmeter').click(function() {
  31. var b = g.worldname,
  32. c = new XMLHttpRequest;
  33. c.open('GET', 'https://crossorigin.me/http://www.margonem.pl/?task=stats', !1), c.send();
  34. var d = c.response,
  35. e = new DOMParser,
  36. f = e.parseFromString(d, 'text/html'),
  37. h = f.querySelector(`#online_${b} p`).textContent,
  38. j = '',
  39. k = [];
  40. for (var l in k = h.split(', '), k) j += '<div class="online_player">' + k[l] + '</div>';
  41. var m = `<div id="player_container">${j}</div>`;
  42. mAlert(m, 0, function() {
  43. $('#player_container').remove()
  44. })
  45. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement