bbc-cpu

Stops the massively stupid and pointless animations causing a constant 30% CPU usage on the BBC.

目前为 2023-04-13 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name bbc-cpu
  3. // @version 0.0
  4. // @description Stops the massively stupid and pointless animations causing a constant 30% CPU usage on the BBC.
  5. // @grant none
  6. // @match *://*.bbc.com/*
  7. // @match *://*.bbc.co.uk/*
  8. // @namespace https://greasyfork.org/en/users/217495-eric-toombs
  9. // @license MIT
  10. // ==/UserScript==
  11.  
  12. for (e of document.getElementsByClassName("ssrcss-11azffs-PulsingCircle")) {
  13. // The animation code refers to the objects being animated by a class name,
  14. // so remove these objects from all classes. Now, the animation code can't
  15. // find them.
  16. e.classList = [];
  17. }