过去通过控制台打开的弹出窗口停止打开
大家好
我刚刚开始学习 HTML,所以我几乎不明白我在做什么,提前抱歉。
所以基本上,过去有一个选项可以通过转到控制台并写入特定行来从网站上删除您的帐户。
您过去只需输入: profileModule.openDeletAccountModal(); 将打开一个弹出窗口,要求您重新输入密码,仅此而已。
然而,最近他们改变了一些东西,在写下该行后,没有任何内容打开,而是您得到:
未捕获的类型错误:无法读取 null 的属性(读取“样式”)
>在 Object.openDeletAccountModal (profile.js?v=1.34120.518:1:1001)
在 .js 中您会得到更多行:
var profileModule=(function(){var _showRemoveProfileLink=function(){var urlParameterToShowRemoveProfile='removeprofile';var url_string=window.location.href;var url=new URL(url_string);var c=url.searchParams.get(urlParameterToShowRemoveProfile);if(c!==null){document.querySelector('#ask-delete-account').style.display='block';if(c==='open')openDeletAccountModal();}};var handleEvent=function(){_showRemoveProfileLink();var btnDeleteEl=document.querySelector('#btn-delete-account');document.querySelector('#delete-account-current-password').addEventListener('input',function(event){if(event.target.value.length>0){btnDeleteEl.classList.remove('disable-button');btnDeleteEl.removeAttribute('disabled');}else{btnDeleteEl.classList.add('disable-button');btnDeleteEl.setAttribute('disabled','');}});document.querySelector('.dark-nilon').addEventListener('click',function(event){profileModule.closeDeletAccountModal();});};var openDeletAccountModal=function(){document.querySelector('.delete-account-modal').style.display='block';document.querySelector('.dark-nilon').style.display='block';};var closeDeletAccountModal=function(){document.querySelector('.delete-account-modal').style.display='none';document.querySelector('.dark-nilon').style.display='none';};var hashPasswordsDelete=function(currentpassword,currentpassword_md5){var junk_output;md5hash(currentpassword,currentpassword_md5,junk_output,0);};return{handleEvent,openDeletAccountModal,closeDeletAccountModal,hashPasswordsDelete};}());document.addEventListener("DOMContentLoaded",function(){profileModule.handleEvent();});
有什么办法可以查出发生了什么事吗?谢谢!
Hi everyone
I just started learning HTML so I barely understand what I'm doing, sorry in advance.
So basically, there used to be an option to delete your account from a website by going to the console and writing a specific line.
You used to simply type:
profileModule.openDeletAccountModal(); and a pop-up window would open that asks you to re-enter your password and that's it.
However, lately they changed something and after writing down that line nothing opens up and instead you get:
Uncaught TypeError: Cannot read properties of null (reading 'style')
at Object.openDeletAccountModal (profile.js?v=1.34120.518:1:1001)
Inside the .js you get some more lines:
var profileModule=(function(){var _showRemoveProfileLink=function(){var urlParameterToShowRemoveProfile='removeprofile';var url_string=window.location.href;var url=new URL(url_string);var c=url.searchParams.get(urlParameterToShowRemoveProfile);if(c!==null){document.querySelector('#ask-delete-account').style.display='block';if(c==='open')openDeletAccountModal();}};var handleEvent=function(){_showRemoveProfileLink();var btnDeleteEl=document.querySelector('#btn-delete-account');document.querySelector('#delete-account-current-password').addEventListener('input',function(event){if(event.target.value.length>0){btnDeleteEl.classList.remove('disable-button');btnDeleteEl.removeAttribute('disabled');}else{btnDeleteEl.classList.add('disable-button');btnDeleteEl.setAttribute('disabled','');}});document.querySelector('.dark-nilon').addEventListener('click',function(event){profileModule.closeDeletAccountModal();});};var openDeletAccountModal=function(){document.querySelector('.delete-account-modal').style.display='block';document.querySelector('.dark-nilon').style.display='block';};var closeDeletAccountModal=function(){document.querySelector('.delete-account-modal').style.display='none';document.querySelector('.dark-nilon').style.display='none';};var hashPasswordsDelete=function(currentpassword,currentpassword_md5){var junk_output;md5hash(currentpassword,currentpassword_md5,junk_output,0);};return{handleEvent,openDeletAccountModal,closeDeletAccountModal,hashPasswordsDelete};}());document.addEventListener("DOMContentLoaded",function(){profileModule.handleEvent();});
Any way to find out what's going on? Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论