Add Shortest Tab

開いている問題のコード長順の提出へのリンクを追加します

当前为 2019-10-28 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Add Shortest Tab
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description 開いている問題のコード長順の提出へのリンクを追加します
  6. // @author morioprog
  7. // @match https://atcoder.jp/contests/*/tasks/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. $(function() {
  12. 'use strict';
  13. var url = window.location.href.replace("tasks/","submissions?f.Status=AC&orderBy=source_length&f.Task=");
  14. $("li.pull-right").before("<li><a href='"+url+"'><span class='glyphicon glyphicon-flag' style='margin-right:4px;' aria-hidden='true'></span>最短コード</a></li>");
  15. });

QingJ © 2025

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