Skip to content

Instantly share code, notes, and snippets.

@jamezrin jamezrin/script.js
Created Mar 15, 2019

Embed
What would you like to do?
Posicionamiento alternativo de la imagen de la autoescuela
// ==UserScript==
// @name eTestWeb / Estilo mejorado
// @namespace https://jamezrin.name
// @version 0.1
// @description Posicionamiento alternativo de la imagen de la autoescuela
// @author jaime@jamezrin.name
// @match *://www.carnetcnae.com/*
// @grant all
// ==/UserScript==
(function() {
'use strict';
var image = document.getElementById('ctl00_imgLogoSuperior'),
sideMenu = document.getElementsByClassName("left side-menu")[0];
sideMenu.insertBefore(image, sideMenu.firstChild);
var customCss = document.createElement('style');
customCss.innerHTML = `
#wrapper.enlarged .topbar .topbar-left {
width: 65px !important;
}
.left.side-menu {
top: unset !important;
z-index: 20 !important;
}
.topbar {
z-index: 10 !important;
}
#ctl00_imgLogoSuperior {
margin: 0 auto !important;
}
.user-box .row div[class^="col"] {
padding: unset !important;
position: unset !important;
min-height: unset !important;
width: unset !important;
float: unset !important;
}
`;
document.head.appendChild(customCss);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.