Google Calendar - Hide Header

Hide the header of Google Calendar. Show it when you click on the "Calendar" logo in the top left.

目前為 2016-06-09 提交的版本,檢視 最新版本

// ==UserScript==
// @name         Google Calendar - Hide Header
// @namespace    http://seanbannister.com/
// @version      0.1
// @description  Hide the header of Google Calendar. Show it when you click on the "Calendar" logo in the top left.
// @author       Sean Bannister
// @match        *://calendar.google.com/*
// ==/UserScript==

(function() {
  'use strict';

  var header = document.getElementById('onegoogbar').style;

  // Hide the header
  header.display = 'none';

  // When you click on the word "Calednar" (The logo in the top left)
  document.getElementById('mainlogo').addEventListener('click', function() {
    // If header is hidden show it
    if (header.display == 'none') {
      header.display = 'block';
    }
    // If header is showing hide it
    else if (header.display == 'block') {
      header.display = 'none';
    }
  });
})();

QingJ © 2025

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