Archive shout redirect

Redirecciona a archive en caso de que el shout esté eliminado

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         Archive shout redirect
// @namespace    Fabi
// @version      0.2
// @description  Redirecciona a archive en caso de que el shout esté eliminado
// @author       Fabi
// @include        http*://www.taringa.net/*/mi/*
// ==/UserScript==


if($('#error-ng .message').html() !== null){
	$('body').show();
	$('#page').hide();
	$('body').append('<div id="page" style="text-align:center;margin: 0 auto;width: 500px;position: static;margin-top: 12%;"><img src="//k61.kn3.net/D/5/0/0/1/C/E90.png" style="width: 157px;"><h3>Cargando</h3><p>Shout Eliminado</p></div>');
	
	var regStr=/http.*:\/\/.*\.taringa\.net\/.*\/mi\/([a-z0-9]*[^\/?#])/ig;

	var res = regStr.exec(document.location.href);	
	
	document.location.href="https://archive.taringo.xyz/shout/"+res[1];
}