Commits

Sergey Astanin committed b70bb8c

simply hide google bars

Comments (0)

Files changed (2)

Hide_Search_Bar_in_Google_Reader.user.js

-// ==UserScript==
-// @name        Hide Search Bar in Google Reader
-// @namespace   https://github.com/astanin
-// @include     http://www.google.com/reader/view/*
-// @include     https://www.google.com/reader/view/*
-// @version     1.0
-// @grant       none
-// ==/UserScript==
-function hideById(barid) {
-   document.getElementById(barid).style.display = "none";
-}
-hideById("gb");

Minimize_Navigation_Bars_in_Gmail.user.js

+// ==UserScript==
+// @name        Minimize Navigation Bars in Gmail
+// @namespace   https://github.com/astanin
+// @include     https://mail.google.com/*
+// @version     1.0
+// @grant       none
+// ==/UserScript==
+
+// TODO: make it expandable
+function hideBars() {
+   document.getElementById("gb").style.display = "none";
+}
+
+document.addEventListener('DOMNodeInserted',hideBars,false);