Uoj submissions viewer

在 Uoj 题目界面显示一个通往该题目提交记录的按钮

  1. // ==UserScript==
  2. // @name Uoj submissions viewer
  3. // @namespace Perfect-Izayoi-Sakuya
  4. // @version 0.2
  5. // @description 在 Uoj 题目界面显示一个通往该题目提交记录的按钮
  6. // @author LaoMang
  7. // @license MIT
  8. // @match https://uoj.ac/problem/*
  9. // @icon https://uoj.ac/pictures/UOJ_small.png
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15. let t = document.querySelector('span.pull-right')
  16. let ele = t.childNodes[1].cloneNode()
  17. ele.innerHTML = '<span class="glyphicon glyphicon-upload"></span>\n提交记录'
  18. ele.href = '//uoj.ac/submissions?problem_id=' + window.location.href.split('/').slice(-1)
  19. t.insertBefore(ele, t.childNodes[0])
  20. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址