Skip to content

Instantly share code, notes, and snippets.

@abnersajr
Created December 18, 2022 23:55
Show Gist options
  • Save abnersajr/c82316836cf8c612966582bce0bee65e to your computer and use it in GitHub Desktop.
Save abnersajr/c82316836cf8c612966582bce0bee65e to your computer and use it in GitHub Desktop.
better-ui-ahmadawais-course
const wrap = document.querySelector("body > div.aa_toc_wrap > div.aa_toc");
const HEIGHT = 560;
Object.assign(wrap.style, {
height: `${HEIGHT}px`,
maxHeight: `${HEIGHT}px`,
display: "block",
overflowY: "scroll",
padding: "0 20px",
});
Object.assign(document.querySelector("#theVideo").style, {
height: "auto",
maxWidth: "100%",
width: "100%",
margin: "0",
border: "0",
padding: "0",
});
Object.assign(document.querySelector(".aa_vid_wrap").style, { padding: 0 });
Object.assign(document.querySelector(".aa_header_wrap").style, {
display: "none",
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment