I hereby claim:
- I am edjw on github.
- I am edjw (https://keybase.io/edjw) on keybase.
- I have a public key ASCEcDSvNHBwGCBBKerMcCFIhfVB60p0kNW4BGARDLA3EQo
To claim this, I am signing this object:
| console.log("hello from a github gist"); | |
| const title = document.querySelector(`h1#page-title`); | |
| // Function to get the current time in HH:MM:SS format | |
| function getCurrentTime() { | |
| const now = new Date(); | |
| const hours = String(now.getHours()).padStart(2, '0'); | |
| const minutes = String(now.getMinutes()).padStart(2, '0'); | |
| const seconds = String(now.getSeconds()).padStart(2, '0'); | |
| return `${hours}:${minutes}:${seconds}`; |
| body { | |
| background-color: salmon; | |
| } |
| <script> | |
| /** | |
| * A script to fetch and apply JS and CSS from GitHub gists and GitLab snippets. | |
| * Use with the Gistpad extension in VS Code for easy updating: | |
| * https://marketplace.visualstudio.com/items?itemName=vsls-contrib.gistfs | |
| * | |
| * Note: For GitLab, it's likely the content fetch will fail due to CORS restrictions. | |
| * With GitHub, rate limiting can be strict unless the gist is public. | |
| * | |
| * For html gists, specify the target using the html selector of an element on your page. |
| /* Layout */ | |
| #type-b.arya.loaded #container { | |
| display: flex !important; | |
| flex-direction: column !important; | |
| flex-wrap: wrap !important; | |
| align-content: center !important; | |
| } | |
| #type-b.arya #container #main { |
| $(document).ready(function () { | |
| function getQueryParams() { | |
| const params = new URLSearchParams(window.location.search); | |
| return { | |
| interval: params.get("interval"), | |
| amount: params.get("amount"), | |
| }; | |
| } | |
| const params = getQueryParams(); |
| #page.with-headline #banner~#main #headline { | |
| width: fit-content; | |
| color: #000; | |
| background: none; | |
| } | |
| #headline p { | |
| background: none; | |
| display: block !important; | |
| margin-bottom: 0; |
| something { | |
| box-shadow: 0 4px 6px 0 hsla(0, 0%, 0%, 0.2); | |
| } |
I hereby claim:
To claim this, I am signing this object:
| var calendars = Array.from(document.getElementsByClassName("NI2kfb qZvm2d-ibnC6b-bN97Pc DX3x9d")); | |
| // ** RENAME THE CALENDARS IN THIS SECTION ** | |
| var calendarsToSee = ["NAME OF CALENDAR TO ALWAYS SEE 1", "NAME OF CALENDAR TO ALWAYS SEE 2"]; | |
| var calendarsToIgnore = ["Tasks", "Reminders"]; | |
| calendars.forEach(calendar => { | |
| if (calendarsToSee.includes(calendar.innerText) == false && calendarsToIgnore.includes(calendar.innerText) == false) { | |
| calendar.click(); |
| "use strict"; | |
| document.addEventListener("click", function (event) { | |
| event.preventDefault(); | |
| const allClasses = Array.from(event.target.classList).join("."); | |
| const classes = "." + allClasses; | |
| if (classes == ".") { | |
| console.log("No classes found"); | |
| } else { | |
| console.log(classes); | |
| } |