Hackernoon logoOne Javascript Line To Run Directly From the Browser Address Bar by@groundblue

One Javascript Line To Run Directly From the Browser Address Bar

Author profile picture


A senior software engineering having a big interest in information security

These Javascript snippet are friendly-user hacks, that can be executed
directly from the browser's address bar. The execution of these one-line
scripts has affects only on the website's loaded document.
The advantage with this approach; is that it uses vanilla Javascript and doesn't require any plugin on the browser or needs the developer console. You just need to copy/past the code into the address bar, after the prefix "Javascript:" typed beforehand.
Important : Don't copy/past the code with the prefix "javascript:" at once, otherwise the browser will ignore the prefix when pasting in the address bar. 

Show Masked Password Saved In Login Form

It is not easy to remember the last time you typed your password in a login
form, specially if the browser has saved it for you. Just use this below
snippet to have the chance to remember it again.
Use this code when the login page is fully loaded and password input is filled with asterisk or dots :
javascript:alert("Your Password is : "+document.querySelectorAll("input[type=password]")[0].value);

Quick Export Table To MS Excel

Web page can have interesting data represented in form of (html) tables,
sometimes there is a need to process the data in Excel, separately from
the web page's content. The following snippets allow you to export a table to Excel. You just need to know the order in which the table is displayed on the page, for instance if the page has 4 tables and you want to extract the second table, you replace TABLE_INDEX with 1 (not 2 !) :
javascript:window.open('data:application/vnd.ms-excel,' +  encodeURIComponent(document.getElementsByTagName('table')[TABLE_INDEX].innerText)); 


The Noonification banner

Subscribe to get your daily round-up of top tech stories!