Skip to content

Instantly share code, notes, and snippets.

@fmarais
Last active August 10, 2022 16:14
Show Gist options
  • Save fmarais/1f6fb96ca6a0e66897c804bc39081464 to your computer and use it in GitHub Desktop.
Save fmarais/1f6fb96ca6a0e66897c804bc39081464 to your computer and use it in GitHub Desktop.
PUBLIC_Youtube_quicksave_draft
const sleep = ms => new Promise(r => setTimeout(r, ms));
var title = "GOPRO - 24 July 22 - Atlantis L 2nd time";
var filenameEle = document.getElementById("original-filename");
var filename = filenameEle.innerText.substring(0, filenameEle.innerText.length - 4);
var title2 = title + " - " + filename;
var textbox = document.querySelector("#textbox");
textbox.innerText = title2;
document.querySelector(".use-placeholder .dropdown-trigger-text").click();
await sleep(500);
document.querySelector("#checkbox-0 > #checkbox-container").click();
await sleep(500);
document.querySelector(".done-button > .label").click();
await sleep(500);
document.querySelector("#offRadio").click();
await sleep(500);
textbox.innerText = title2;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment