过去通过控制台打开的弹出窗口停止打开

发布于 2025-01-15 18:42:04 字数 2164 浏览 0 评论 0原文

大家好

我刚刚开始学习 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文