您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
将Problemset下的题目页面跳转至该Contest下的题目页面
当前为
// ==UserScript== // @name Codeforces Problem Statement Jumper // @namespace https://github.com/ScrapW // @version 1.0 // @description 将Problemset下的题目页面跳转至该Contest下的题目页面 // @author ScrapW // @match https://codeforces.com/problemset/problem/* // @match http://codeforces.com/problemset/problem/* // @match https://codeforc.es/problemset/problem/* // @match http://codeforc.es/problemset/problem/* // @run-at document-start // ==/UserScript== var protocol = window.location.protocol var host = window.location.host var path = window.location.pathname path=path.substr(path.lastIndexOf("problem/")+8) var contest = path.substr(0,path.search('/')) var no = path.substr(path.search('/')+1) var tar=protocol+"//"+host+"/contest/"+contest+"/problem/"+no window.location.href = tar