Amazon CPU Tamer

It reduces CPU usage on Amazon shopping pages.

As of 2020-11-04. See the latest version.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name        Amazon CPU Tamer
// @name:ja     Amazon CPU Tamer
// @name:zh-CN  Amazon CPU Tamer
// @namespace   knoa.jp
// @description It reduces CPU usage on Amazon shopping pages.
// @description:ja AmazonのショッピングページでのCPU使用率を減らします。
// @description:zh-CN 减少Amazon购物页面上的CPU利用率。
// @include     https://www.amazon.*
// @version     1
// @grant       none
// @run-at      document-start
// ==/UserScript==

/*
*/
(function(){
  console.log('Amazon Cpu Tamer');
  const tamedInterval = 60*1000;
  const w = window;
  w.originalSetInterval = w.setInterval;
  w.setInterval = function(f, interval, ...args){
    if(interval < tamedInterval) console.log(interval), interval = tamedInterval;
    return w.originalSetInterval(f, interval, ...args);
  };
  console.log('Tamed: tamedInterval', tamedInterval);
})();