Greasefork auto redirect Sleazyfork discussions

Redirect to Sleazyfork when discussions is adult.

Verze ze dne 30. 10. 2023. Zobrazit nejnovější verzi.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

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