mturk request rate reloader

Automatically reloads pages which hit the refresh rate wall.

  1. // ==UserScript==
  2. // @name mturk request rate reloader
  3. // @version 2.0
  4. // @include https://worker.mturk.com/*
  5. // @author mordea
  6. // @namespace mordea
  7. // @description Automatically reloads pages which hit the refresh rate wall.
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. var content = document.body.textContent || document.body.innerText;
  12. var hasText = content.indexOf("You have exceeded the allowable page request rate")!==-1;
  13. if(hasText){
  14. setTimeout(function(){
  15. window.location.reload()
  16. },4000);
  17. }