Greasy Fork 还支持 简体中文。

GreasyFork - jQuery Warning in the Code Tab

Match "jquery" in @require lines and show large jQuery warning when you are checking out the Code tab on Greasy Fork.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name              GreasyFork - jQuery Warning in the Code Tab
// @name:zh-CN        GreasyFork - 在“代码”中显示 jQuery 警告
// @description       Match "jquery" in @require lines and show large jQuery warning when you are checking out the Code tab on Greasy Fork.
// @description:zh-CN 在查看 Greasy Fork 代码页时,通过判断 @require 行中是否有 jquery,显示特大号红色 jQuery 警告。
// @namespace         RainSlide
// @author            RainSlide
// @icon              https://greasyfork.org/packs/media/images/blacklogo96-b2384000fca45aa17e45eb417cbcbb59.png
// @version           1.2.1
// @license           blessing
// @match             https://greasyfork.org/*/scripts/*/code
// @grant             none
// ==/UserScript==

"use strict";

const pre = document.querySelector('.code-container > pre');
if (
	pre !== null &&
	/\n[ \t]*\/\/[ \t]*@require[ \t]+.+?jquery/.test(pre.textContent)
) {
	const p      = document.createElement("p");
	const strong = document.createElement("strong");
	p.style = "text-align: center;";
	strong.textContent = "jQuery!!!";
	strong.style = "color: red; font-size: 5em;";
	p.appendChild(strong);
	pre.parentNode.parentNode.insertBefore(p, pre.parentNode);
}