Any useful dev console commands? I found one and it’s made me wonder what other useful stuff could be done through that.
Here’s mine (credit goes to chat gpt - although it was trial and error for us):
I had a lot of options to add to a selection column and figured out a way to use the browser dev console to add tons of options for me:
- Open the dev console (console tab)
- Open the column menu and basically get it cued up as if you were going to add an option
- In the dev console, paste the command below (all you need to update is the options to add)
- Tweak the delay if you want it to go slower (line: const delay = 500; // ← adjust if needed)
I used this to add over 300 options, and it worked perfectly. Finished adding all the options in just a few minutes.
// Replace this array with the list of options you want to add
const optionsToAdd = [
“Option 1”,
“Option 2”,
“Option 3”,
// …
];
// Adjust delay if needed (ms between each input)
const delay = 500;
let index = 0;
const interval = setInterval(() => {
const allInputs = document.querySelectorAll(‘.select-options__item input’);
const input = allInputs[allInputs.length - 1]; // always targets last input (newest empty one)
if (!input) {
console.warn(“ Input field not found. Make sure the Options section is open.”);
clearInterval(interval);
return;
}
// Enter the current option
const tag = optionsToAdd[index];
input.focus();
input.value = tag;
// Trigger input + “Enter” to confirm
input.dispatchEvent(new Event(‘input’, { bubbles: true }));
input.dispatchEvent(new KeyboardEvent(‘keydown’, { key: ‘Enter’, bubbles: true }));
console.log(➕ Added: ${tag}
);
index++;
// Click “Add an option” to prepare next row (button always visible)
const addBtn = document.querySelector(‘.button-text__label’);
if (addBtn) addBtn.click();
// Done
if (index >= optionsToAdd.length) {
console.log(“ All options added!”);
clearInterval(interval);
}
}, delay);