One more small tidbit of assistance, please.
I need a way to PASTE a six-digit code onto a page.
The first box doesn't need selected for a ctrl-v to paste the six-digit code.
ie, as long as the browser tab is active, then a ctrl-v pastes from the clipboard and into all six boxes.
Basically, the code is COPIED from an EMAIL but then needs PASTED to Hulu's STUPID six-code page.
But I want to be able to use MOUSE ONLY, no keyboard!
The page doesn't have a "paste" context menu.
https://auth.hulu.com/web/login/enter-passcode
![[ attachment ]](./download/file.php?style=5&id=688)
2025-06-05_10-44-48.jpg (34.03 KiB) Viewed 595 times
I use the below and it works on all other web sites that I've tried this on, it just doesn't work for Hulu's STUPID passcode page.
I click the "paste code" and then click the input field to paste into.
Works for usernames and passwords, just not this STUPID passcode on Hulu.
(function() {
let html = document.querySelector("html");
let btnV = document.createElement("buttonV");
btnV.innerHTML = "paste code";
btnV.style.display = "block";
btnV.style.position = "fixed";
btnV.style.top = "410px";
btnV.style.left = "calc(50vw - 40px)";
btnV.style.zIndex = "999999";
btnV.style.color = "#666";
btnV.style.cursor = "pointer";
btnV.style.fontSize = "14px";
btnV.style.fontFamily = "sans-serif";
btnV.style.textAlign = "center";
btnV.style.width = "80px";
btnV.style.opacity = '1';
html.appendChild(btnV);
function btnVFunction() {
const pasteButton = document.querySelector('input');
pasteButton.addEventListener('click', async () => {
try {
const text = await navigator.clipboard.readText()
document.querySelector('input').value += text;
} catch (error) {}});
}
btnV.addEventListener('click', btnVFunction);
})();