VisualCrumbs (Stack Visuals)

Visual Changes (POST Sidebar)

Від 13.06.2018. Дивіться остання версія.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(У мене вже є менеджер скриптів, дайте мені встановити його!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         VisualCrumbs (Stack Visuals)
// @namespace    https://github.com/GrumpyCrouton/Userscripts/blob/master/VisualCrumbs%20(Stack%20Visuals)
// @version      1.6
// @description  Visual Changes (POST Sidebar)
// @author       GrumpyCrouton
// @match        *://*.stackoverflow.com/*
// @match        *://*.stackexchange.com/*
// @match        *://*.superuser.com/*
// @run-at        document-start
// ==/UserScript==

document.onreadystatechange = function () {
    if (document.readyState === "interactive") {

        //body changes
        $("body").css("background-color","#f4fff3");
        $(".container").css({"max-width":"none","border-right":"1px solid #d6d9dc"});
        $("#questions, #qlist-wrapper, #content").css({"max-width":"none","border-right":"1px solid #d6d9dc"});

        controlRightPadding();
        $( window ).resize(function() {
           controlRightPadding();
        });

        //question stats
        $(".question-stats").addClass("community-bulletin");
        $("<div class='bulletin-title'>Question Stats</div><hr>").prependTo(".question-stats");

        $("#questions .cbt").remove();

        //nav bar
        $("#search").css("max-width","none");
        $(".js-secondary-topbar-links").css("padding-left","0px","important");

    }
}

function controlRightPadding() {
    if($('header').width() > 640) {
        $(".container").css("padding-right", "8.5%");
    } else {
        $(".container").css("padding-right", "none");
    }
}