Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function(){
- $('a.frlasttopic').each(function(){
- $(this).parents('.frlast').remove();
- });
- $('.frlastdata').each(function(){
- var string = $(this).html();
- var time = string.split('<br>')[0];
- if ($(this).find('a[href^="/u"]').length) {
- var userlink = $(this).find('a[href^="/u"]');
- } else {
- var userlink = $(this).find('span.color-groups');
- }
- if (userlink.length) {
- var userlinkHTML = userlink.prop('outerHTML');
- } else {
- var userlinkHTML = 'Invitado';
- }
- var lastLink = $(this).find('a.last-post-icon, a[href*="view=newest"]');
- var lastLinkHTML = lastLink.prop('outerHTML');
- $(this).replaceWith('<span class="frlastuser">'+userlinkHTML+'</span><span class="frlastdate">'+time+'</span><span class="frlastlink">'+lastLinkHTML+'</span>');
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement