Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save brandonhellman/52495cfe438f499c152d40f7268042f9 to your computer and use it in GitHub Desktop.
Save brandonhellman/52495cfe438f499c152d40f7268042f9 to your computer and use it in GitHub Desktop.
Copy the code below into the console on any https://www.mturk.com/ page and hit enter. This will print out your HIT Scraper block and include list formatted for Mturk Suite - HIT Finder.
const MTS_BL = {}, MTS_IL = {};
const BL = localStorage.getItem(`scraper_ignore_list`).split(`^`);
const IL = localStorage.getItem(`scraper_include_list`).split(`^`);
for (let i = 0; i < BL.length; i ++) {
MTS_BL[BL[i]] = {
term: BL[i],
name: BL[i]
};
}
for (let i = 0; i < IL.length; i ++) {
MTS_IL[IL[i]] = {
term: IL[i],
name: IL[i],
type: `voice`,
sound: true,
notification: true,
pushbullet: true
};
}
console.log(`--- Block List ---`)
console.log(JSON.stringify(MTS_BL));
console.log(`--- Include List ---`)
console.log(JSON.stringify(MTS_IL));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment