()
| 193 | |
| 194 | // 带密码的分享链接自动输密码 |
| 195 | function shareLinkWithPassword() { |
| 196 | if (location.pathname.indexOf('%E5%AF%86%E7%A0%81') > -1) { |
| 197 | let shareLink = location.pathname.split('%') |
| 198 | if (shareLink.length > 0) { |
| 199 | shareLink = location.origin + shareLink[0] |
| 200 | let password = location.pathname.replace('%E5%AF%86%E7%A0%81',':').replace(/%([A-Z]|[0-9]){2}/ig, '').split(':') |
| 201 | if (password.length > 0) { |
| 202 | location.replace(shareLink + '?pwd=' + password[password.length - 1]) |
| 203 | } |
| 204 | } |
| 205 | } |
| 206 | } |
| 207 | |
| 208 | |
| 209 | // 自动输入密码(仅支持访问 带密码的分享链接 时,比如上面 [带密码的分享链接自动输密码] 功能重定向后的链接) |
no outgoing calls
no test coverage detected