Skip to content

Instantly share code, notes, and snippets.

View coryvirok's full-sized avatar

Cory Virok coryvirok

  • Rollbar
  • San Francisco
View GitHub Profile
@coryvirok
coryvirok / dev-console-script.js
Created January 18, 2025 03:52
Download embedded videos in your browser (even blob: sources)
function addDownloadButtonsToVideos() {
const addButton = (video) => {
// Check if a download button already exists for this video
if (video.parentElement.querySelector('.download-button')) return;
// Create the download button
const button = document.createElement('button');
button.textContent = 'Download';
button.className = 'download-button';
Object.assign(button.style, {