Advertisement
Guest User

Untitled

a guest
Nov 25th, 2015
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name        MTB News Umlauterer
  3. // @namespace  
  4. // @include     http://www.mtb-news.de/forum/t/*
  5. // @version     1
  6. // @grant       none
  7. // ==/UserScript==
  8.  
  9. var string = document.body.innerHTML;
  10.  
  11.  
  12. string = string.replace(/ü/g, 'ü');
  13. string = string.replace(/ä/g, 'ä');
  14. string = string.replace(/ö/g, 'ö');
  15. string = string.replace(/•/g, '-');
  16. string = string.replace(/€/g, '€');
  17. string = string.replace(/ß/g, 'ß');
  18. string = string.replace(/„/g, '"');
  19. string = string.replace(/“/g, '"');
  20. string = string.replace(/Ü/g, 'Ü');
  21. string = string.replace(/Ö/g, 'Ö');
  22.  
  23.  
  24. // Also fuck ad.zanox.com!
  25. string = string.replace(/http:\/\/ad\.zanox\.com\/.+ULP=\[\[(.+)\]\]/g, '$1');
  26.  
  27.  
  28. // Gesendet von Fickdich mit Tapawichs
  29. string = string.replace(/(\<br\>\n)*Gesendet .+ Tapatalk.*/gi, '');
  30. string = string.replace(/(\<br\>\n)*Via Tapatalk.*/gi, '');
  31.  
  32.  
  33. document.body.innerHTML = string;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement