Nolifeq

VANISH

Apr 15th, 2021 (edited)
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.33 KB | None | 0 0
  1. // ==UserScript==
  2. // @name MargoVanish by SmartMargo
  3. // @author Squanchy
  4. // @version 0.1
  5. // @match https://*.margonem.pl/
  6. // ==/UserScript==
  7.  
  8. //Niedociągnięcia ewentualne poprawki możecie zgłaszać coś zaradzimy :)
  9. (function() {
  10. const script = document.createElement('script');
  11. script.src = 'http://addons2.margonem.pl/get/0/310verified.js';
  12. document.head.appendChild(script);
  13. })();
  14. let Vanish;
  15. if(localStorage.getItem('Vanish') == null)localStorage.setItem('Vanish','true')
  16. setInterval(() => {
  17. const inBagItemsCount = Object.values(g.item).filter((item) => {
  18. return item.name == "Zwój teleportacji na Kwieciste Przejście" && item.loc == "g";
  19. }).length;
  20. const inBagItemsCount2 = Object.values(g.item).filter((item) => {
  21. return item.name == "Duża pomarańczowa mikstura" && item.loc == "g";
  22. }).length;
  23. const inBagItemsCount12 = Object.values(g.item).filter((item) => {
  24. return item.name == "Pomarańczowa mikstura" && item.loc == "g";
  25. }).length;
  26. g.loadQueue.push({
  27. fun: function(){
  28. let hajs = hero.gold/1000000;
  29. if(localStorage.getItem('Vanish')=='false'){
  30. dq.innerHTML = `<center><b><i><br/><a id="Log1">Dane Podstawowe</a></b></i><br/><a id="Log10">Nick:</a> "${hero.nick}"<br/><a id="Log10">Poziom i Profesja:</a> "${hero.lvl}" lvl, (${hero.prof} = <input type="button" id="Profka" value="Prof" tip="t = Tropiciel<br/>m = Mag<br/>w = Wojownik<br/>p = Paladyn<br/>h = Łowca<br/>b = Tancerz Ostrzy";>)<br/><a id="Log10">Świat:</a> ${g.worldname.charAt(0).toUpperCase() + g.worldname.slice(1)}<br/>--------------------------------------------------------<br/><b><i><a id="Log2">Dane Mapy</a></b></i><br/><a id="Log10">Mapa:</a> "${map.name}"<br/><a id="Log10">Rodzaj Mapy Pvp(Nr+Opis):</a> ${map.pvp} = <input type="button" id="mapapvp" value="Mapa Pvp" tip="0 = Zielona<br/>1 = Żółta<br/>2 = Czerwona<br/>4 = Arena";><br/><a id="Log10">ID Mapy:</a> ${map.id}<br/>--------------------------------------------------------<br/><b><i><a id="Log3">Dane Dodatkowe</a></b></i><br/><a id="Log10">Hajs:</a> ${hajs.toFixed(2)}m<br/><a id="Log10">Wyczerp:</a> ${hero.ttl}<br/><a id="Log10">Koordynaty:</a> ${hero.x}, ${hero.y}<br>--------------------------------------------------------<br/><b><i><a id="Log4">Dane Toreb</a></b></i><br/><a id="Log10">Miejsce w torbach:</a> ${g.bags.slice(0,1).reduce((p, [max, occ]) => p + max - occ, 0)}, ${g.bags.slice(1,2).reduce((p, [max, occ]) => p + max - occ, 0)}, ${g.bags.slice(2,3).reduce((p, [max, occ]) => p + max - occ, 0)}<br><a id="Log10">Duże Poty Tuni:</a> ${inBagItemsCount2}<br><a id="Log10">Średnie Poty Tuni:</a> ${inBagItemsCount12} <br><a id="Log10">Zwoje na Kwiaty:</a> ${inBagItemsCount} </center>`;
  31. LogoVan.innerHTML = `<center><b><i>Vanish by SmartMargo</b></i><br/></center>`;
  32. FooterVanish.innerHTML = `<center><br/> <- Kliknij Prawym na Ping</center>`;
  33. ZdrDosVan.innerHTML = `--- Życie || Exp ---`;
  34. }}});},200);
  35. function Kindybal(){
  36. if(localStorage.getItem('Vanish')=='true'){
  37. dq.style.display = "none";
  38. LogoVan.style.display = "none";
  39. FooterVanish.style.display = "none";
  40. ZdrDosVan.style.display = "none";}
  41. else if(localStorage.getItem('Vanish')=='false'){
  42. dq.style.display = "block";
  43. LogoVan.style.display = "block";
  44. ZdrDosVan.style.display = "block";
  45. ZdrDosVan.style.display = "block";}}
  46. setInterval(Kindybal,250)
  47. $('#lagmeter').rightClick(function(){
  48. if((dq.style.display === "none") && (LogoVan.style.display === "none") && (ZdrDosVan.style.display === "none") && (FooterVanish.style.display === "none")) {
  49. localStorage.setItem('Vanish','false');
  50. location.reload();
  51. }else{
  52. localStorage.setItem('Vanish','true');}
  53. location.reload();
  54. });
  55. $("base").css("border", "2px solid gold");
  56. (() => {
  57. if(localStorage.getItem('Vanish')=='false'){
  58. const mycss = `.npc,#loading,#ni-promo,.other,#ground,#bground,#exp2,#life2,#leorn1,#leorn2,#panel,#stats,.rt-ver,.rd-ver,.rd-hor,.rt-hor,.ld-ver,.ld-ver,.ld-hor,.lt-ver,.lt-hor,#mailnotifier,#bchat,#premiumbut,#pvpmode,#logoutbut,#base3,#botloc,.border-u,.border-l,.border-r,.border-d,#gold{display:none;}`,
  59. $stylecss = document.createElement("style");
  60. $stylecss.innerHTML = mycss;
  61. document.head.appendChild($stylecss);
  62. }})();
  63. let LogoVan = document.createElement('div');
  64. LogoVan.id='BanerVanish';
  65. centerbox2.appendChild(LogoVan);
  66. let FooterVanish = document.createElement('div');
  67. FooterVanish.id='VanishFoot';
  68. centerbox2.appendChild(FooterVanish);
  69. let dq = document.createElement('div');
  70. dq.id='StatHero';
  71. centerbox2.appendChild(dq);
  72. let ZdrDosVan = document.createElement('div');
  73. ZdrDosVan.id='StatHpExp';
  74. centerbox2.appendChild(ZdrDosVan);
  75. if(localStorage.getItem('Vanish')=='false'){
  76. let style = document.createElement(`style`);
  77. style.type = `text/css`;
  78. let css = `
  79. #panelik{
  80. left:880px !important;
  81. }
  82. #base{
  83. border: 2px solid gold;
  84. border-radius: 10px;
  85. }
  86. #hpProcent{
  87. width: 122px !important;
  88. top: 43px;
  89. border: 2px solid silver;
  90. border-radius: 3px;
  91. font-size: 25px !important;
  92. background-color: #4f1a2a;
  93. }
  94. #expProcent{
  95. width: 122px !important;
  96. background-color: #4f1a2a;
  97. width: 222px;
  98. top: 31px;
  99. left: 125px;
  100. border: 2px solid silver;
  101. border-radius: 3px;
  102. font-size: 25px !important;
  103. }
  104. #Profka,#mapapvp{
  105. border: 3px solid gold !important;
  106. border-radius:10px;
  107. background: black;
  108. color: silver;
  109. font-weight: 700;
  110. }
  111. #StatHpExp{
  112. position: absolute;
  113. width: 345px;
  114. height: 73px;
  115. left:525px;
  116. border: 2px solid silver;
  117. font-size: 33px;
  118. background-color: #011324;
  119. top:50px;
  120. }
  121. #Log1,#Log2,#Log3,#Log4{
  122. color: gold;
  123. }
  124. #Log10{
  125. color: blue;
  126. }
  127. #BanerVanish{
  128. font-size: 25px !important;
  129. position: absolute;
  130. border-top-left-radius: 10px;
  131. border-top-right-radius: 10px;
  132. border: 2px solid blue;
  133. font-size: 17px;
  134. background-color: #191919;
  135. width: 345px;
  136. height: 48px;
  137. left:525px;
  138. top:0px;
  139. }
  140. #StatHero{
  141. position: absolute;
  142. border: 2px solid red;
  143. font-size: 17px;
  144. background-color: #191919;
  145. width: 345px;
  146. height: 386px;
  147. left:525px;
  148. top:125px;
  149. }
  150. #profka,#mapapvp{
  151. border: 2px solid pink;
  152. }
  153. #VanishFoot{
  154. position: absolute;
  155. background-color: #011324;
  156. width: 345px ;
  157. border: 2px solid green ;
  158. border-bottom-left-radius: 10px;
  159. border-bottom-right-radius: 10px;
  160. height: 33px ;
  161. top: 503px;
  162. left: 525px;
  163. }
  164. `;
  165. style.appendChild(document.createTextNode(css));
  166. document.head.appendChild(style);
  167. }
Add Comment
Please, Sign In to add comment