Greasy Fork is available in English.

nCore - Spooky Dayz

idén meglesz az összes

// ==UserScript==
// @name         nCore - Spooky Dayz
// @namespace    http://tampermonkey.net/
// @version      1.71
// @description  idén meglesz az összes
// @author       vacsati
// @match        https://ncore.cc/*
// @require      https://code.jquery.com/jquery-1.12.4.min.js
// @require      https://greasyfork.org/scripts/373944-sutikezeles/code/Sutikezeles.js?version=642233
// @require      https://greasyfork.org/scripts/373945-hangkeszlet/code/Hangkeszlet.js?version=745928
// @require      https://greasyfork.org/scripts/391769-uzenetek/code/Uzenetek.js?version=745900
// ==/UserScript==
(function() {
    'use strict';
    var i, db=0, styleElem, scriptElem, spukiStyle, spukiScript, bovitmeny=[
        'https://greasyfork.org/scripts/373944-sutikezeles/code/Sutikezeles.js?version=642233',
        'https://greasyfork.org/scripts/373945-hangkeszlet/code/Hangkeszlet.js?version=745928',
        'https://greasyfork.org/scripts/391769-uzenetek/code/Uzenetek.js?version=745900'
    ];
    for (i=0;i<bovitmeny.length;i++){scriptElem = document.createElement('script'); scriptElem.src = bovitmeny[i]; document.getElementsByTagName('head')[0].appendChild(scriptElem);}
    spukiStyle ='#spuki_pixel{position:relative;width:0px;}';
    spukiStyle+='#spuki_pixel svg{margin:0;vertical-align:middle;cursor:pointer;}';
    spukiStyle+='#spuki_pixel svg path{fill:rgba(255,255,255,0.8);transition:fill .2s ease;}';
    spukiStyle+='#spuki_gomb{position: absolute;right: 5px;}';
    spukiStyle+='#jlzhely{position:absolute;width:200px;margin-left:-8px;top:20px;right:-92px;opacity:.8;transition:all 2s ease;display:none;z-index:1;background:rgba(0,0,0,0.8);border:2px solid white;padding:8px;border-radius:8px;}';
    spukiStyle+='#jlzhely:hover{opacity:1;}';
    spukiStyle+='#jlzhely_zar{position:absolute;top:0px;right:0px;background:white;border:none;padding:2px;border-radius:0 5px;transition:all .2s ease;}';
    spukiStyle+='#jlzhely_zar svg path{fill:black;transition:fill .2s ease;}';
    spukiStyle+='#jlzhely_zar:hover{background:black;}';
    spukiStyle+='#jlzhely_zar:hover svg path{fill:white;}';
    spukiStyle+='#jlzhely label{display:inline-block;margin-right:20px;cursor:pointer;}';
    spukiStyle+='#jlzhely label:hover svg path, #jlzhely svg:hover path{fill:rgba(255,255,255,1);}';
    spukiStyle+='#jlzhely button{width:16px;height:16px;padding:0;margin:0 2px 0 0;border:none;background:transparent;box-sizing:border-box;vertical-align: middle;cursor:pointer;}';
    spukiStyle+='#jlzhely div button {opacity:0.5;}';
    spukiStyle+='#jlzhely input[type="text"]{width:85px;border:none;margin:2px;padding:2px;border-radius:2px;box-sizing:border-box;}';
    spukiStyle+='#jlzhely #dchely input[type="text"]{width:174px;}';
    spukiStyle+='#jlzhely input[type="button"]{width:12px;height:12px;font-size:10px;border:none;margin:2px;padding:0;border-radius:2px;box-sizing:border-box;vertical-align: middle;}';
    spukiStyle+='#jlzhely input[type="checkbox"]{margin:0;vertical-align:middle;cursor:pointer;}';
    spukiStyle+='#jlzhely input[type="radio"]{height:19px;vertical-align:middle;cursor:pointer;}';
    spukiStyle+='#tghely,  #dchely, #hghely {margin-top:2px;}';
    spukiStyle+='#plyhely {position:absolute;left:8px;right:8px;bottom:0px;}';
    spukiStyle+='#plyhely div {position:absolute;width:400px;left:-100px;top:-10px;text-align:center;}';
    spukiStyle+='#plyhely div audio {margin:auto;transform:scale(0.6,0.6);}';
    styleElem=document.createElement('style');
    styleElem.type='text/css';
    styleElem.innerText=spukiStyle;
    document.getElementsByTagName('head')[0].appendChild(styleElem);

    spukiScript ='console.log(",,°.°,,");';
    scriptElem=document.createElement("script");
    scriptElem.type="text/javascript";
    scriptElem.innerText=spukiScript;
    document.getElementsByTagName('head')[0].appendChild(scriptElem);

    $(document).ready( function() {
        /*
        setTimeout(function(){
            if (!$('script[src="https://static.ncore.cc/static/js/spookyd.js"]').length) {
                $("#spuki_pixel").prepend('<span title="Nincs veszély, kikapcsolhatod a „nCore - Spooky Dayz” jelzőt!" style="position:absolute;top:3px;right:20px;white-space:nowrap;">Nincs tök</span>');
            }
        }, 2000);
        */
        var ico_jlz='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><path d="M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"/></svg>';
        var ico_hng0='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><path d="M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z"/></svg>';
        var ico_hng1='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"/></svg>';
        var ico_kld='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"/></svg>';
        var ico_tlg='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 2400 2400"><path d="M1949 2192c37,-14 64,-45 72,-84 87,-408 298,-1442 377,-1813 6,-28 -4,-57 -26,-76 -22,-19 -52,-24 -79,-14 -420,155 -1711,640 -2239,835 -33,12 -55,45 -54,80 1,35 25,66 59,76 237,71 548,170 548,170 0,0 145,438 221,661 9,28 31,50 60,58 29,7 60,-1 81,-21 122,-115 310,-292 310,-292l559 406c-8,17 85,24 111,14zm-1212 -882l1190 -759c12,-8 28,-5 37,6 9,12 8,28 -3,38 -370,333 -1018,918 -1018,918l-38 351 -168 -554z"/></svg>';
        var ico_dis='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 2400 2400"><path d="M1771 2063c0,0 -74,-88 -135,-166 269,-76 372,-245 372,-245 -85,56 -165,95 -237,121 -102,43 -201,72 -298,89 -197,37 -378,26 -532,-2 -117,-23 -218,-56 -302,-89 -47,-18 -99,-41 -150,-70 -6,-4 -12,-6 -18,-10 -5,-2 -7,-4 -9,-6 -37,-21 -57,-35 -57,-35 0,0 98,164 359,242 -61,79 -137,171 -137,171 -454,-14 -627,-312 -627,-312 0,-662 296,-1198 296,-1198 296,-222 577,-216 577,-216l21 25c-370,106 -541,269 -541,269 0,0 46,-25 122,-60 220,-96 394,-123 466,-129 12,-2 23,-4 35,-4 125,-17 267,-21 415,-4 195,22 405,80 619,197 0,0 -163,-154 -512,-261l29 -33c0,0 281,-6 577,216 0,0 296,536 296,1198 0,0 -175,298 -629,312l0 0zm-205 -960c-117,0 -210,103 -210,229 0,125 95,228 210,228 117,0 209,-103 209,-228 0,-126 -92,-229 -209,-229zm-750 0c-117,0 -210,103 -210,229 0,125 95,228 210,228 117,0 209,-103 209,-228 2,-126 -92,-229 -209,-229z"/></svg>';
        var ico_szl='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 2400 2400"><path d="M2218 940c0,-519 -421,-940 -940,-940l-166 0c-519,0 -940,421 -940,940l-23 1234c0,119 94,216 209,216 116,0 210,-97 210,-216 0,-119 93,-215 209,-215 115,0 209,96 209,215 0,119 93,216 209,216 115,0 209,-97 209,-216 0,-119 94,-215 209,-215 116,0 209,96 209,215 0,119 94,216 209,216 116,0 209,-97 209,-216l-7 -414 -526 -304c-211,240 -568,304 -854,139 -327,-189 -439,-608 -251,-935 189,-327 608,-439 935,-251 287,166 408,507 307,809l383 221 -9 -499zm-613 63c0,-227 -184,-411 -411,-411 -226,0 -410,184 -410,411 0,227 184,410 410,410 227,0 411,-183 411,-410z"/></svg>';
        var ico_tst='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 14.5v-9l6 4.5-6 4.5z"/></svg>';
        var ico_gmb='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><path d="M9 11.24V7.5C9 6.12 10.12 5 11.5 5S14 6.12 14 7.5v3.74c1.21-.81 2-2.18 2-3.74C16 5.01 13.99 3 11.5 3S7 5.01 7 7.5c0 1.56.79 2.93 2 3.74zm9.84 4.63l-4.54-2.26c-.17-.07-.35-.11-.54-.11H13v-6c0-.83-.67-1.5-1.5-1.5S10 6.67 10 7.5v10.74l-3.43-.72c-.08-.01-.15-.03-.24-.03-.31 0-.59.13-.79.33l-.79.8 4.94 4.94c.27.27.65.44 1.06.44h6.79c.75 0 1.33-.55 1.44-1.28l.75-5.27c.01-.07.02-.14.02-.2 0-.62-.38-1.16-.91-1.38z"/></svg>';
        var ico_zar='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>';
        var kep_szl='<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEsAAABLCAYAAAA4TnrqAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABplpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1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XpLRxprBWovK8FjI5XLl1Vt/MuLxeDnbWKnKg4amO3Ge/8uzQl+IhSBO8X95JCZ6w6sANieGjJPFun358bAVB3bh/fKs8KMpMZvG69ZYDq28rW03r/u85apkjCxbutokR05RJhHHLNXJBHRe/ygl7wdNkay02awmqmEu68vTWIP52VsmH95TgmB511+I3xPPgfE3fyMRBSMeQ55njPMccTYrLXUstdRQBmIfz5Gn/6uatRo2YLvkhQOthSh+v4P3F3X0ud3udqh7eO7K9sVYZNm6ltIjBl6Wear4WWEt9dQ2eeXSJln/F2AA811PuQVQS5wAAAAASUVORK5CYII=" alt="Teszt szellem" />';
        $("#infosav_extra").prepend('<div id="spuki_pixel"></div>');
        $("#spuki_pixel").append('<a href="#" id="spuki_gomb">'+ico_jlz+'</a>');
        $("#spuki_pixel").append('<div id="jlzhely"></div>');
        $("#jlzhely").append('<div id="jlzhely_zar">'+ico_zar+'</div>');
        $("#jlzhely").append('<label id="hg">'+ico_hng1+' <input type="checkbox" id="hg_inp" '+((getCookie('hg_inp')=='1') ? ('checked') : (''))+' onchange="$(\'#hghely\').css(\'display\',(this.checked) ? (\'block\') : (\'none\'));setCookie(\'hg_inp\',((this.checked) ? (\'1\') : (\'0\')),365);"></label>');
        $("#jlzhely").append('<label id="tg">'+ico_tlg+' <input type="checkbox" id="tg_inp" '+((getCookie('tg_inp')=='1') ? ('checked') : (''))+' onchange="$(\'#tghely\').css(\'display\',(this.checked) ? (\'block\') : (\'none\'));$(\'#tg_teszt\').css(\'display\',(this.checked) ? (\'inline-block\') : (\'none\'));setCookie(\'tg_inp\',((this.checked) ? (\'1\') : (\'0\')),365);"></label>');
        $("#jlzhely").append('<label id="dc">'+ico_dis+' <input type="checkbox" id="dc_inp" '+((getCookie('dc_inp')=='1') ? ('checked') : (''))+' onchange="$(\'#dchely\').css(\'display\',(this.checked) ? (\'block\') : (\'none\'));$(\'#dc_teszt\').css(\'display\',(this.checked) ? (\'inline-block\') : (\'none\'));setCookie(\'dc_inp\',((this.checked) ? (\'1\') : (\'0\')),365);"></label>');
        $("#jlzhely").append('<button id="teszter" title="Kísérleti szellem">'+ico_szl+'</button>');
        $("#hg_inp").prop("title", "Hang értesítés ki/bekapcsolása"); $("#hg").prop("title", "Böngésző hangjának használata");
        $("#tg_inp").prop("title", "Telegram értesítés ki/bekapcsolása"); $("#tg").prop("title", "1. Telegram userID > Telegram keresés > userinfobot > /start > [userID]\n2. Telegram bot > Telegram keresés > BotFather > /newbot > [botnév] > [botnév] > t.me/[botnév] + [bot API kód]\n3. Kapcsolat nyitása a bottal > t.me/[botnév]\n4. https://api.telegram.org/bot[bot API kód]/getupdates > [userID]");
        $("#dc_inp").prop("title", "Discord értesítés ki/bekapcsolása"); $("#dc").prop("title", "1. Szerver > Szerverbeállítások / Webhookok > Webhook létrehozása\n2. [botnév] + Webhook URL címe > [discord kód]\n3. Mentés");

        $("#jlzhely").append('<div id="tghely" style="display:'+((getCookie('tg_inp')=='1') ? ('block') : ('none'))+';"></div>');
        $("#jlzhely").append('<div id="dchely" style="display:'+((getCookie('dc_inp')=='1') ? ('block') : ('none'))+';"></div>');
        $("#jlzhely").append('<div id="hghely" style="display:'+((getCookie('hg_inp')=='1') ? ('block') : ('none'))+';"></div>');

        $("#tghely").append('<button id="tg_teszt" title="Beállítások kipróbálása">'+ico_tst+'</button>');
        $("#tghely").append('<input type="text" id="tg_id" onkeyup="setCookie(\'tg_id\',this.value,365);" value="'+getCookie('tg_id')+'" placeholder="Telegram ID" title="Telegram ID">');
        $("#tghely").append('<input type="text" id="tg_bot" onkeyup="setCookie(\'tg_bot\',this.value,365);" value="'+getCookie('tg_bot')+'" placeholder="Telegram BOT" title="Telegram BOT">');

        $("#dchely").append('<button id="dc_teszt" title="Beállítások kipróbálása">'+ico_tst+'</button>');
        $("#dchely").append('<input type="text" id="dc_wh" onkeyup="setCookie(\'dc_wh\',this.value,365);" value="'+getCookie('dc_wh')+'" placeholder="Discord webhook" title="Discord webhook">');

        $("#hghely").append('<button id="hg_teszt" title="Beállítások kipróbálása">'+ico_tst+'</button>');
        var hng_kiv=getCookie('hng'); if(hng_kiv=="")hng_kiv=0;
        for (var i=0;i<hng.length;i++){$("#hghely").append('<input type="radio" name="hng" '+((hng_kiv==i) ? ('checked') : (''))+' value="hng_'+i+'" title="'+hgn[i]+'"  onclick="$(\'#vuhuhu\').attr(\'src\', \'data:audio/ogg;base64,\'+hng['+i+']);setCookie(\'hng\','+i+',365)">');}
        $("#hghely").append('<div id="plyhely"><div><audio controls="" id="vuhuhu" src="data:audio/ogg;base64,'+hng[hng_kiv]+'"></audio></div></div>');

        $("#spuki_gomb, #jlzhely_zar").bind("click", function(){var da=$('#jlzhely').css('display'),dc=(da=='none') ? ('block') : ('none'); $('#jlzhely').css('display',dc);});
        $("#teszter").bind("click", function() {$('body').append('<div id="spo0kyD" style="position:absolute;top:10px;right:10px;cursor:pointer;" onclick="this.remove()">'+kep_szl+'</div>');$('script').first().append(setTimeout(function(){ $('#spo0kyD').remove();},5000));});
        $("#tg_teszt").bind("click", function() {if($('#tg_inp').prop('checked')&&$('#tg_id').val()!=''&&$('#tg_bot').val()!='')telegram($('#tg_id').val(),$('#tg_bot').val(),'teszt');else alert('Telegram nincs beállítva');});
        $("#dc_teszt").bind("click", function() {if($('#dc_inp').prop('checked')&&$('#dc_wh').val()!=''){discord_wm($('#dc_wh').val(),{content:'teszt',tts:false});}else alert('Discord nincs beállítva');});
        $("#hg_teszt").bind("click", function(){if($('#hg_inp').prop('checked')){var vuh_hng=document.getElementById('vuhuhu').play();if (vuh_hng !== undefined){vuh_hng.then(_ => {console.log('vuhuhu');}).catch(error => {console.log('beragadt');$('#jlzhely').css('display','block');alert('Nem tudom elindítani a hangot, egyszer indítsd el kézzel! Nyitom a panelt.');});}} else alert('Hang nincs beállítva');});
        $('body').bind("DOMSubtreeModified",function(e){
            setTimeout(function(){
                if ($('#spo0kyD img').length && $("#spo0kyD").data('votma')===undefined){
                    db++;var id="toktar"+db, src=$('#spo0kyD img').attr('src'), vuh_hng, dc_data={username:'Tökveszély',content:'Kapd el!',tts:false};if(src.includes("https"))dc_data.avatar_url=src;
                    if($('#tg_inp').prop('checked')&&$('#tg_id').val()!=''&&$('#tg_bot').val()!='')telegram($('#tg_id').val(),$('#tg_bot').val(),'t%C3%B6k');
                    if($('#dc_inp').prop('checked')&&$('#dc_wh').val()!='')discord_wm($('#dc_wh').val(),dc_data);
                    if($('#hg_inp').prop('checked')){vuh_hng=document.getElementById('vuhuhu').play();
                      if (vuh_hng !== undefined){vuh_hng.then(_ => {/*console.log('vuhuhu');*/}).catch(error => {/*console.log('beragadt');*/$('#jlzhely').css('display','block');alert('Nem tudom elindítani a hangot, egyszer indítsd el kézzel! Nyitom a panelt.');});
                    }}
                    if (!$('#main_all #'+id).length){$("#main_all").prepend('<img id="'+id+'" title="'+db+'. rém" src="'+src+'" style="height:32px;opacity:0.5">');}
                    $("#spo0kyD").click(function(){var tokjel=$(this).data('votma'); $('#'+tokjel).css('opacity',1); setTimeout(function(){var tortenet=$("#spo0kyD").text(), id='#'+$("#spo0kyD").data('votma');tortenet=tortenet.replace("bezár", "");$(id).prop('title', tortenet);if($('#dc_inp').prop('checked')&&$('#dc_wh').val()!='')discord_wm($('#dc_wh').val(),{username:'Megvan',content:tortenet,avatar_url:$(id).attr('src'),tts:false});},1000);}).data('votma',id);
                    setTimeout(function(){console.log('Kapd már el!!!');}, Math.floor(Math.random() * (2000 - 1500) + 1500));
                }else{console.log('csak árnyék');}
            }, 1000);
        });
    });
})();