Fix Twitter Layout

fix twitter layout. Move the post box back to left side. Put titlebar inside timeline.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name        Fix Twitter Layout
// @namespace   halcyon1234
// @description fix twitter layout. Move the post box back to left side. Put titlebar inside timeline.
// @include     https://twitter.com/
// @include     https://twitter.com/search
// @version     1
// @grant       none
// ==/UserScript==

function embed()
{
    if (typeof($) == "function")
    {
        $(document).ready(function()
        {
            $(".topbar.js-topbar").prependTo(".content-header");
            $(".content-header").removeClass("visuallyhidden");
            $(".timeline-tweet-box").appendTo(".DashboardProfileCard-content");
            $(".top-timeline-tweet-box-user-image").hide();
        });
    }
    else
    {
        setTimeout(embed, 400);
    }

}

var inject = document.createElement("script");

inject.setAttribute("type", "text/javascript");
inject.appendChild(document.createTextNode("(" + embed + ")()"));

document.body.appendChild(inject);