// ==UserScript== // @name Popmundo Better Repertoire UI // @namespace Violentmonkey Scripts // @match https://*.popmundo.com/World/Popmundo.aspx/Artist/Repertoire/* // @exclude /^https:\/\/.*\.popmundo\.com\/World\/Popmundo\.aspx\/Artist\/Repertoire\/[^/]+\/.+$/ // @author Drinkwater // @grant GM_setValue // @grant GM_getValue // @grant GM_deleteValue // @license M.I.T // @version 2.1 // @description Permite organizar o repertorio por grupos nomeados. Com funcionalidad de backup daquela banda e restauração de backup. // @downloadURL https://update.greasyfork.icu/scripts/510533/Popmundo%20Better%20Repertoire%20UI.user.js // @updateURL https://update.greasyfork.icu/scripts/510533/Popmundo%20Better%20Repertoire%20UI.meta.js // ==/UserScript== const currentUrl = window.location.href; const bandId = currentUrl.split('/').pop(); const urlDomain = window.location.hostname; let grupos = GM_getValue('grupos', []); const style = document.createElement('style'); style.innerHTML = ` .accordion-header { background-image: url(Images/bgr-item-header.png); background-color: #56686f; background-repeat: repeat-x; color: #fff; font-weight: 500; padding: 16px; cursor: pointer; border-radius: 8px; font-size: 12px; transition: background-color 0.3s ease, transform 0.2s ease; } /* Efeito hover */ .accordion-header:hover { background-color: #3c4b51; transform: translateY(-2px); box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); } .accordion-content { max-height: 0; opacity: 0; overflow: hidden; padding: 0 10px; border: 1px solid #ccc; border-top: none; background-color: white; transition: max-height 0.4s ease, opacity 0.4s ease; } .accordion-content.open { max-height: 1000px; /* Defina uma altura máxima grande o suficiente */ opacity: 1; } .accordion-row { /* Define qualquer estilo adicional para as linhas accordion, se necessário */ } .modal-dialog { width: 300px; height: auto; } .accordion-row td{ padding: 5px 0px !important ; } .accordion-content tr{ display: flex; justify-content: space-between; } .accordion-content tr td{ max-width:90px; } `; document.head.appendChild(style); function createDeleteGroupModal() { const overlay = jQuery('
', { class: 'modal-overlay' }).css({ position: 'fixed', top: 0, left: 0, width: '100%', height: '100%', backgroundColor: 'rgba(0, 0, 0, 0.5)', zIndex: 999 }).appendTo('body'); const modal = jQuery('
', { class: 'modal-dialog' }).css({ position: 'fixed', top: '50%', left: '50%', transform: 'translate(-50%, -50%)', backgroundColor: '#fff', padding: '20px', borderRadius: '12px', boxShadow: '0 6px 16px rgba(0, 0, 0, 0.15)', zIndex: 1000, width: '320px', textAlign: 'center', fontFamily: 'Arial, sans-serif' }).appendTo('body'); // Título do modal const modalTitle = jQuery('

').text('Deletar Grupo').css({ marginBottom: '15px', fontSize: '18px', color: '#333', fontWeight: 'bold' }).appendTo(modal); // Select para escolher o grupo const selectGroup = jQuery('', { type: 'color', value: GM_getValue('propriaColor', '#000000') }).appendTo(propriaColorPickerLabel); const naoPropriaColorPickerLabel = jQuery('