Advertisement
Guest User

Untitled

a guest
Dec 3rd, 2012
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Psto.net
  3. // @namespace Psto.net
  4. // @description Psto.net plugin
  5. // @include http://psto.net/*
  6. // @include http://*.psto.net/*
  7. // @version 0.1
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. $('#logo').parent().attr('href', 'http://psto.net/recent?nofilter=1');
  12.  
  13. // $('.postimg').html('none');
  14.  
  15. $('.post p a:not(.postimg)').each(function (index){
  16. if (/(jpg|jpeg|gif|png)$/g.test($(this).attr('href')))
  17. {
  18. $(this).html('<img src="http://fuck.blasux.ru/thumb?img='+$(this).attr('href')+'" />');
  19. }
  20. else if (/^(http|https)\:\/\/(|www\.)youtube\.com\/(.*)v\=([A-z0-9\_\-] )/g.test($(this).attr('href')))
  21. {
  22. $(this).html($(this).attr('href').replace(/^(http|https)\:\/\/(|www\.)youtube\.com\/(.*)v\=([A-z0-9\_\-] )(.*)$/g, '<img src="http://img.youtube.com/vi/$4/0.jpg" />'));
  23. }
  24. });
  25.  
  26.  
  27. $('.comments .a25').each(function (index){
  28. $(this).attr('src', $(this).attr('src').replace('/25/', '/40/'));
  29. $(this).removeClass('a25');
  30. $(this).addClass('a40');
  31. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement