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

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

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