Greasy Fork 支持简体中文。

Greasy Fork 网址重定向

重定向url,删除GF链接中的“api.” 它会导致打不开网页。Redirect api.greasyfork.org to greasyfork.org

// ==UserScript==
// @name        Greasy Fork 网址重定向
// @version      0.1
// @description  重定向url,删除GF链接中的“api.” 它会导致打不开网页。Redirect api.greasyfork.org to greasyfork.org
// @match        *://api.greasyfork.org/*
// @run-at       document-start
// @grant        none
// @namespace    https://greasyfork.org/users/1171320
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    // 检查并更改 URL
    function redirectToMainSite() {
        const currentUrl = window.location.href;
        const newUrl = currentUrl.replace('api.greasyfork.org', 'greasyfork.org');

        if (currentUrl !== newUrl) {
            window.location.replace(newUrl); // 重定向到新 URL
        }
    }

    // 立即执行以确保在页面加载时应用更改
    redirectToMainSite();
})();