Remove all stuff from Google+ except Hangouts

Remove all stuff from Google+ except Hangouts. Also hides contact list hover divs.

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

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 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        Remove all stuff from Google+ except Hangouts
// @namespace   http://userscripts.org/users/gentakojima
// @description Remove all stuff from Google+ except Hangouts. Also hides contact list hover divs.
// @include     https://plus.google.com/
// @version     0.2
// @grant       none
// ==/UserScript==

function addNewStyle(newStyle) {
   var styleElement = document.getElementById('styles_js');
   if (!styleElement) {
       styleElement = document.createElement('style');
       styleElement.type = 'text/css';
       styleElement.id = 'styles_js';
       document.getElementsByTagName('head')[0].appendChild(styleElement);
   }
   styleElement.appendChild(document.createTextNode(newStyle));
}

var hide_everything = function(){
    addNewStyle(".VW,.SOb,.Zi,.K8tFub{display:none !important;}");
};
hide_everything();

var hide_hovers = function(){
    addNewStyle(".o-ms-fk{display:none !important;}")
}
hide_hovers();