Advertisement
Guest User

Hejto wolaj all

a guest
Jan 18th, 2023
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | Source Code | 0 0
  1. javascript:(function () {
  2. var postId = location.href.substring(location.href.lastIndexOf("/"), location.href.lastIndexOf("?") > 0 ? location.href.lastIndexOf("?") : location.href.length);
  3.  
  4. fetch('https://api.hejto.pl/posts/' + postId + '/likes?limit=9999').then((response) => response.json()).then((response) => {
  5. var nicki = '';
  6.  
  7. response['_embedded']['items'].forEach((user) => {
  8. nicki += '@' + user['author']['username'] + ' ';
  9. });
  10. alert(nicki);
  11. console.log(nicki);
  12. var dummy = document.createElement("textarea");
  13. document.body.appendChild(dummy);
  14. dummy.value = nicki;
  15. dummy.select();
  16. document.execCommand("copy");
  17. document.body.removeChild(dummy);
  18. });
  19. })()
Tags: hejto
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement