I found a public script that uses the ` key to submit HITs and it seems to work fine for everything but 5's. I'm using @include * Any help would be appreciated
Tough to say without seeing the script you're using, but somewhere above the keybind do something like: Code: const submitButton = document.querySelector('a.submit-btn'); Then wherever the code is trying to click the submit button, should be something like: Code: document.querySelector('#submitButton').click(); or document.querySelector('[type="submit"]').click(); or $('#submitButton').click(); ....change that to: Code: submitButton.click(); I think that may work for you.
Okay, made the change. Does this look close? // ==UserScript== // @Name MTurk Submit HIT Hotkey // @namespace https://mturkers.org/adaaaam // @version 2017.02.28.3 // @description Enables pressing grave (`) to submit HITs on MTurk // @author adaaaam // @include * // ==/UserScript== const submitButton = document.querySelector('a.submit-btn'); if (document.querySelector('iframe')) document.querySelector('iframe').focus(); window.addEventListener("keydown", function(e) { if (e.keyCode == "192") { e.preventDefault(); submitButton.click(); } });
This is interesting. I made a mouse-move-clicker in ahk that looks for the image of the submit button on press. This might be better.