>>108007838
// Styles
const style = document.createElement('style');
style.textContent = `
.tcaptcha-image { /*Buttons*/
padding: 0;
margin: 4px;
border: none;
background: none;
}
.tcaptcha-image img { /*Images*/
height: 100%;
width: 100%;
}
.tcaptcha-image.active { /*Selector*/
outline: 3px solid #00c06f;
}
#t-desc { /*Instructions*/
white-space: pre-line;
text-align: center;
font-size: 14px;
user-select: none;
width: 100%;
}
#t-task { /*Container*/
display: flex;
flex-wrap: wrap;
gap: 4px;
width: 100%;
justify-content: center;
margin: 0 auto;
overflow: auto;
max-height: 60vh;
padding: 0 !important;
height: auto !important;
white-space: normal !important;
align-items: normal !important;
}
.captcha-root > div { /*Captcha box*/
background-color: #1e1e1e !important;
color: #d0d0d0 !important;
height: auto !important;
}
`;
document.head.appendChild(style);
function updateHighlight() {
cachedButtons.forEach((btn, index) => {
const isActive = index === currentHighlightIndex;
btn.classList.toggle('active', isActive);
if (isActive) btn.scrollIntoView({ block: 'nearest' });
});
}
function formatDescription(str) {
return str
.replace(/^Use the scroll bar below to\s*|,\s*then click next\.?/gi, '')
.replace(/^./, c => c.toUpperCase()) + '.';
}