-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.js
More file actions
26 lines (19 loc) · 1.02 KB
/
Copy pathtest.js
File metadata and controls
26 lines (19 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
const emailConsentCheckbox = document.querySelector('[jsname="MPu53c"]');
const ticketIDInput = document.querySelector('input[jsname="YPqjbf"]');
const qaSpecialistRadio = document.querySelector('.SG0AAe');
const campaignNumberInput = document.querySelector('div[data-params*="Number of Campaigns"] input');
emailConsentCheckbox.click();
ticketIDInput.nextElementSibling.style.display = 'none';
ticketIDInput.value = 'CAM-';
qaSpecialistRadio.classList.add('cam-radio-row');
campaignNumberInput.setAttribute('type', 'number');
const emailElements = document.querySelectorAll('.EbMsme');
const firstNames = Array.from(emailElements).map(element => {
const email = element.innerText.trim();
if (!email) return null;
const localPart = email.split('@')[0];
const rawName = localPart.split('.')[0];
console.log(rawName.charAt(0).toUpperCase() + rawName.slice(1).toLowerCase());
return rawName.charAt(0).toUpperCase() + rawName.slice(1).toLowerCase();
}).filter(Boolean);
console.log('testing 1234...')