Archive shout redirect

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

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

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 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.

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

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         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];
}