// ==UserScript== // @name Multitool Gatinho // @namespace Multitool Gatinho // @version 0.0.4 // @author JoeMan // @description Multitool for the game Grepolis // @match http://*.grepolis.com/* // @match https://*.grepolis.com/* // @match https://code.jquery.com/jquery-3.6.4.min.js // @match https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js // @match https://cdnjs.cloudflare.com/ajax/libs/FileSaver.js/2.0.5/FileSaver.min.js // @exclude https://*.forum.grepolis.com/* // @exclude https://wiki.*.grepolis.com/* // @icon https://i.imgur.com/qYhrH44.gif // @license GPL-3.0 // @grant GM_addStyle // @grant GM_download // @downloadURL https://update.greasyfork.icu/scripts/494070/Multitool%20Gatinho.user.js // @updateURL https://update.greasyfork.icu/scripts/494070/Multitool%20Gatinho.meta.js // ==/UserScript== var version = '0.0.4'; GM_addStyle ( ` #btnRefresh { background-color: #2c3684; cursor: pointer; border: none; border-radius: 3px; width: auto; position: relative; margin: 0 1px; line-height: 20px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #fc6; text-align: center; font-weight: 700; padding: 0 10px; font-size: 10px; } #diciplinas { margin-bottom: 3px; } #inputfile { background-color: #141338; cursor: pointer; border: none; border-radius: 3px; width: auto; position: relative; margin: 0 1px; margin-top: 0px; line-height: 20px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #fc6; text-align: center; font-weight: 700; padding: 0 10px; font-size: 10px; } #adicionar-btn, #show-btn, #hide-btn { background-color: #132338; cursor: pointer; border: none; border-radius: 3px; width: auto; position: relative; margin: 0 1px; line-height: 20px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #fc6; text-align: center; font-weight: 700; padding: 0 10px; font-size: 12px; } .bloco-de-nota { margin-bottom: 20px; padding: 10px; border: 1px solid #ccc; border-radius: 5px; } .titulo-input { margin-bottom: 1px; width: 20%; display: block !important;; } .format-btn { border: none; border-radius: 3px; width: auto; position: relative; margin: 0 1px; line-height: 18px; color: #fc6; text-align: center; font-weight: 700; padding: 0 5px; font-size: 10px; background-color: #132338; } .format-btn:hover { background-image: linear-gradient( 0deg, hsl(220, 1.6%, 63.7%) 0%, hsl(214deg 15% 25%) 20%, hsl(214deg 28% 13%) 40%, hsl(214deg 28% 13%) 60%, hsl(214deg 15% 25%) 80%, hsl(240, 0.7%, 70%) 100% ); } #adicionar-btn:hover { background-image: linear-gradient( 0deg, hsl(220, 1.6%, 63.7%) 0%, hsl(214deg 15% 25%) 20%, hsl(214deg 28% 13%) 40%, hsl(214deg 28% 13%) 60%, hsl(214deg 15% 25%) 80%, hsl(240, 0.7%, 70%) 100% ); } #show-btn:hover { background-image: linear-gradient( 0deg, hsl(220, 1.6%, 63.7%) 0%, hsl(214deg 15% 25%) 20%, hsl(214deg 28% 13%) 40%, hsl(214deg 28% 13%) 60%, hsl(214deg 15% 25%) 80%, hsl(240, 0.7%, 70%) 100% ); } #hide-btn:hover, #inputfile:hover { background-image: linear-gradient( 0deg, hsl(220, 1.6%, 63.7%) 0%, hsl(214deg 15% 25%) 20%, hsl(214deg 28% 13%) 40%, hsl(214deg 28% 13%) 60%, hsl(214deg 15% 25%) 80%, hsl(240, 0.7%, 70%) 100% ); } .deletar-btn, #clear, .reset-btn, #resetBtgi { background-color: #842c2c; cursor: pointer; border: none; border-radius: 3px; width: auto; position: relative; margin: 0 1px; line-height: 20px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #fc6; text-align: center; font-weight: 700; padding: 0 10px; font-size: 10px; } .salvar-btn, .save-file, #activerbouton { background-color: #0e6f24; cursor: pointer; border: none; border-radius: 3px; width: auto; position: relative; margin: 0 1px; line-height: 20px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #fc6; text-align: center; font-weight: 700; padding: 0 10px; font-size: 10px; margin-top: 2px; } #btnRefresh:hover { background-image: linear-gradient(0deg,hsl(0deg 0% 80%) 0%,hsl(245deg 20% 69%) 8%,hsl(241deg 28% 58%) 17%,hsl(233deg 42% 45%) 25%,hsl(233deg 44% 41%) 33%,hsl(233deg 47% 38%) 42%,hsl(233deg 50% 35%) 50%,hsl(233deg 47% 38%) 58%,hsl(233deg 44% 41%) 67%,hsl(233deg 42% 45%) 75%,hsl(241deg 28% 58%) 83%,hsl(245deg 20% 69%) 92%,hsl(0deg 0% 80%) 100%); } .salvar-btn:hover, .save-file:hover { background-image: linear-gradient(0deg,hsl(120deg 2% 80%) 0%,hsl(131deg 14% 49%) 20%,hsl(131deg 42% 32%) 40%,hsl(131deg 42% 32%) 60%,hsl(131deg 14% 49%) 80%,hsl(120deg 2% 80%) 100%); } .deletar-btn:hover, #clear:hover, #resetBtgi:hover { background-image: linear-gradient(0deg,hsl(0deg 0% 81%) 0%,hsl(1deg 15% 50%) 20%,hsl(1deg 37% 38%) 40%,hsl(1deg 37% 38%) 60%,hsl(1deg 15% 50%) 80%,hsl(0deg 0% 81%) 100%); } #AC1, #AC2, #AC3, #AC4, #AC5, #AC6, #AC7 { box-sizing: border-box; -webkit-box-sizing: border-box; background: transparent url(https://gppt.innogamescdn.com/images/game/border/even.png) repeat scroll 0 0; } body { background: #eee; font-family: Arial; } #AB { margin: 20px auto; overflow-y: scroll; scrollbar-color: #2c5284 #2c528478; scrollbar-width: thin; background-image: url(https://gppt.innogamescdn.com/images/game/border/odd.png); } .tab { width: auto; height: 450px; } .tab input[type] { display: none; } .tab label { display: block; float: left; padding: 12px 20px; margin-right: 5px; cursor: pointer; transition: background-color .3s; } .tab label:hover, .tab input:checked + label { background: #2c5284; color: #fff; } #tib1, #tib2, #tib3, #tib4 { background: #0000000d; } .tabs { clear: both; perspective: 400px; -webkit-perspective: 400px; } .tabs .content { background: #fff; width: 100%; position: absolute; border: 2px solid #2c5284; padding: 10px 30px 40px; line-height: 1.4em; opacity: 0; transform: rotateX(-20deg); transform-origin: top center; transition: opacity .3s, transform 1s; z-index: 0; } #tab1:checked ~ .tabs .content:nth-of-type(1), #tab2:checked ~ .tabs .content:nth-of-type(2), #tab3:checked ~ .tabs .content:nth-of-type(3), #tab4:checked ~ .tabs .content:nth-of-type(4), #tab5:checked ~ .tabs .content:nth-of-type(5), #tab6:checked ~ .tabs .content:nth-of-type(6), #tab7:checked ~ .tabs .content:nth-of-type(7) { transform: rotateX(0); opacity: 1; z-index: 1; } #AA1, #AA1, #AA2, #AA3, #AA4, #AA5, #AA6, #AA7, #AA8, #AA9, #AA10, #AA11, #AA12, #BA1, #BA2, #BA3, #BA4, #BA5, #BA6, #BA7, #BA8, #BA9, #BA10, #BA11, #BA12 { color: #e41528; text-align: center; } #pointsperc, #pointsperc1, #pointsperc2, #pointsperc3, #pointsperc4, #pointCavaleiros2, #pointHop, #pointBigas, #pointArq, #pointCavaleiros, #pointHop2, #pointBigas2 { color: #e41528; text-align: center; } #nbr1, #nbr2, #nbr3, #nbr4 { color: #e41528; } .hour, .minute, .second, #totalTimeHHMMSS { color: #2f578c; } #calc-output { color: #5fae5f; } #totalTimeHHMMSS, .hour, .minute, .second { background: url(https://gppt.innogamescdn.com/images/game/barracks/input.png) no-repeat; border: 0; height: 17px; padding: 3px; } .titre{ font-size: 25px; font-style: italic; font-family: sans-serif; color: #0C620C; } #case{ height: 37px; width: 200px; border: 2px solid #2D882D; border-radius: 10px; background: #ffebbf; } .numbir{ height: 50px; width: 50px; font-size: 25px; color: white; border: 2px solid #2D882D; border-radius: 10px; background-color: #5FAE5F; } .numbir:hover { background-color: #0C620C; } .operator{ height: 50px; width: 50px; font-size: 25px; color: white; border: 2px solid #5FAE5F; border-radius: 10px; background-color: #9FD29F; } .operator:hover{ background-color: #0C620C; } #pointsgiven, #pointsBigas, #pointsArqueiros, #pointsCavaleiros, #pointsHoplitas { color: #fff6e3; } ` ); var uw = unsafeWindow || window, $ = uw.jQuery || jQuery, DATA, GM; GM = (typeof GM_info === 'object'); console.log('%c-Grepotemas-Grepolympia- Ready', 'color: green; font-size: 1em; font-weight: bolder; '); var dbf_tooltip = "GrepotemasGrepolympia"; $('.gods_area').append('
'); $('.dbf_btn').tooltip(dbf_tooltip); $('.dbf_btn').on('mousedown', function () { $('.dbf_icon').addClass('click'); }); $('.dbf_btn').on('mouseup', function () { $('.dbf_icon').removeClass('click'); }); $('.dbf_btn').click(editDBF); $('body').append('