This file contains 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
/* Set height of video's text info */ | |
div#details { | |
height: 11rem; | |
} | |
ytd-rich-item-renderer.ytd-rich-grid-renderer { | |
margin-bottom: 24px; | |
} | |
/* Move ellipsis menu to bottom left corner */ |
This file contains 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
/* Category view on ATIC.ca doesn't have any means of filtering items. | |
This script can be run in the browser console and filters based on a product's link text. | |
Used on the Power Supply category: http://www.atic.ca/index.php?page=Products&cat=119 | |
Excellent site for PSU efficiency and noise level testing: | |
https://www.cybenetics.com/index.php?option=database¶ms=1,2,0 | |
*/ | |
document.querySelectorAll("table table table tr td:nth-child(3) a").forEach((item) => { | |
let remove = false; |
This file contains 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
// Chat conversation backup for https://messages.google.com/web | |
// To use, start by choosing a conversation, and scroll to the top until all previous chats have been loaded. | |
// Then copy and paste this script into the Chrome Developer Console (Ctrl+Shift+J), hit Enter, and copy the | |
// value of 'result' and paste it wherever you would like to save the chat history. | |
var result = Array.from(document.querySelectorAll("mws-relative-timestamp, mws-text-message-part")).map((item) => { | |
switch (item.nodeName) { | |
case "MWS-TEXT-MESSAGE-PART": | |
// Extract the sender's name from aria-label, which starts as '[Person] said:' | |
var aria = item.getAttribute("aria-label"); |
This file contains 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
/* This shows URLs in the bottom left corner of the window immediately on hover, similar to | |
how most web browsers do it, but faster. | |
In Google Chrome, hovering over a link will show the target URL at the bottom of the window. | |
But Chrome takes its sweet time with this, especially if the URL is long, where it starts by | |
showing a subset of the URL, with a '...' replacing the part of the URL that was hidden. | |
Some people (myself included) would much prefer if Chrome showed the complete URL immediately: | |
https://superuser.com/questions/778533/getting-url-in-status-bar-immediately-on-hovering-over-a-link | |
This file contains 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
// This uses the html5 MediaStream Image Capture API to manually control focus of the | |
// active webcam or phone camera. | |
// https://w3c.github.io/mediacapture-main/#dom-mediastreamtrack | |
// https://w3c.github.io/mediacapture-image/#mediatracksupportedconstraints-section | |
let videoElem = document.querySelector('video'); | |
let track = videoElem.srcObject.getVideoTracks()[0]; | |
let cap = track.getCapabilities(); | |
console.info('focusMode: ', cap.focusMode); |