Luogu No More Difficulties

把洛谷所有题目的难度标签改成入门

À partir de 2019-11-08. Voir la dernière version.

// ==UserScript==
// @name     Luogu No More Difficulties
// @description 把洛谷所有题目的难度标签改成入门
// @version  1
// @match    *://www.luogu.org/problem/*
// @grant    none
// @run-at   document-idle
// @namespace https://greasyforks.org/users/396032
// ==/UserScript==
/*jshint esversion: 6 */

setTimeout(() => {
  //thx @sjx233
  const data = _feInjection.currentData;
  const dif = problem => problem.difficulty = 1;
  if (data.problem) dif(data.problem);
  if (data.problems) data.problems.result.forEach(dif);
},200);
长期地址
遇到问题?请前往 GitHub 提 Issues。