标题
增加 1 行删除 1 行
1洛谷强力学术现成版1OI强力学术现成版
正文
增加 20 行删除 12 行
123456789101112132 行未改动161718192021222363 行未改动8788899091929394959697989910010110210310410514 行未改动1201211221231241251261271286 行未改动1351361371381391401411421432 行未改动[参考链接](https://www.luogu.com.cn/article/h30kz85a)```// ==UserScript==// @name 4245 - 洛谷强力学术// @namespace http://tampermonkey.net/// @version 1.8// @author ZBXAPCY// @icon https://cdn.luogu.com.cn/upload/usericon/1334245.png// @description tuifei breaker// @match *://*/*// @grant none// @license MIT2 行未改动(function() {'use strict';const ALLOW_RULES = [/^https:\/\/(www\.)?luogu\.com\.cn\/?$/i,/^https:\/\/(www\.)?luogu\.com\.cn\/.*/i,/^https:\/\/(www\.)?luogu\.me\/.*/i,/^https:\/\/(www\.)?luogu\.com\/.*/i,63 行未改动}if (!shouldAllow()) {console.warn('[学术模式] 拦截非学习网站:', window.location.href);window.location.replace('https://www.luogu.com.cn/problem/list');}})();``````// ==UserScript==// @name 专注或考试洛谷学术版(极致严格)// @namespace http://tampermonkey.net/// @version 1.1// @author ZBXAPCY// @icon https://cdn.luogu.com.cn/upload/usericon/1334245.png// @description tuifei breaker// @match *://*/*// @grant none// @license MIT14 行未改动/^https:\/\/(www\.)?vjudge\.net\/.*/i,/^https:\/\/(www\.)?leetcode\.cn\/.*/i,/^https:\/\/(www\.)?leetcode\.com\/.*/i,/^https:\/\/(www\.)?nowcoder\.com\/.*/i,/^https:\/\/(www\.)?acwing\.com\/.*/i,/^https:\/\/(www\.)?csacademy\.com\/.*/i,/^https:\/\/(www\.)?mxoj\.net\/.*/i,/^https:\/\/(www\.)?loj\.ac\/.*/i,/^https:\/\/(www\.)?zoj\.pintia\.cn\/.*/i,6 行未改动return ALLOW_RULES.some(regex => regex.test(currentURL));}if (!shouldAllow()) {console.warn('[学术模式] 拦截非学习网站:', window.location.href);window.location.replace('https://www.luogu.com.cn/problem/list');}})();```2 行未改动123456789101112131415161718192 行未改动222324252627282930313263 行未改动9697989910010110210310410510610710810911011111211311414 行未改动1291301311321331341351366 行未改动1431441451461471481491501512 行未改动## 食用方法(主要针对 edge 浏览器)1. 安装[这个浏览器插件](https://microsoftedge.microsoft.com/addons/detail/%E7%AF%A1%E6%94%B9%E7%8C%B4/iikmkjmpaadaobahmlepeloendndfphd)2. 点击插件,在弹出的窗口点击添加新脚本。3. 复制下面的脚本。4. 点进代码框,按下依次按下 `Ctrl + A` `Ctrl + V` `Ctrl + S`。5. 访问 [B站](https://www.bilibili.com/),看看是否已经被拦截。```javascript// ==UserScript==// @name OI强力学术// @namespace http://tampermonkey.net/// @version 2.0// @author ZBXAPCY// @icon https://cdn.luogu.com.cn/upload/image_hosting/e23hb83l.png// @description tuifei breaker// @match *://*/*// @grant none// @license MIT2 行未改动(function() {'use strict';const ALLOW_RULES = [//https://help.luogu.com.cn/rules/academic/handbook/markdown/^https:\/\/(www\.)?help\.luogu\.com\.cn\/.*/i,/^https:\/\/(www\.)?help\.luogu\.com\.cn\/?$/i,/^https:\/\/(www\.)?luogu\.com\.cn\/?$/i,/^https:\/\/(www\.)?luogu\.com\.cn\/.*/i,/^https:\/\/(www\.)?luogu\.me\/.*/i,/^https:\/\/(www\.)?luogu\.com\/.*/i,63 行未改动}if (!shouldAllow()) {console.warn('[学术模式] 拦截非学习网站:', window.location.href);window.location.replace('https://www.luogu.com.cn');}})();``````javascript// ==UserScript==// @name OI专注学术版// @namespace http://tampermonkey.net/// @version 1.2// @author ZBXAPCY// @icon https://cdn.luogu.com.cn/upload/image_hosting/e23hb83l.png// @description tuifei breaker// @match *://*/*// @grant none// @license MIT14 行未改动/^https:\/\/(www\.)?vjudge\.net\/.*/i,/^https:\/\/(www\.)?leetcode\.cn\/.*/i,/^https:\/\/(www\.)?leetcode\.com\/.*/i,/^https:\/\/(www\.)?nowcoder\.com\/.*/i,/^https:\/\/(www\.)?csacademy\.com\/.*/i,/^https:\/\/(www\.)?mxoj\.net\/.*/i,/^https:\/\/(www\.)?loj\.ac\/.*/i,/^https:\/\/(www\.)?zoj\.pintia\.cn\/.*/i,6 行未改动return ALLOW_RULES.some(regex => regex.test(currentURL));}if (!shouldAllow()) {console.warn('[专注学术模式] 拦截非必要学习网站:', window.location.href);window.location.replace('https://www.luogu.com.cn/problem/list');}})();```2 行未改动