場景:時間長了,很容易忘記當時設置的密碼是啥,那么如何查看搜狗瀏覽器保存的密碼呢?如何查看明碼?
1. 例如以博客園(密碼忘記了)為例:
首先打開登錄界面:https://account.cnblogs.com/signin
2. 停留在登錄界面,然后在瀏覽器地址欄輸入如下信息,然后回車就可以看到密碼了:
javascript:(function()%7bvar s,F,j,f,i; s = ""; F = document.forms; for(j=0; j<F.length; ++j) %7b f = F%5bj%5d; for (i=0; i<f.length; ++i) %7b if (f%5bi%5d.type.toLowerCase() == "password") s += f%5bi%5d.value + "\n"; %7d %7d if (s) alert("Passwords in forms on this page:\n\n" + s); else alert("There are no passwords in forms on this page.");%7d)();
javascript:(function()%7bvar s,F,j,f,i; s = ""; F = document.forms; for(j=0; j<F.length; ++j) %7b f = F%5bj%5d; for (i=0; i<f.length; ++i) %7b if (f%5bi%5d.type.toLowerCase() == "password") s += f%5bi%5d.value + "\n"; %7d %7d if (s) alert("Passwords in forms on this page:\n\n" + s); else alert("There are no passwords in forms on this page.");%7d)();