GDocs Display blank form after submit

Redirects back to empty form after displaying the confirmation message for 1 seconds (modified from Melgior)

当前为 2017-01-19 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name GDocs Display blank form after submit
  3. // @version 0.1
  4. // @description Redirects back to empty form after displaying the confirmation message for 1 seconds (modified from Melgior)
  5. // @author Coach
  6. // @match https://docs.google.com/*/formResponse*
  7. // @grant none
  8. // @namespace https://greasyfork.org/users/96224
  9. // ==/UserScript==
  10.  
  11. if (!document.querySelector("input[type=submit]")) {
  12. setTimeout(function(){
  13. document.location = document.location.href.replace("formResponse", "viewform");
  14. }, 1000);
  15. }