// ==UserScript== // @name Fast-Codeforces // @namespace xcxxcx // @version 0.3.5.3 // @match *://codeforces.com/* // @match *://codeforces.ml/* // @description Make Codeforces convenient // @require https://code.jquery.com/jquery-3.4.1.min.js // @author xcxxcx // @downloadURL none // ==/UserScript== unsafeWindow.onload=()=>{ let $=window.$.noConflict(true),math=unsafeWindow.MathJax.Hub,Codeforces=unsafeWindow.Codeforces; $.default=(obj,val)=>{ for(let i in val)if(!(i in obj))obj[i]=val[i]; return obj; }; String.prototype.frl=function(c){ if(this.indexOf(c)===-1)return this; return this.substr(0,this.indexOf(c)); }; String.prototype.frr=function(c){ if(this.indexOf(c)===-1)return this; return this.substr(this.indexOf(c)+c.length); }; String.prototype.replaceAll=function(s1,s2){return this.split(s1).join(s2);}; let gets=(dir,val)=>{ if(("fc-"+dir)in localStorage===false||localStorage["fc-"+dir]==="undefined")return val; return JSON.parse(localStorage["fc-"+dir]); },puts=(dir,val)=>{ if(val!==void 0)localStorage["fc-"+dir]=JSON.stringify(val); else localStorage["fc-"+dir]="undefined"; },noop=()=>{},Alert=Codeforces.alert, Confirm=(str,fy,fn=noop,wy="确定",wn="取消")=>{Codeforces.confirm(str,fy,fn,wy,wn);$("#fc-input").focus();}, GetTitle=val=>{return val.substr(0,val.indexOf("")).substr(val.indexOf("
上一次未关闭的题目是否打开:
点击题目链接时在"查看题目"中将其打开*