Skip to content

Instantly share code, notes, and snippets.

@htmlarson
htmlarson / Fixit.js
Last active October 24, 2023 20:13
Fix the damn inventory
function getListItems(elementSelector) {
var list = [];
document.querySelector(elementSelector).querySelector("ul").querySelectorAll("li").forEach(item=>{
list.push(item.innerText);
}
);
return list;
}
function differential(check, against) {
@htmlarson
htmlarson / OpenMissingPhotos.js
Created August 31, 2023 17:46
Open All Missing Hookup Photos
var result = [];
document.querySelectorAll(".sort-1").forEach((hasPhoto)=>{
if (hasPhoto.innerText === "No") {
var row = hasPhoto.parentElement;
var link = row.children[1].children[0].href;
result.push(link);
}
}
@htmlarson
htmlarson / autoDiscover.js
Created July 9, 2023 07:01
U-Haul CSF -- Equipment Auto-Discovery
/* This is meant to be run as a snippet in your web browser.
*/
var initial = getCurrentLocationCount();
var first_run = true;
var sanity_override = false;
function sanityCheck() {
var totalLocations = document.querySelectorAll(".location").length / 2;
document.querySelector("#loadTitle").innerText = totalLocations < 300 ? totalLocations + " checked..." : "🙄 Just Call Traffic... (" + totalLocations + ")";
@htmlarson
htmlarson / run.dogs
Last active April 16, 2020 08:17 — forked from joshgarde/run.cats
lol, dogs