// ==UserScript==
// @name Popmundo Better Repertoire UI
// @namespace Violentmonkey Scripts
// @match https://*.popmundo.com/World/Popmundo.aspx/Artist/Repertoire/*
// @grant GM_setValue
// @grant GM_getValue
// @license M.I.T
// @version 1.5
// @description 28/09/2024, 00:38:02
// @downloadURL none
// ==/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 {
padding: 10px;
border: 1px solid #ccc;
border-top: none;
display: none;
background-color:white;
}
.accordion-row {
/* Define qualquer estilo adicional para as linhas accordion, se necessário */
}
.modal-dialog {
width: 300px;
height: auto;
}
`;
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('