Skip to content

Instantly share code, notes, and snippets.

@cuylerstuwe
Created April 30, 2018 19:51
Show Gist options
  • Select an option

  • Save cuylerstuwe/5096c4e644a69039244a1fe0d04968fa to your computer and use it in GitHub Desktop.

Select an option

Save cuylerstuwe/5096c4e644a69039244a1fe0d04968fa to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Refresh Queue Until There's Work
// @namespace salembeats
// @version 1
// @description Refreshes the tasks page until there's work, and starts the first job once there is.
// @author Cuyler Stuwe (salembeats)
// @match https://worker.mturk.com/tasks
// @match https://worker.mturk.com/tasks/
// @grant none
// ==/UserScript==
let workButton = document.querySelector("a[href*='/projects/']");
if(workButton) {workButton.click();}
setTimeout(() => window.location.reload(), 2000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment