Greasy Fork is available in English.

Archive shout redirect

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

  1. // ==UserScript==
  2. // @name Archive shout redirect
  3. // @namespace Fabi
  4. // @version 0.2
  5. // @description Redirecciona a archive en caso de que el shout esté eliminado
  6. // @author Fabi
  7. // @include http*://www.taringa.net/*/mi/*
  8. // ==/UserScript==
  9.  
  10.  
  11. if($('#error-ng .message').html() !== null){
  12. $('body').show();
  13. $('#page').hide();
  14. $('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>');
  15. var regStr=/http.*:\/\/.*\.taringa\.net\/.*\/mi\/([a-z0-9]*[^\/?#])/ig;
  16.  
  17. var res = regStr.exec(document.location.href);
  18. document.location.href="https://archive.taringo.xyz/shout/"+res[1];
  19. }