MTurk HIT DataBase Fixer READ DESCRIPTION!!!

THIS WILL DELETE YOUR HITDB! ENSURE YOU HAVE A BACKUP BEFORE INSTALLING/RUNNING THIS SCRIPT! This is designed to help if your hitDB says "Script monkeys are preparing to work" or whatever, but never actually doing anything. If you look in your console, you should see things like "Uncaught NotfoundError: Failed to execute 'transaction' on 'IDBDatabase': One of the specified object stores was not found." AFTER RUNNING THIS SCRIPT, DISABLE IT! YOU HAVE BEEN WARNED!!!

Tendrás que instalar una extensión para tu navegador como Tampermonkey, Greasemonkey o Violentmonkey si quieres utilizar este script.

You will need to install an extension such as Tampermonkey to install this script.

Necesitarás instalar una extensión como Tampermonkey o Violentmonkey para instalar este script.

Necesitarás instalar una extensión como Tampermonkey o Userscripts para instalar este script.

Necesitará instalar una extensión como Tampermonkey para instalar este script.

Necesitarás instalar una extensión para administrar scripts de usuario si quieres instalar este script.

(Ya tengo un administrador de scripts de usuario, déjame instalarlo)

Necesitará instalar una extensión como Stylus para instalar este estilo.

Necesitará instalar una extensión como Stylus para instalar este estilo.

Necesitará instalar una extensión como Stylus para instalar este estilo.

Necesitará instalar una extensión del gestor de estilos de usuario para instalar este estilo.

Necesitará instalar una extensión del gestor de estilos de usuario para instalar este estilo.

Necesitará instalar una extensión del gestor de estilos de usuario para instalar este estilo.

(Ya tengo un administrador de estilos de usuario, déjame instalarlo)

// ==UserScript==
// @name        MTurk HIT DataBase Fixer READ DESCRIPTION!!!
// @namespace   localhost
// @description THIS WILL DELETE YOUR HITDB! ENSURE YOU HAVE A BACKUP BEFORE INSTALLING/RUNNING THIS SCRIPT! This is designed to help if your hitDB says "Script monkeys are preparing to work" or whatever, but never actually doing anything. If you look in your console, you should see things like "Uncaught NotfoundError: Failed to execute 'transaction' on 'IDBDatabase': One of the specified object stores was not found." AFTER RUNNING THIS SCRIPT, DISABLE IT! YOU HAVE BEEN WARNED!!!
// @include     https://www.mturk.com/mturk/dashboard
// @version     1.0
// @grant       none
// ==/UserScript==

if (confirm("THIS WILL DELETE YOUR HIT DATABASE! Seriously, deleted, like gone. Gone forever, never coming back. Back it up, export, copy, whatever you need to do, but if you confirm this box, your hitDB will be gone. Hopefully fixed, but still gone. Are you SURE SURE SURE you want to?")){
    indexedDB.deleteDatabase("HITDB");
    console.log("Deleted");
    alert("Hit database destroyed, please re-activate the HitDB script and reload the page.");
}
else{
    console.log("Not deleted");
    alert("Hit database NOT deleted. Disable this script and refresh the page to remove its influence. You might want to uninstall it too.");
}