bbc-cpu

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

  1. // ==UserScript==
  2. // @name bbc-cpu
  3. // @version 0.1
  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. }
  18.  
  19. style_tag = document.createElement('style');
  20. style_tag.innerHTML = `
  21. .gs-c-live-pulse__icon {
  22. visibility: collapse !important;
  23. `;
  24. document.getElementsByTagName('head')[0].append(style_tag);