[wordpress插件] Console Log Cloaking控制台日志隐藏

wordpress 插件 文章 2020-03-30 17:40 535 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

The Console Log Cloaking plugin allows site administrators to block the display of console messages for users and visitors.

控制台日志隐藏插件可让站点管理员阻止向用户和访问者显示控制台消息。

Log messages appear in the browser console (F12) at different stages of the page loading and viewing experience.

日志消息会在页面加载和查看体验的不同阶段显示在浏览器控制台(F12)中。

In many cases, log messages are warning or tracking messages issued by the browser to help users track the origin of display problems, such as long wait time or irregular action outcomes.

在许多情况下,日志消息是浏览器发出的警告或跟踪消息,以帮助用户跟踪显示问题的根源,例如较长的等待时间或不规则的操作结果。

Those messages can also be a side-effect of careless, console.log-happy developers tracking their own code variables.

这些消息也可能是粗心的console.log满意的开发人员跟踪自己的代码变量的副作用。

In almost all cases, it is best to avoid displaying those messages to the site's visitors, as the content often allows them insights into the inner workings of an application — such as internal IDs, database connection strings, etc. — and can lead to serious

在几乎所有情况下,最好避免向网站的访问者显示这些消息,因为这些内容通常使他们能够洞察应用程序的内部工作原理(例如内部ID,数据库连接字符串等),并可能导致严重的后果。

security problems.

安全问题。

By default (upon first activation), noone but the main site administrator will see log messages in the console.

默认情况下(首次激活时),除主站点管理员外,没有人会在控制台中看到日志消息。

Administrators can further fine-tune the behavior of the plugin to enable the display of log message to specific user roles (developers, editors, etc.), as well as determine which type of messages should be hidden.

管理员可以进一步调整插件的行为,以将日志消息显示给特定的用户角色(开发人员,编辑者等),并确定应隐藏哪种消息类型。

By default, all message types are cloaked.

默认情况下,所有邮件类型都是隐藏的。

To configure the behavior of the plugin, simply access the Console Log Cloaking menu from the sidebar.

要配置插件的行为,只需从侧边栏访问“控制台日志隐藏”菜单。

This plugin will be updated to account for changes in future versions of WordPress, if necessary.

如有必要,此插件将进行更新以解决WordPress未来版本中的更改。

If you encounter any problems with the plugin, or need extra related functionality, feel free to contact the authors through the comments or the official plugin page.

如果您在使用插件时遇到任何问题,或者需要其他相关功能,请随时通过评论或官方插件页面与作者联系。

Donations

捐赠

None needed.

不需要。

安装步骤

Upload the zip file to WordPress using the Plugins menu, or upload the entire plugin folder to your server using an FTP client.

使用“插件”菜单将zip文件上传到WordPress,或使用FTP客户端将整个插件文件夹上传到您的服务器。

下载地址
https://downloads.wordpress.org/plugin/console-log-cloaking.zip
-EOF-

AI助手支持GPT4.0