Guest User

Untitled

a guest
Nov 22nd, 2019
96
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(document).ready(function(){
  2.  
  3. var targetNode = document.querySelector("#success");
  4. var observerOptions = {
  5. childList: false,
  6. attributes: true,
  7. subtree: false //Omit or set to false to observe only changes to the parent node.
  8. }
  9.  
  10. var observer = new MutationObserver(callback);
  11. observer.observe(targetNode, observerOptions);
  12.  
  13. var x=0;
  14. function callback(mutationList, observer) {
  15. mutationList.forEach((mutation) => {
  16. switch(mutation.type) {
  17. case 'attributes':
  18. if($("#success").is(":visible")){
  19. while (x<1){
  20. !function(f,b,e,v,n,t,s)
  21. {if(f.fbq)return;n=f.fbq=function(){n.callMethod?n.callMethod.apply(n,arguments):n.queue.push(arguments)};
  22. if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
  23. n.queue=[];t=b.createElement(e);t.async=!0;
  24. t.src=v;s=b.getElementsByTagName(e)[0];
  25. s.parentNode.insertBefore(t,s)}(window, document,'script','https://connect.facebook.net/en_US/fbevents.js');
  26. fbq('init', '2199870686978239');
  27. fbq('track', 'CompleteRegistration');
  28. x++;
  29. }
  30. }else{
  31. console.log("why you looking here?");
  32. }
  33. /* An attribute value changed on the element in
  34. mutation.target; the attribute name is in
  35. mutation.attributeName and its previous value is in
  36. mutation.oldValue */
  37. break;
  38. }
  39. });
  40. }
  41.  
  42.  
  43. });
RAW Paste Data