当您访问登录详细信息保存在浏览器中的网站时,浏览器会自动为您填写用户名和密码字段(automatically fills-in both the username and password fields)。您可能在访问您持有帐户的网站时注意到了这种行为。虽然用户名清晰可见,但密码隐藏在星号后面。
浏览器通常不会透露您的密码,否则坐在您旁边的人会发现密码是什么。但是,如果您确定周围没有人并且您想查看星号后面的密码,可以通过以下几种方法在您的浏览器中进行操作。
使用检查元素(Asterisks Using Inspect Element)显示星号后面的密码
无论您是HTML编码的初学者、Web 开发方面的专家(an expert at web development),还是您了解HTML的 zip ,您仍然可以使用检查元素(inspect element)工具来显示您的密码。
该工具有助于在浏览器中显示所选元素的源代码,以便您可以对代码进行更改。对代码所做的任何更改都将实时反映在网站上。
借助此实时更改功能,您可以使用检查元素(inspect element)找出隐藏在星号后面的内容。这是你如何做到的。
- 启动要在星号后面显示密码的网站。
- 右键单击(Right-click)您看到星号的密码字段,然后选择Inspect。它将触发检查元素工具。
- 密码字段的代码将在控制台中突出显示。双击<input type=”password”>(password)标签中的密码,将其重命名为text,然后按 Enter(Enter)。
- 密码字段中的星号将很快变成您的真实密码。如果需要,您可以像复制任何其他文本一样复制它。
这应该适用于所有流行的浏览器,包括Chrome和Firefox。
使用 JavaScript(Use JavaScript)查看星号后面的密码(Passwords Behind Asterisks)
如果您不想在每次想要显示密码时都更改代码,您可以使用 JavaScript,只需单击一下即可为您完成这项工作(use JavaScript that’ll do the job for you in a single-click)。
尽管可以从地址栏中手动运行用于显示密码的JavaScript,但您可能希望将其添加到书签栏中,因此只需单击一下即可执行它。
- 单击(Click)浏览器中地址栏旁边的星形图标以添加书签。
- 单击以下屏幕上的更多(More),因为您需要在保存之前编辑书签。
- 在以下屏幕上,在名称(Name)字段中输入您想要的任何名称。对于URL字段,复制并粘贴以下JavaScript代码:
javascript:(function(){var s,F,j,f,i; s = ""; F = document.forms; for(j=0; j<F.length; ++j) { f = F[j]; for (i=0; i<f.length; ++i) { if (f[i].type.toLowerCase() == "password") s += f[i].value + "\n"; } } if (s) alert("Here are your passwords:\n\n" + s); else alert("No passwords were found on the page.");})();
- 现在转到任何您看到星号代替密码的网站。单击(Click)新添加的书签,星号后面的密码将出现在您的屏幕上。
由于它是JavaScript,它应该可以在所有支持Java的浏览器中工作。
使用浏览器扩展(Use Browser Extensions)查看密码(View Passwords)
还有一些扩展程序可以让您在浏览器中查看星号后面的密码。这些比任何其他方法都更易于使用,您只需将它们安装在浏览器中即可。
Chrome 用户可以使用Show Password扩展程序来显示密码。Opera 用户可以使用Show Password扩展程序。Mozilla Firefox具有Show/hide passwords扩展,可以快速显示和隐藏您的密码。
(View Saved Passwords)在Chrome和Firefox中(Firefox)查看保存的密码
您可能已经知道,星号后面是保存在浏览器中的密码。如果您可以在浏览器本身中显示这些密码,则无需使用任何方法将星号转换为密码。
以下是您在Chrome和Firefox中查看已保存密码的方法:
在 Chrome 中访问已保存的密码
- 单击右上角(Click)的三个点,然后选择设置(Settings)以打开 Chrome 设置菜单。
- 单击以下屏幕上的密码(Passwords),然后单击要查看的密码旁边的眼睛图标。
- 系统将提示您输入计算机密码,然后您就可以查看所有已保存的密码(view all of your saved passwords)。
在 Firefox 中查看保存的密码
- 单击右上角(Click)的三个水平线,然后选择Preferences。
- 从左侧边栏中选择隐私和安全(Privacy & Security),然后单击右侧窗格中的已保存登录(Saved Logins)。
- 单击显示密码(Show Passwords)以显示列表中的所有密码。
您还可以使用此面板从浏览器中删除特定或所有密码。
How To View A Password Behind The Asterisks In a Browser
When yoυ’re on a website whose logіn details are saved in yоur browser, the browser automatically fills-in both the username and password fields for you. You may have noticed this behavior while visiting a website where you hold an account. While the username is clearly visible, the password is hidden behind asterisks.
It’s common for browsers not to reveal your passwords, otherwise the person sitting next to you will find out what the password is. However, if you’ve made sure no one’s around you and you want to see the password behind the asterisks, here are several ways to do it in your browser.
Reveal Passwords
Behind Asterisks Using Inspect Element
Whether you’re a beginner in HTML coding, an expert at web development, or you know zip about HTML, you can still use the inspect element tool to reveal your passwords.
The tool helps reveal the source code of the selected elements in your browser so you can make changes to the code. Any changes made to the code will reflect on the site in real-time.
Thanks to this real-time change feature, you can use inspect element to find out what’s hiding behind the asterisks. Here’s how you do it.
- Launch the website where you want to reveal the passwords behind asterisks.
- Right-click on the password field where you see asterisks and select Inspect. It’ll trigger the inspect element tool.
- The code for the password field will be highlighted in the console. Double-click on password in the <input type=”password”> tag, rename it to text, and hit Enter.
- Asterisks in the password field will quickly turn into your real and actual password. You may copy it as you would any other text if you want.
This
should work in all the popular browsers including Chrome and Firefox.
Use JavaScript To View The Passwords Behind Asterisks
If you don’t want to make changes to a code each time you want to reveal a password, you can use JavaScript that’ll do the job for you in a single-click.
Although the JavaScript to reveal passwords can be run manually from the address bar, you may want to add it to the bookmarks bar so it’s then just a matter of a single-click to execute it.
- Click on the star icon next to the address bar in your browser to add a bookmark.
- Click on More on the following screen as you need to edit the bookmark before you save it.
- On the following screen, enter any name you want in the Name field. For the URL field, copy and paste the following JavaScript code:
javascript:(function(){var s,F,j,f,i; s = ""; F = document.forms; for(j=0; j<F.length; ++j) { f = F[j]; for (i=0; i<f.length; ++i) { if (f[i].type.toLowerCase() == "password") s += f[i].value + "\n"; } } if (s) alert("Here are your passwords:\n\n" + s); else alert("No passwords were found on the page.");})();
- Now go to any website where you see asterisks in place of a password. Click on the newly added bookmark and the password behind the asterisks will appear on your screen.
Since it’s JavaScript, it should work in all browsers that support Java.
Use Browser Extensions To View Passwords
There
are extensions as well that let you view the passwords behind
asterisks in your browsers. These are easier to use than any other
methods and all you need to do is install them in your browser.
Chrome users can use the Show Password extension to reveal the passwords. Opera users have the Show Password extension available for them. Mozilla Firefox has Show/hide passwords extension to quickly show and hide your passwords.
View Saved Passwords In Chrome And Firefox
As you may already know, what you’ve got behind the asterisks are the passwords saved in your browsers. If you could reveal these passwords in the browser itself, you won’t have to use any methods to turn asterisks into passwords.
Here’s how you view your saved passwords in Chrome and Firefox:
Access Saved Passwords In Chrome
- Click on the three-dots at the top-right corner and select Settings to open Chrome settings menu.
- Click on Passwords on the following screen and then click on the eye icon next to the password you want to view.
View Saved Passwords In Firefox
- Click on the three horizontal-lines at the top-right corner and select Preferences.
- Choose Privacy & Security from the left sidebar and click on Saved Logins in the right pane.
- Click on Show Passwords to reveal all the passwords in the list.
You
can also remove specific or all the passwords from your browser using
this panel.