JSFiddle - React, Tailwind, and code Playground

probably bookmarklet for manual forcing username to admin and POSTing a login form for ajax chat (enkidu)

by dledle2

HTML

probably bookmarklet for manual forcing username to admin and POSTing a login form for ajax chat (enkidu)

JavaScript

javascript:function submit(params) {
    var div = document.createElement('div');
    div.innerHTML = '<iframe height="50" width="50"></iframe>';
    document.body.appendChild(div);
    var iframe = div.firstChild;
    var iframeDocument = iframe.contentDocument || iframe.contentWindow.document;
    iframeDocument.open();
    iframeDocument.close();
    var form = iframeDocument.createElement('form');
    iframeDocument.body.appendChild(form);
    form.setAttribute('action', 'http://enkidu-online.com/chat/');
    form.setAttribute('method', 'POST');
    for (param in params) {
        var field = iframeDocument.createElement('input');
        field.setAttribute('type', 'hidden');
        field.setAttribute('name', param);
        field.setAttribute('value', params[param]);
        form.appendChild(field)
    }
    form.submit()
}
submit({
    'login': 'login',
    'redirect': '',
    'userName': '***********',
    'password': '**********',
    'channelName': 'Public',
    'lang': 'en',
    
});
setTimeout(function () {
    window.top.location.href = 'http://*******-online.com/chat/' 
}, 300);