mturk request rate reloader

Automatically reloads pages which hit the refresh rate wall.

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

// ==UserScript==
// @name         mturk request rate reloader
// @version      1.0
// @include      https://www.mturk.com/mturk/*
// @author       mordea
// @namespace    mordea
// @description  Automatically reloads pages which hit the refresh rate wall.
// @grant        none
// ==/UserScript==

var content = document.body.textContent || document.body.innerText;
var hasText = content.indexOf("You have exceeded the maximum allowed page request rate for this website.")!==-1;
if(hasText){
   setTimeout(function(){
       window.location.reload()
   },4000);
}