@JaviertINC AFYRUS Yesly Devs Captys Teextus Nuxum Music @Mencantas_cl Userscripts JTCraft Hytale
Ver todos los Proyectos

Index Of
DarkGreen

Una versión oscura, ayuda a cuidar tus ojos, cuando visitas páginas web que no tienen un archivo index, se muestra la carpeta y todo su conenido, pero ahora podrás verla con el fantástico estilo DarkGreen

Index Of | DarkGreen

Una versión oscura, ayuda a cuidar tus ojos :D

Este script modifica el estilo de las páginas sin un index con un estilo DarkGreen basado en los estilos de la página oficial de @JaviertINC.

Ínidce
Descripción Breve
Funciones
Screenshots
Videos

Funciones

  • Modifica el estilo de las páginas web sin un archivo index con el estilo DarkGreen, mira las Screenshots

Screenshots

Pronto

Videos

¿Cómo instalar?

Pronto

> Ver documento original en Github

// ==UserScript==
// @name            Index Of
// @description     Index Of Modificado
// @version         0.9
// @author          @JaviertINC
// @match           *://*/*
// @exclude         *://github.com/*
// @exclude         *://*.github.com/*
// @run-at          document-start
// @noframes
// ==/UserScript==

(function() {
    'use strict';

    var titlea = document.title;
    var titleb = titlea.substr(0,10);
    var titlec = window.location.href;
    var titled = titlec.length - 3;
    var titlee = titlec.length;
    var titlef = titlec.substr(titled,titlee);
    var titleg = location.href.lastIndexOf('/') +1;
    var titleh = location.href.substring(titleg,99);
    var titlei = titlec.length - 4;
    var titlej = titlec.substr(titlei,titlee);
    var titlew = ".css";
    var titlex = Jmay(titleh);
    var titley = "Index of /";
    var titlez = ".js";
    function addGlobalStyle(css) {
        var head, style;
        head = document.getElementsByTagName('head')[0];
        if (!head) { return; }
        style = document.createElement('style');
        style.type = 'text/css';
        style.innerHTML = css;
        head.appendChild(style);
    }
    function Jmay(string){
        return string.charAt(0).toUpperCase() + string.slice(1);
    }
    function Jico(){
        var link = document.querySelector("link[rel*='icon']") || document.createElement('link');
        link.type = 'image/x-icon';
        link.rel = 'shortcut icon';
        link.href = '/favicon.ico';
        document.getElementsByTagName('head')[0].appendChild(link);
    }
    if(titleb == titley) {
        document.title += " | IndexOf";
        addGlobalStyle('body { color: white; background-color: black; padding: 15px 30px 0 30px;} a{color: #46d11f;} a:hover{color: #4caf30;} a:visited{color: #4caf30;} li:before{content: "⇝";} li:last-child {border: none;} ul{list-style-type: none;}');
        Jico();
    }
    if(titlef == titlez || titlej == titlew){
        document.title = titlex + " | IndexOf";
        addGlobalStyle('body { color: white; background-color: black; padding: 15px 30px 0 30px;} pre{color: #46d11f;}');
        Jico();
    }
})();
        
// Aún no se han registrado cambios en este script
Publicidad