Greasefork auto redirect Sleazyfork discussions

Redirect to Sleazyfork when discussions is adult.

Tính đến 30-10-2023. Xem phiên bản mới nhất.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

Bạn sẽ cần cài đặt một tiện ích mở rộng như Tampermonkey hoặc Violentmonkey để cài đặt kịch bản này.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(Tôi đã có Trình quản lý tập lệnh người dùng, hãy cài đặt nó!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name               Greasefork auto redirect Sleazyfork discussions
// @name:zh-TW         Greasefork 自動跳轉成人回饋
// @name:zh-CN         Greasefork 自动跳转成人反馈
// @name:ja            Greasefork 自動ジャンプ成人向のフィードバック
// @namespace          https://greasyfork.org/
// @version            1.0
// @description        Redirect to Sleazyfork when discussions is adult.
// @description:zh-TW  Greasefork 自動跳轉成人回饋到 Sleazyfork。
// @description:zh-CN  Greasefork 自动跳转成人反馈到 Sleazyfork。
// @description:ja     Greasefork から Sleazyfork の成人向けフィードバックに自動的にジャンプします。
// @license            MIT
// @author             HrJasn
// @match              http*://greasyfork.org/*/scripts/*/discussions/*
// @icon               https://www.google.com/s2/favicons?sz=64&domain=greasyfork.org
// @grant              none
// ==/UserScript==

(() => {
    'use strict';

    fetch(window.location.href).then( (r) => {if(r.status !== 200){window.location.href = window.location.href.replace(/(:\/\/greasyfork\.org\/)/,"://sleazyfork.org/")}});
})();