CF problemset to contest

Display CF problems in the contest field instead of problemset

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

  1. // ==UserScript==
  2. // @name CF problemset to contest
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  5. // @description Display CF problems in the contest field instead of problemset
  6. // @author ouuan
  7. // @match https://codeforces.com/problemset/problem/*
  8. // @match https://codeforc.es/problemset/problem/*
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14. var matches = window.location.href.match(/\/problemset\/problem\/([1-9][0-9]*)\/([A-Z][1-9]?)/);
  15. if (matches.length == 3) window.location.replace("https://codeforces.com/contest/" + matches[1] + "/problem/" + matches[2]);
  16. })();

QingJ © 2025

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