版本比较
OJ题面 & 题解复制面板
正文
增加 4 行删除 3 行
358 行未改动全部展开359360361362363363364365366367368369370135 行未改动全部展开506507508509508509510511512513514112 行未改动全部展开358 行未改动全部展开// @namespace http://tampermonkey.net/// @version 2.5// @description 提取UiContextNew题面 / 批量拉取solution raw,精简面板并深度优化首屏卡顿// @author zhangxiaoyu008// @match http://192.168.110.12/p/*// @match http://192.168.110.118/p/*// @match http://192.168.110.20/p/*// @match http://sloj.cn/p/*// @match http://superoj.cn/p/*// @grant none// ==/UserScript==
(function() {135 行未改动全部展开 function handleProblemPage() { if (!window.UiContextNew) return; try { const outer = JSON.parse(window.UiContextNew); const pdocContent = JSON.parse(outer.pdoc.content); const zhText = pdocContent.zh; const zhText = JSON.parse(outer.pdoc.content).zh;
const panel = getOrCreatePanel(); panel.appendChild(buildRowElement(zhText, '中文题面 (zh)')); } catch (err) {112 行未改动全部展开