JSFiddle - React, Tailwind, and code Playground
pioneervote_v4a-todo
by dledle2
JavaScript
javascript: (window.setTimeout(function() {
if (window.document.URL.indexOf("/panel/vote") <= 0) {
var http = location.protocol;
var slashes = http.concat("//");
var host = slashes.concat(window.location.hostname); /* alert('no, not the vote page'); */
top.document.location = host + "/panel/vote";
} else { /*begin of big IF else for document.location */ /*YES we are at the vote URL, now lets check that we have a complete and not interrupted html page loaded by seeing if the end of the vote table exists */
var TablesVoteWebsites;
if (document.querySelectorAll(".table").length != 0) {
TablesVoteWebsites = document.querySelectorAll(".table")[0];
} /*console.error("exiting due to hyperlinks found with a timeLeft we can NOW click to begin voting for") */ /*TablesVoteWebsites.innerHTML.match('00:00:00.*\/'); */ /* if (TablesVoteWebsites == null) { alert('null for TablesVoteWebsites - but also note that processing does not stop after this alert, if we are on a vote/5/ page the regex will still be found in later if statements below') } try { if (TablesVoteWebsites[0] != null) { alert('TablesVoteWebsites element zero exists') } } catch (e) {} */
try {
var firstClickableVoteLink = document.querySelectorAll(".table")[0].querySelectorAll("a")[0]; /* finds first clickable hyperlink in the element with a class of "table", */ /* yes it's a class name and not an HTML type of name */ /*HTMLFormElement.prototype.submit.call(top.document.forms[0]); */
HTMLFormElement.prototype.click.call(firstClickableVoteLink);
} catch (e) {}
if (document.querySelectorAll(".table").length == 0) /* if the class name of "table" does not exist then we are probably on the actual vote for a server page instead of the voting index page */ {
scriptElemVoting =...