bookmarklet JavaScript

Reveal Hidden Passwords in JavaScript Bookmarklet

This article introduces a bookmarklet that uses the JavaScript programming language to reveal all hidden passwords in the browser. For example, when a password is displayed as ******, it will be revealed if possible. Use it as a bookmarklet or as a user script such as tampermonkey.

Shou Arisaka
1 min read
Nov 7, 2025

This article introduces a bookmarklet that uses the JavaScript programming language to reveal all hidden passwords in the browser. For example, when a password is displayed as ******, it will be revealed if possible. Use it as a bookmarklet or as a user script such as tampermonkey.

for (i=0 ;i < document.querySelectorAll('input').length; i++){
   if (document.querySelectorAll('input')[i].getAttribute('type').match(/password/)==null){

   } else {
     document.querySelectorAll('input')[i].setAttribute('type', 'text')
   }
}

Share this article

Shou Arisaka Nov 7, 2025

๐Ÿ”— Copy Links