// ==UserScript== // @name 牛客网 竞赛题目 显示通过百分比 // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author You // @match https://ac.nowcoder.com/acm/contest/** // @grant none // @downloadURL none // ==/UserScript== (function(window) { const change = ()=>{ if(location.hash==='#question') setTimeout(()=>{ var ps = $('.link-green').parent() console.log(111) var i,c,p; for(i =0;i'; } } }},500) } window.addEventListener('hashchange',change) change() // Your code here... })(window);