Created
October 3, 2018 16:00
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How do I make this work as a new script on tampermonkey?