Created
April 1, 2025 17:52
-
-
Save albert-tomanek/d966b6bca618353827bb94789cafcf52 to your computer and use it in GitHub Desktop.
google calendar compact view
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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