GDocs Display blank form after submit

Redirects back to empty form after displaying the confirmation message for 5 seconds

当前为 2018-08-30 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name GDocs Display blank form after submit
  3. // @version 0.2
  4. // @description Redirects back to empty form after displaying the confirmation message for 5 seconds
  5. // @author Melgior
  6. // @match https://docs.google.com/*/formResponse*
  7. // @grant none
  8. // @namespace https://greasyfork.org/users/5660
  9. // ==/UserScript==
  10.  
  11. if (document.getElementsByTagName("form").length === 0) {
  12. setTimeout(function(){
  13. document.location = document.location.href.replace("formResponse", "viewform");
  14. }, 5000);
  15. }