JSFiddle - React, Tailwind, and code Playground
npr_login_v2_coolSmallCode
by dledle2
HTML
npr_login_v2_coolSmallCode
JavaScript
javascript:function get2post_inputnameSubmit_and_hardCodedUrl1(u, t) {
p = 'https://secure.npr.org/account/login';
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 = decodeURIComponent(param[1]);
f.appendChild(e)
}
d.body.appendChild(f);
HTMLFormElement.prototype.submit.call(f)
}
get2post_inputnameSubmit_and_hardCodedUrl1('https://secure.npr.org/account/login?email=zzz@@@[email protected]&fakepassword=&password=password&loggedin=on');