Workaround For Youtube Chat Memory Leaks (obsoleted)

Fix Youtube Live Chat Memory Leaks

  1. // ==UserScript==
  2. // @name Workaround For Youtube Chat Memory Leaks (obsoleted)
  3. // @namespace https://twitter.com/laversheet
  4. // @version 0.2
  5. // @description Fix Youtube Live Chat Memory Leaks
  6. // @author laversheet
  7. // @match https://www.youtube.com/live_chat*
  8. // @match https://www.youtube.com/live_chat_replay*
  9. // @run-at document-end
  10. // @grant none
  11. // @license BSD-3-Clause https://opensource.org/licenses/BSD-3-Clause
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. 'use strict';
  16.  
  17. /*
  18. * (2022-11-25)
  19. * YouTube seems to have fixed the problem already. So this script is no longer needed.
  20. *
  21. * (2021-02-23)
  22. * Currently, youtube live chat has a bug that never execute some scheduled tasks.
  23. * Those tasks are scheduled for each time a new message is added to the chat and hold the memory until being executed.
  24. * This script will let the scheduler to execute those tasks so the memory held by those tasks could be freed.
  25. */
  26.  
  27. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址