Skip to content

Instantly share code, notes, and snippets.

View turnercore's full-sized avatar

Turner Monroe turnercore

View GitHub Profile
@turnercore
turnercore / stop-youtube-play-on-load.js
Last active December 21, 2024 09:30
Stop YouTube Play on Load
(() => {
let isVideoHandled = false; // Flag to indicate if the video has been handled
const checkVideoStart = () => {
const video = document.querySelector('#movie_player > div.html5-video-container > video');
if (!video) return;
// When the video starts playing (currentTime changes from 0), pause it
if (video.currentTime > 0 && !video.paused) {
video.pause();
@turnercore
turnercore / install-shadcn.sh
Last active January 1, 2024 16:53
Install shadcn complete
#!/bin/bash
# Create directories and files
mkdir -p ./components/ui
mkdir -p ./lib
touch ./lib/utils.ts
# Prompt to move globals.css
echo "Would you like to move globals.css to styles/globals.css? (y/n)"
read -r -p "[Y/n]: " move_response