Skip to content

Instantly share code, notes, and snippets.

@jamezrin
Created March 15, 2019 23:20
Show Gist options
  • Select an option

  • Save jamezrin/fcdb478baf575b419502d6475dc4a01c to your computer and use it in GitHub Desktop.

Select an option

Save jamezrin/fcdb478baf575b419502d6475dc4a01c to your computer and use it in GitHub Desktop.

Revisions

  1. jamezrin created this gist Mar 15, 2019.
    46 changes: 46 additions & 0 deletions script.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,46 @@
    // ==UserScript==
    // @name eTestWeb / Estilo mejorado
    // @namespace https://jamezrin.name
    // @version 0.1
    // @description Posicionamiento alternativo de la imagen de la autoescuela
    // @author [email protected]
    // @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);
    })();