Skip to content

Instantly share code, notes, and snippets.

@malys
Created October 11, 2023 08:15
Show Gist options
  • Save malys/257024683b0b3f251a51c62f3940ff81 to your computer and use it in GitHub Desktop.
Save malys/257024683b0b3f251a51c62f3940ff81 to your computer and use it in GitHub Desktop.
[UserScript] Compact view for cloudskillsboost.google #UserScript #cloudskillsboost
// ==UserScript==
// @name qwiklabs.com - Compact view
// @namespace malys
// @match https://*.cloudskillsboost.google/course_sessions/*
// @grant none
// @version 1.0
// @author malys
// @description Compact view
// ==/UserScript==
document.querySelector("#jump-content > ql-drawer-container > ql-drawer-content > div.course-activity-content > div > ql-youtube-video")
.shadowRoot.querySelector("div > div.transcript")
.remove()
document.querySelector("#discussion-drawer").remove()
//document.querySelector("#jump-content > ql-drawer-container > ql-drawer.course-drawer.course-drawer-left")
// .remove()
document.querySelector("#jump-content > ql-drawer-container > ql-drawer-content > div.course-activity-content > div > ql-youtube-video")
.shadowRoot.querySelector("div")
.style.maxWidth = 'none';
document.querySelector("#jump-content > ql-drawer-container > ql-drawer-content > div.course-activity-content > div > ql-youtube-video")
.shadowRoot.querySelector("div > div")
.style.maxWidth = 'none';
document.querySelector("#jump-content > ql-drawer-container > ql-drawer-content > div.course-activity-content")
.style.padding = 'none';
// Make the setup section selectable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment