广西彩票快乐双彩走势图:Browser remembers your password, but you don’t? Take it back!

November 5th, 2017. Tagged: bookmarklets, qa

We've all seen something like this:

browser remembers a password

But you have no idea what the password is. How to get the human-readable version of *******?

Method 1: use the browser's developer tools

Provided you have a reasonably recent browser, just open the Developer tools by right-clicking the input field with the password and then select "Inspect Element".

Then find the Console tab (or hit ESC) and type:

$0.value

That's it!

now you know the password

$0 means "active element" so if the above doesn't work it means you've clicked somewhere else and the password field is no longer the active element being inspected. So right-click and inspect it again.

Method 2: a bookmarklet

If you don't want to type every time or your browser (looking at you iOS Safari) doesn't offer an easy web dev console, a bookmarket is to the rescue. Here it is:

javascript:document.querySelectorAll('[type=password]').forEach(f=>f.type='')

Try it: show password

Now install this bookmarklet by right-clicking and bookmarking this link: show password

Note that iOS Safari doesn't like to bookmark bookmarklets, so you need to:
1. bookmark anything else, e.g. this page
2. then go edit the bookmark and paste the code above (the one that starts with javascript:)

Tell your friends about this post: Facebook, Twitter, Google+

Sorry, comments disabled and hidden due to excessive spam. Working on restoring the existing comments...

Meanwhile, hit me up on twitter @stoyanstefanov


  • “四新”彰显党的十九大思想灵魂和精髓要义 2018-08-17
  • 热身赛-U17女篮73-68立陶宛 杨舒宇19分刘禹彤13分 2018-08-16
  • 七月流火:一半是甜蜜 一半是仁慈 2018-08-15
  • “嫦娥”飞向月球背面,将会揭开哪些秘密? 2018-08-15
  • 一代枭雄身后事:“曹操墓”认定过程缘何一波三折? 2018-08-04
  • 女出纳侵吞千万公款扮富婆 7年未被公司发现 2018-08-04
  • 南昌PM2.5浓度写进目标责任书 切实防治大气污染 2018-07-20
  • 网友投诉不文明养犬行为 有关部门加强治理 2018-07-20
  • 316| 223| 539| 94| 407| 344| 748| 599| 447| 470|