Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- //https://adoric.com/experience
- (function() {
- var waitPageTriggerElement = setInterval(function() {
- var setExperienceDialogForm = document.querySelector('#setExperienceDialog form');
- if (setExperienceDialogForm) {
- clearInterval(waitPageTriggerElement);
- var userGoal = document.querySelector('select[name="goal"]');
- var userRole = document.querySelector('select[name="role"]');
- setExperienceDialogForm.addEventListener('submit', function() {
- window.localStorage.setItem('adoricRegistrationUserGoal', userGoal.value);
- window.localStorage.setItem('adoricRegistrationUserRole', userRole.value);
- });
- }
- }, 500);
- setTimeout(function() {
- clearInterval(waitPageTriggerElement);
- }, 7000);
- })();
- </script>
- <script>
- //https://adoric.com/editDomain
- (function() {
- var waitPageTriggerElement = setInterval(function() {
- var domainNameCreateForm = document.querySelector('#domainNameCreate');
- if (domainNameCreateForm) {
- clearInterval(waitPageTriggerElement);
- var userDomain = document.querySelector('INPUT[name="domain"]');
- var userDomainIndustry = document.querySelector('select[name="domainIndustry"]');
- var nextPageButton = document.querySelector('#domainNameCreate INPUT[data-test-id="nextStep"]');
- nextPageButton.addEventListener('click', function() {
- window.localStorage.setItem('adoricRegistrationUserDomain', userDomain.value);
- window.localStorage.setItem('adoricRegistrationUserDomainIndustry', userDomainIndustry.value);
- });
- }
- }, 500);
- setTimeout(function() {
- clearInterval(waitPageTriggerElement);
- }, 7000);
- })();
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement