JSFiddle - React, Tailwind, and code Playground

pioneervote_v2c

by dledle2

JavaScript

javascript: (window.setTimeout(function() {
    scriptElemVoting = document.querySelectorAll("script")[3];
    strFoundToken = scriptElemVoting.innerHTML.match('getcoins.*token.*\/');
    if (strFoundToken == null) {
        alert('regex match for getcoins...token... not found on the voting page');
    }
    else
    {
      var elemHeaderVote=document.querySelectorAll(".bigBox")[0].querySelectorAll(".top")[0].querySelectorAll("h1")[0];
      elemHeaderVote.innerHTML = elemHeaderVote.innerHTML + " - found... please wait 15 seconds"
      /* alert('found... please wait 15 seconds');  */
    }
    if (strFoundToken[0].length > 5) {} else {
        alert('token string found via regex but length is too short');
    }
}, 100));
(window.setTimeout(function() {
    scriptElemVoting = document.querySelectorAll("script")[3];
    strFoundToken = scriptElemVoting.innerHTML.match('getcoins.*token.*\/');
    if (strFoundToken[0].length > 5) {
        window.top.location = "/panel/vote/" + strFoundToken
    }
}, 15000));
void(0);