mturk request rate reloader

Automatically reloads pages which hit the refresh rate wall.

当前为 2016-01-05 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name mturk request rate reloader
  3. // @version 1.0
  4. // @include https://www.mturk.com/mturk/*
  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 maximum allowed page request rate for this website.")!==-1;
  13. if(hasText){
  14. setTimeout(function(){
  15. window.location.reload()
  16. },4000);
  17. }