简体   繁体   English

从Chrome扩展程序中删除登录信息?

[英]Remove login from Chrome extension?

First off, the code blocks on the site were acting wonky for me, so I used pastebin instead. 首先,该站点上的代码块对我而言作用不佳,因此我改用pastebin。 Sorry :X Here you go 抱歉:X, 您去

Basically, this is a Google Chrome extension which requires a login to use the rest of the features. 基本上,这是一个Google Chrome扩展程序,需要登录后才能使用其余功能。 My friend has given me the challenge of removing the login and make it possible to simply run the extension and use all the features. 我的朋友给了我一个挑战,那就是删除登录名并使其能够简单地运行扩展程序并使用所有功能。 I have tried simply removing the bits of code involving "userEmail" and the "Registered," and the login screen was removed. 我尝试仅删除涉及“ userEmail”和“ Registered”的代码,然后删除了登录屏幕。 However, the extension did not work correctly, as the start button refused to do anything. 但是,扩展名无法正常工作,因为开始按钮拒绝执行任何操作。

So my goal as said before is to remove the login screen. 因此,如前所述,我的目标是删除登录屏幕。 By the way, this is one file within the extension. 顺便说一句,这是扩展名中的一个文件。 There are other files, but I believe this is the only one which deals with logging in. If you feel like you need the rest of the files of the extension, it is found here . 还有其他文件,但是我相信这是唯一用于登录的文件。如果您感觉需要扩展程序的其余文件,可以在这里找到。

If you feel like you actually need the extension itself, just let me know. 如果您觉得确实需要扩展本身,请告诉我。 Thanks in advance for all help given, whether it be giving ideas or modifying the code yourselves! 预先感谢您提供的所有帮助,无论是提出想法还是自己修改代码!

I would change as little as possible. 我会尽可能少地改变。 Instead of deleting large portions, just make tiny changes. 不必删除大部分,而只需进行微小的更改。

Set the userIsRegistered variable to default to true, then empty out the checkRegistered function, so that it does nothing, but still exists. userIsRegistered变量的默认值设置为true,然后清空checkRegistered函数,使其不执行任何操作,但仍然存在。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM