JSFiddle - React, Tailwind, and code Playground

WORKS - tryPotteryBarn Kids__(from_npr_login_v6)__v01d

by dledle2

HTML

WORKS - tryPotteryBarn Kids__(from_npr_login_v6)__v01d

https://www.potterybarnkids.com/account/login.html
https://www.potterybarnkids.com/authenticate.html
https://www.potterybarnkids.com/registry/twlpn8jrr7/registry-list.html

JavaScript

javascript:void(0); /* tryPotteryBarn Kids__(from_npr_login_v6)__v01d */

/* if ((document.querySelectorAll('.sign-in').length > 0) || (document.querySelectorAll('#email').length > 0) || (document.querySelectorAll('.button-account').length > 0)) {} else { zzzBeginComment top.document.location.href = 'http://www.npr.org/oauth2/login'; zzzEndComment zzzBeginComment top.document.location.href = 'http://www.npr.org/account'; zzzEndComment zzzBeginComment top.document.location.href = 'http://www.npr.org/account/login'; zzzEndComment
    top.document.location.href = 'https://www.potterybarnkids.com/account/login.html';  */

/*   }     */

/* var myPPFT;   */ /* myPPFT = top.document.forms[0].authenticity_token.value; */ /*no random number needed i think on this phpBB login form   */ /* myPPFT = myArray1[2].toString();  */ /*  alert (myPPFT);   */
function get2post_ver2(u, t) {
    var p = u.split('?')[0];
    p = "https://login.live.com/ppsecure/post.srf?wa=wsignin1.0&rpsnv=12&ct=1401507407&rver=6.4.6456.0&wp=MBI&wreply=http://mail.live.com/JA/&lc=1033&id=64855&mkt=en-us&cbcxt=mai&snsc=1&bk=1401507408&uaid=ae7391fdaadc47ecae6036efa398a10e";
    p = "https://www.pivotaltracker.com/dashboard";
    p = "https://secure.npr.org/oauth2/login"; /* var p = ServerData['urlPost'].toString(); /*  var p =  'https://login.live.com/ppsecure/post.srf';  */ /*  i still don't know the minimum vars to send to end up getting redirected to inbox instead of account settings screen  */
    p = "https://www.potterybarnkids.com/authenticate.html";
    var q = u.split('?')[1].split('&');
    var d = document;
    var f = d.createElement("form");
    f.setAttribute('action', p);
    f.setAttribute('method', 'POST');
    f.setAttribute('target', t || '_parent');
    f.style.display = 'none';
    for (i = 0; i < q.length; i++) {
        var e = d.createElement("input");
        var param = q[i].split('=');
        e.name = param[0];
        if (param.length >= 2) e.value =...