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!!!

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==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.");
}