Codeforces Problem Statement Jumper

Automatic jump the problem statement from problemset to contest

  1. // ==UserScript==
  2. // @name Codeforces Problem Statement Jumper
  3. // @name:zh-CN Codeforces题面自动跳转
  4. // @description Automatic jump the problem statement from problemset to contest
  5. // @description:zh-CN 将Codeforces Problemset下的题目页面跳转至该Contest下的题目页面
  6. // @namespace https://github.com/ScrapW/Codeforces-Problem-Statement-Jumper
  7. // @icon https://github.com/ScrapW/Codeforces-Problem-Statement-Jumper/raw/master/icon.ico
  8. // @version 1.1
  9. // @author ScrapW
  10. // @create 2019-05-17
  11. // @match https://codeforces.com/problemset/problem/*
  12. // @match http://codeforces.com/problemset/problem/*
  13. // @match https://codeforc.es/problemset/problem/*
  14. // @match http://codeforc.es/problemset/problem/*
  15. // @run-at document-start
  16. // ==/UserScript==
  17.  
  18. var protocol = window.location.protocol
  19. var host = window.location.host
  20. var path = window.location.pathname
  21. path=path.substr(path.lastIndexOf("problem/")+8)
  22. var contest = path.substr(0,path.search('/'))
  23. var no = path.substr(path.search('/')+1)
  24.  
  25. var tar=protocol+"//"+host+"/contest/"+contest+"/problem/"+no
  26.  
  27. window.location.replace(tar)

QingJ © 2025

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