Remove all stuff from Google+ except Hangouts

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

  1. // ==UserScript==
  2. // @name Remove all stuff from Google+ except Hangouts
  3. // @namespace http://userscripts.org/users/gentakojima
  4. // @description Remove all stuff from Google+ except Hangouts. Also hides contact list hover divs.
  5. // @include https://plus.google.com/
  6. // @version 0.2
  7. // @grant none
  8. // ==/UserScript==
  9.  
  10. function addNewStyle(newStyle) {
  11. var styleElement = document.getElementById('styles_js');
  12. if (!styleElement) {
  13. styleElement = document.createElement('style');
  14. styleElement.type = 'text/css';
  15. styleElement.id = 'styles_js';
  16. document.getElementsByTagName('head')[0].appendChild(styleElement);
  17. }
  18. styleElement.appendChild(document.createTextNode(newStyle));
  19. }
  20.  
  21. var hide_everything = function(){
  22. addNewStyle(".VW,.SOb,.Zi,.K8tFub{display:none !important;}");
  23. };
  24. hide_everything();
  25.  
  26. var hide_hovers = function(){
  27. addNewStyle(".o-ms-fk{display:none !important;}")
  28. }
  29. hide_hovers();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址