Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Psto.net
- // @namespace Psto.net
- // @description Psto.net plugin
- // @include http://psto.net/*
- // @include http://*.psto.net/*
- // @version 0.1
- // @grant none
- // ==/UserScript==
- $('#logo').parent().attr('href', 'http://psto.net/recent?nofilter=1');
- // $('.postimg').html('none');
- $('.post p a:not(.postimg)').each(function (index){
- if (/(jpg|jpeg|gif|png)$/g.test($(this).attr('href')))
- {
- $(this).html('<img src="http://fuck.blasux.ru/thumb?img='+$(this).attr('href')+'" />');
- }
- else if (/^(http|https)\:\/\/(|www\.)youtube\.com\/(.*)v\=([A-z0-9\_\-] )/g.test($(this).attr('href')))
- {
- $(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" />'));
- }
- });
- $('.comments .a25').each(function (index){
- $(this).attr('src', $(this).attr('src').replace('/25/', '/40/'));
- $(this).removeClass('a25');
- $(this).addClass('a40');
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement