Skip to content

Instantly share code, notes, and snippets.

@brandonhellman
Created October 3, 2018 16:00
Show Gist options
  • Save brandonhellman/1f4c553c5bf41d0b807ba1f1572cbeae to your computer and use it in GitHub Desktop.
Save brandonhellman/1f4c553c5bf41d0b807ba1f1572cbeae to your computer and use it in GitHub Desktop.
Copy the code below into the console (Ctrl+Shift+J) on any https://worker.mturk.com/ page and hit enter. A file with you block list converted for HIT Finder will be downloaded.
const blForker = JSON.parse(localStorage.getItem('_finder_bl'));
const blFinder = Object.keys(blForker).reduce((acc, key) => ({
...acc,
[key]: {
name: blForker[key].name,
match: blForker[key].term,
strict: true,
term: blForker[key].term,
}
}), {});
const el = document.createElement('a');
el.href = `data:text/plain;charset=utf-8,${encodeURIComponent(JSON.stringify(blFinder))}`;
el.download = 'Forker to Finder Block List.json';
document.body.appendChild(el);
el.click();
document.body.removeChild(el);
@TTNebula
Copy link

How do I make this work as a new script on tampermonkey?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment