Guest User

Untitled

a guest
Oct 28th, 2022
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (function () {
  2.   'use strict';
  3.  
  4.   function updateAllPosts() {
  5.     document.querySelectorAll('.post_type_reply').forEach(editPostHtml);
  6.   }
  7.  
  8.   function editPostHtml(el) {
  9.     // тут редактируем пост
  10.   }
  11.  
  12.   function main() {
  13.     window.PostF.__appendPost = window.PostF._appendPost;
  14.     window.PostF._appendPost = function (post) {
  15.       if (this.__appendPost(post)) {
  16.         editPostHtml(document.getElementById(`post-${post.num}`));
  17.       }
  18.     };
  19.     updateAllPosts();
  20.   }
  21.  
  22.   main();
  23. })();
Advertisement
Add Comment
Please, Sign In to add comment