Skip to content

Instantly share code, notes, and snippets.

@albert-tomanek
Created April 1, 2025 17:52
Show Gist options
  • Save albert-tomanek/d966b6bca618353827bb94789cafcf52 to your computer and use it in GitHub Desktop.
Save albert-tomanek/d966b6bca618353827bb94789cafcf52 to your computer and use it in GitHub Desktop.
google calendar compact view
// ==UserScript==
// @name Google Calendar Compact View
// @namespace http://tampermonkey.net/
// @version 2025-04-01
// @description Remove sidebar so that calendar fits into desktop widgets etc.
// @author You
// @match https://calendar.google.com/calendar/u/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
var classNames = [/* sidebar: */ 'QQYuzf', /* Create button: */ 'dwlvNd', 'dwlvNd', /* day numbers */ 'fhpo2c', /*top bar elts*/ 'gb_Kc','gb_Cc','BXgjid','gb_Cd', 'd6McF', 'h8Aqhb', 'pw6cBb', 'V4oB2d'];
var style = document.createElement('style');
style.textContent = classNames.map(name => `.${name} { display: none !important; }`).join(' ');
document.head.appendChild(style);
/* day name bar: */ /*document.getElementById('gb').style.display = 'none';*/
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment