Wpis z mikrobloga

window.u-------------a = function(uid) {
$('span.posteruid[title="'+uid+'"]').parents('.post').hide();
}
window.onload = function() {
$('span.posteruid').each(function() {
$('<a href="javascript:window.u-------------a(\''+$(this).attr('title')+'\');">Ukryj s--------a</a>').insertAfter($(this));
});
}
$('#jesli-zablokujesz-tego-diva-ukraina-odniesie-zwyciestwo').remove();
localStorage.xD = 'xD';
function dokonajSekularyzacji() {
let originalPosts = [];
fetch(performance.getEntriesByType('navigation')[0].name)
.then(function (response) {
return response.text();
})
.then(function (text) {
const smok = document.getElementById('smok') ?? reject();
smok.innerHTML = text;
smok.style.display = 'none';
const posts = $('#smok blockquote')
posts.each(function(index) {
const postId = $(this).attr('id');
const postContent = $(this).html();
originalPosts.push({ postId, postContent });
});
smok.remove();
originalPosts.forEach(post => {
if (post.postId) {
const contentSelector = '.postContainer #p' + post.postId.substring(1) + ' .postMessage'
$(contentSelector).html(post.postContent)
}
});
$('.blockquoteReply').html(originalPosts[originalPosts.length - 1].postContent)
});
}
if (window.location.href.includes('/b/')) {
dokonajSekularyzacji()
}

#przegryw
  • 1
  • Odpowiedz
  • Otrzymuj powiadomienia
    o nowych komentarzach