UserJs
UserJs copied to clipboard
Fixed: riddlecounter popup window to close when user submit answer
function riddleSubmit(answer) {
if (!window.opener) {
gE('#riddleanswer').value = answer
gE('#riddleanswer+img').click()
setTimeout(function () {
goto()
}, 300)
} else {
post(window.location.href, function () {
setTimeout(function () {
window.close()
window.opener.document.window.location.href = window.location.href
}, 500)
}, 'riddleanswer=' + answer)
setTimeout(function () {
goto()
}, 300)
}
}
-----replace original function with above riddlesubmit function