GDocs Display blank form after submit [without delay]

Redirects back to a new empty form directly after submission

// ==UserScript==
// @name         GDocs Display blank form after submit [without delay]
// @version      0.1
// @description  Redirects back to a new empty form directly after submission
// @author       Melgior
// @match        https://docs.google.com/*/formResponse*
// @grant        none
// @namespace https://greasyfork.org/users/5660
// ==/UserScript==

if (document.getElementsByTagName("form").length === 0) {
    setTimeout(function(){
        document.location = document.location.href.replace("formResponse", "viewform");
    }, 0);
}