Guest User

Untitled

a guest
Nov 5th, 2020
174
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # IN CHROME, GO TO https://myvote.wi.gov/en-US/TrackMyBallot
  2. # PUSH F12, OR RIGHT CLICK AND INSPECT ANYWHERE ON PAGE
  3. # CLICK ON CONSOLE TAB (IN DEV TOOLS)
  4. # PASTE ALL OF THIS CODE, ADDING AS MANY "checkForDeadPeople" AT THE BOTTOM
  5. # IT SHOULD PRINT OUT "FOUND" IF IT HAS A MATCH!!
  6.  
  7. async function checkForDeadPeople(firstName, lastName, birthDate) {
  8.   const response = await fetch(
  9.     "https://myvote.wi.gov/DesktopModules/GabMyVoteModules/api/voter/search",
  10.     {
  11.       method: "POST",
  12.       headers: {
  13.         "Content-Type": "application/json",
  14.       },
  15.       body: JSON.stringify({
  16.         firstName,
  17.         lastName,
  18.         birthDate,
  19.       }),
  20.     }
  21.   );
  22.   const data = await response.json();
  23.   if (data['Data']['voters']['$values'].length > 0) {
  24.     console.log('FOUND', firstName, lastName, birthDate)
  25.   } else {
  26.     console.log('not found')
  27.   }
  28. }
  29. await checkForDeadPeople("Arthur", "Kriesel", "12/25/1935");
  30. await checkForDeadPeople('Gertrude', 'Koser', '03/17/1991');
  31. await checkForDeadPeople('Leonard', 'Crushinski', '08/23/1926');
  32.  
RAW Paste Data