JSFiddle - React, Tailwind, and code Playground

the bookmarklet code from RunMyJS_EachXXXMinutes_v01e

by dledle2

JavaScript

javascript: console.log('we will be waiting 9 seconds for one and 9 seconds for the other (and then 25000 - 9500=16 seconds for the one nested inside of the other) before executing any of the codes inside of setTimeout functions  ');



(window.setTimeout(function() {

    function myFunc_addFormElementTypeSubmit() {
        var elemInput = document.createElement('input');
        /* elemInput.style.cssText = 'width:100%;height:10%;background:rgb(192,192,192);'; */
        elemInput.style.cssText = 'display:none';
        /* elemDiv.innerHTML = 'Added element with some data'; */
        /* window.document.body.insertBefore(elemDiv, window.document.body.firstChild); */
        elemInput.type = "submit";
        elemInput.name = "myInputSubmit";
        elemInput.className += "myInputSubmit";
        /* if (   (document.querySelectorAll(".usernameInputLogin").length >= 1) && (document.querySelectorAll("#loginSubmit").length >= 1)  ) {  */
        if (document.querySelectorAll("#loginSubmit").length >= 1) {
            document.querySelectorAll("#loginSubmit")[0].appendChild(elemInput); // appends last of that element
            /* document.querySelectorAll(".usernameInputLogin")[0].insertBefore(elemDiv, document.querySelectorAll("#loginSubmit")[0].firstChild);  */
            // document.body.appendChild(elemDiv); // appends last of that element
        }


    }

    if (top.document.querySelectorAll(".usernameInputLogin").length < 1) {
        console.log('true, user is already logged in OR an incomplete HTML page was returned. Main reason is complete an infinite webpage refresh each second if i get logged out somehow');



        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 {
            try...