Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save cuylerstuwe/65589c0ea07ee47b06d6a3038d0b7e0b to your computer and use it in GitHub Desktop.

Select an option

Save cuylerstuwe/65589c0ea07ee47b06d6a3038d0b7e0b to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Hit Scraper Fix (for JSON issue)
// @namespace salembeats
// @version 1
// @description .
// @author Cuyler Stuwe (salembeats)
// @include https://worker.mturk.com/hitScraper
// @include https://worker.mturk.com/hit_scraper
// @include https://www.mturk.com/hit-scraper
// @include https://www.mturk.com/mturk/findhits?match=true&hit_scraper/
// @grant none
// ==/UserScript==
document.body.addEventListener("click", e => {
if(e.target.tagName && e.target.tagName.toLowerCase() === "a") {
if(e.target.href.includes(".json")) {
e.preventDefault();
window.open(e.target.href.replace(".json", ""), "_blank");
}
}
}, true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment