Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save 1d10t/9167a9993de07fb728a3bbb736fd1c9e to your computer and use it in GitHub Desktop.
Save 1d10t/9167a9993de07fb728a3bbb736fd1c9e to your computer and use it in GitHub Desktop.
(_ => {
const scrollable = document.querySelector('c-wiz[data-ogpc]');
setInterval(_ => {
let scrollby = 0;
[].map.call(document.querySelectorAll('div[role="presentation"]'), e => {
scrollby += e.offsetHeight;
const dd = {};
[].map.call(
e.querySelectorAll('[aria-label]') || [],
le => dd[ le.getAttribute("aria-label") ] = le.innerText
);
if(!dd["Номер телефона"] && !dd["Отправить сообщение электронной почты"]){
let cb = e.querySelector('[role="checkbox"]:not([aria-checked="true"])')
if(cb) cb.click();
}
});
scrollable.scrollBy(0, scrollby);
}, 1000);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment