Skip to content

Instantly share code, notes, and snippets.

View rspurrell's full-sized avatar

Roger S. rspurrell

View GitHub Profile
@rspurrell
rspurrell / mkv2mp4.bat
Created October 17, 2022 09:00
Converts DoVi MKV files to MP4 files
@ECHO OFF
REM Download and extract win64-gpl-5.1 (or similar) from https://github.com/yt-dlp/FFmpeg-Builds/wiki/Latest#latest-autobuilds
REM Download mp4muxer.exe from https://github.com/DolbyLaboratories/dlb_mp4base/tree/master/bin
REM In the same directory, put this batch, the win64-gpl-5.1 files, and mp4muxer.exe
REM Example: mkv2mp4.bat C:\path\to\file\video.mkv
SET fp=%~dp1
SET fn=%~n1
@rspurrell
rspurrell / checkSfdcReadOnly.js
Last active July 30, 2020 03:06
Check all read-only checkboxes that have their visible checkbox checked
var inputs = document.getElementsByTagName("input");
for (let i = 0; i < inputs.length; i++) {
let e = inputs[i];
if (e.type == "checkbox" && e.checked && e.id.charAt(0) == "d") {
document.getElementById("r" + e.id.substr(1)).checked = true;
}
}
@rspurrell
rspurrell / checkboxes.js
Last active July 30, 2020 03:07
Check all checkboxes
var inputs = document.getElementsByTagName("input");
for (let i = 0; i < inputs.length; i++) {
let e = inputs[i];
if (e.type == "checkbox" && !e.checked) {
e.checked = true;
}
}