Greasefork auto redirect Sleazyfork discussions

Redirect to Sleazyfork when discussions is adult.

30.10.2023 itibariyledir. En son verisyonu görün.

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==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/")}});
})();