Last active
August 10, 2022 16:14
-
-
Save fmarais/1f6fb96ca6a0e66897c804bc39081464 to your computer and use it in GitHub Desktop.
PUBLIC_Youtube_quicksave_draft
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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