Advertisement
Nolifeq

Untitled

Jan 3rd, 2022
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.85 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Auto Blogo Klanowe chwilowe
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.2
  5. // @description try to take over the world!
  6. // @author Ktoś && Squanchy
  7. // @match https://*.margonem.pl/
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. const UserAX = getCookie('user_id');
  12. const ChAX = getCookie('mchar_id');
  13. if (!localStorage.getItem(UserAX+`b_lolall`+ChAX)){
  14. let b_loplayerma = {
  15. x: -40,
  16. y: 120,
  17. }
  18. localStorage.setItem(UserAX+`b_lolall`+ChAX, JSON.stringify(b_loplayerma));
  19. };
  20. var hyb_lol = JSON.parse(localStorage.getItem(UserAX+`b_lolall`+ChAX));
  21. $('<div id="Blog_Klanik">').css({
  22. position: "absolute",
  23. left: hyb_lol.x,
  24. top: hyb_lol.y,
  25. width: 240,
  26. height: 101,
  27. borderRadius: 15,
  28. color: "#000",
  29. "text-align": "center",
  30. "background-color": "black",
  31. "border-style": "solid",
  32. "border-color": "silver",
  33. "border-width": "2px",
  34. 'zIndex': '901',
  35. }).appendTo("#centerbox2");
  36. $(Blog_Klanik).draggable({
  37. stop: () =>{
  38. let b_lolall = {
  39. x: parseInt(Blog_Klanik.style.left),
  40. y: parseInt(Blog_Klanik.style.top)
  41. }
  42. localStorage.setItem(UserAX+`b_lolall`+ChAX, JSON.stringify(b_lolall));
  43. }
  44. });
  45. Blog_Klanik.style.left = hyb_lol.x;
  46. Blog_Klanik.style.top = hyb_lol.y;
  47. Blog_Klanik.innerHTML = `<html>
  48. <body></br>
  49. <span style="display:flex; font-size: 15px; justify-content: center; color: white; font-style: italic; font-weight: 700"; >
  50. Blogo Klanowe by Ktoś & Squanchy:</span>
  51. </br>
  52. <select class="select" id="b_k">
  53. <option value="1">Upiorne wzmocnienie</option>
  54. <option value="2">Krwawe widmo</option>
  55. <option value="3">Czarcie spojrzenie</option>
  56. <option value="4">Krwawa aura</option>
  57. <option value="5">Demoniczne zniszczenie</option>
  58. <option value="6">Moc z zaświatów</option>
  59. <option value="7">Śmiertelne westchnienie</option>
  60. </select><br/>
  61. <input type="checkbox" id="_bpl">
  62. </div>
  63. </body>
  64. </html>`
  65. let BlKlSEl = document.getElementById('b_k');
  66. BlKlSEl.addEventListener('change', () => {
  67. localStorage.setItem(UserAX+'b_k'+ChAX, document.getElementById('b_k').value)
  68. });
  69. ! function _l() {
  70. var _va = localStorage.getItem(UserAX+'b_k'+ChAX);
  71. document.getElementById('b_k').value = _va;
  72. }();
  73. let b_lo = document.getElementById("_bpl");
  74. b_lo.addEventListener('change', ()=>{
  75. localStorage.setItem(UserAX+'_bpl'+ChAX, b_lo.checked)
  76. message("Aktywny blog: " + `${document.getElementById('_bpl').checked}`)
  77. });
  78. ! function _lo() {
  79. var checkedy = JSON.parse(localStorage.getItem(UserAX+'_bpl'+ChAX));
  80. document.getElementById("_bpl").checked = checkedy;
  81. }();
  82. setInterval(function(){
  83. var bless;
  84. if((hero.clan) && (b_lo.checked==true)){
  85. for(let a in g.item)10 == g.item[a].st && (bless = g.item[a]);
  86. if('undefined' == typeof bless)
  87. _g(`clan&a=skills_use&name=blessing&opt=${localStorage.getItem(UserAX+'b_k'+ChAX)}&ans=1`)
  88. }}, 5000);
  89.  
  90.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement