Greasefork auto redirect Sleazyfork discussions

Redirect to Sleazyfork when discussions is adult.

Stan na 30-10-2023. Zobacz najnowsza wersja.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

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