Skip to content

Javascript Hacking

All kind of javascript tips and tricks around ethical hacking


Replace all astrix that is "PASSWORD" With with "TYPE" To not hide the passwords

let inputFields = document.querySelectorAll('input[type="password"]');
inputFields.forEach(input => input.type = 'text');

Show all hidden and none blocks

document.querySelectorAll('*').forEach(el => {
    if (el.offsetParent === null && el.type !== 'hidden') {
        el.style.display = 'block';
        el.style.visibility = 'visible';
    }
});