Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name MargoVanish by SmartMargo
- // @author Squanchy
- // @version 0.1
- // @match https://*.margonem.pl/
- // ==/UserScript==
- //Niedociągnięcia ewentualne poprawki możecie zgłaszać coś zaradzimy :)
- (function() {
- const script = document.createElement('script');
- script.src = 'http://addons2.margonem.pl/get/0/310verified.js';
- document.head.appendChild(script);
- })();
- let Vanish;
- if(localStorage.getItem('Vanish') == null)localStorage.setItem('Vanish','true')
- setInterval(() => {
- const inBagItemsCount = Object.values(g.item).filter((item) => {
- return item.name == "Zwój teleportacji na Kwieciste Przejście" && item.loc == "g";
- }).length;
- const inBagItemsCount2 = Object.values(g.item).filter((item) => {
- return item.name == "Duża pomarańczowa mikstura" && item.loc == "g";
- }).length;
- const inBagItemsCount12 = Object.values(g.item).filter((item) => {
- return item.name == "Pomarańczowa mikstura" && item.loc == "g";
- }).length;
- g.loadQueue.push({
- fun: function(){
- let hajs = hero.gold/1000000;
- if(localStorage.getItem('Vanish')=='false'){
- 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>`;
- LogoVan.innerHTML = `<center><b><i>Vanish by SmartMargo</b></i><br/></center>`;
- FooterVanish.innerHTML = `<center><br/> <- Kliknij Prawym na Ping</center>`;
- ZdrDosVan.innerHTML = `--- Życie || Exp ---`;
- }}});},200);
- function Kindybal(){
- if(localStorage.getItem('Vanish')=='true'){
- dq.style.display = "none";
- LogoVan.style.display = "none";
- FooterVanish.style.display = "none";
- ZdrDosVan.style.display = "none";}
- else if(localStorage.getItem('Vanish')=='false'){
- dq.style.display = "block";
- LogoVan.style.display = "block";
- ZdrDosVan.style.display = "block";
- ZdrDosVan.style.display = "block";}}
- setInterval(Kindybal,250)
- $('#lagmeter').rightClick(function(){
- if((dq.style.display === "none") && (LogoVan.style.display === "none") && (ZdrDosVan.style.display === "none") && (FooterVanish.style.display === "none")) {
- localStorage.setItem('Vanish','false');
- location.reload();
- }else{
- localStorage.setItem('Vanish','true');}
- location.reload();
- });
- $("base").css("border", "2px solid gold");
- (() => {
- if(localStorage.getItem('Vanish')=='false'){
- 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;}`,
- $stylecss = document.createElement("style");
- $stylecss.innerHTML = mycss;
- document.head.appendChild($stylecss);
- }})();
- let LogoVan = document.createElement('div');
- LogoVan.id='BanerVanish';
- centerbox2.appendChild(LogoVan);
- let FooterVanish = document.createElement('div');
- FooterVanish.id='VanishFoot';
- centerbox2.appendChild(FooterVanish);
- let dq = document.createElement('div');
- dq.id='StatHero';
- centerbox2.appendChild(dq);
- let ZdrDosVan = document.createElement('div');
- ZdrDosVan.id='StatHpExp';
- centerbox2.appendChild(ZdrDosVan);
- if(localStorage.getItem('Vanish')=='false'){
- let style = document.createElement(`style`);
- style.type = `text/css`;
- let css = `
- #panelik{
- left:880px !important;
- }
- #base{
- border: 2px solid gold;
- border-radius: 10px;
- }
- #hpProcent{
- width: 122px !important;
- top: 43px;
- border: 2px solid silver;
- border-radius: 3px;
- font-size: 25px !important;
- background-color: #4f1a2a;
- }
- #expProcent{
- width: 122px !important;
- background-color: #4f1a2a;
- width: 222px;
- top: 31px;
- left: 125px;
- border: 2px solid silver;
- border-radius: 3px;
- font-size: 25px !important;
- }
- #Profka,#mapapvp{
- border: 3px solid gold !important;
- border-radius:10px;
- background: black;
- color: silver;
- font-weight: 700;
- }
- #StatHpExp{
- position: absolute;
- width: 345px;
- height: 73px;
- left:525px;
- border: 2px solid silver;
- font-size: 33px;
- background-color: #011324;
- top:50px;
- }
- #Log1,#Log2,#Log3,#Log4{
- color: gold;
- }
- #Log10{
- color: blue;
- }
- #BanerVanish{
- font-size: 25px !important;
- position: absolute;
- border-top-left-radius: 10px;
- border-top-right-radius: 10px;
- border: 2px solid blue;
- font-size: 17px;
- background-color: #191919;
- width: 345px;
- height: 48px;
- left:525px;
- top:0px;
- }
- #StatHero{
- position: absolute;
- border: 2px solid red;
- font-size: 17px;
- background-color: #191919;
- width: 345px;
- height: 386px;
- left:525px;
- top:125px;
- }
- #profka,#mapapvp{
- border: 2px solid pink;
- }
- #VanishFoot{
- position: absolute;
- background-color: #011324;
- width: 345px ;
- border: 2px solid green ;
- border-bottom-left-radius: 10px;
- border-bottom-right-radius: 10px;
- height: 33px ;
- top: 503px;
- left: 525px;
- }
- `;
- style.appendChild(document.createTextNode(css));
- document.head.appendChild(style);
- }
Add Comment
Please, Sign In to add comment