NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name Lista compacta
// @namespace ListaCompacta
// @version 0.2
// @description FCT rules
// @license GPL-3.0-or-later
// @license MIT
// @author Docent
// @match https://docent.edu.gva.es/*
// @grant none
// ==/UserScript==
// ==OpenUserJS==
// @author alextzval
// ==/OpenUserJS==
$(function() {
$(document).on('mousemove', function() {
if ($('.imc-grupo').length>0) {
$('#imc-seccio-tasques-sessio').css('font-size', '.9em');
$('.imc-contingut-carregat').css('width', '60%');
$('.imc-cap').css('margin', '.5em').css('padding', '0');
if ($('#nombre-grupo').length==0) {
var grupo = $('<li id="nombre-grupo">');
grupo.html($('.imc-grupo').first().html());
grupo.css('background-color', 'black').css('font-weight', 'bolder').css('padding', '.2em 9em .2em 1em');
console.log('crear');
} else {
$('#nombre-grupo').html($('.imc-grupo').first().html());
console.log('cambiar');
}
$('.imc-cap').prepend(grupo);
$('.imc-grupo').remove();
$('.imc-alumnes > li').css('margin-bottom', '0px !important').css('margin', '0px');
$('li').css('margin-bottom', '0px !important').css('margin', '0px');
}
});
});