你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/6310-rescue-console,源站連結 點此以跳轉。
Rescues the console at website refresh to prevent overwriting by the website.
Some pages like Ikariam just overwrite the browser console. To be able to use the console in your script, there must be a copy stored somewhere else. The only functionality of this script is to store the window.console to window.debugConsole. Now you can either overwrite the normal console in your script again with the debug console or use the debugConsole instead.
But be aware, that everyone who has not installed this script has no debugConsole, so that the script might fail. Also it might be the case that some of the functions you use are not provided by the console they use. To solve this problems, you can have a look on my solution: Debugging implementation using debugConsole.