BIT-Programming-Jump to result

提交之后自动单击“查看结果”

安裝腳本?
作者推薦腳本

您可能也會喜歡 BIT-Programming-Refresh result

安裝腳本
  1. // ==UserScript==
  2. // @name BIT-Programming-Jump to result
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1.2
  5. // @description 提交之后自动单击“查看结果”
  6. // @license GPL-3.0-or-later
  7. // @supportURL https://github.com/YDX-2147483647/BIT-enhanced/issues
  8. // @author Y.D.X.
  9. // @match https://lexue.bit.edu.cn/mod/programming/submit.php
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. (function () {
  14. 'use strict'
  15. function jump_to_result () {
  16. const button = document.querySelector('a[href^=result]')
  17. if (button) {
  18. button.click()
  19. }
  20. }
  21. window.setInterval(jump_to_result, 1000)
  22. })()