Guest User

pcgarage deobfuscated code

a guest
Jul 13th, 2026
644
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (function() {
  2.   const keywords = ['pricy-', 'xprice-', 'pretzi-', 'istoricPreturi-'];
  3.  
  4.   const buildAllSelectors = function() {
  5.     return keywords.flatMap(function(k) {
  6.       return ['[id*="' + k + '"]', '[class*="' + k + '"]', '[data-id*="' + k + '"]'];
  7.     }).join(',');
  8.   };
  9.  
  10.   const isMatch = function(node) {
  11.     if (node.nodeType !== 1) return false;
  12.     const fp = [node.id || '', node.className || '', node.getAttribute('data-id') || ''].join('|');
  13.     return keywords.some(function(k) { return fp.includes(k); });
  14.   };
  15.  
  16.   const handleNode = function(node) {
  17.     if (isMatch(node)) {
  18.       node.remove();
  19.     } else {
  20.       Array.from(node.querySelectorAll('*')).forEach(function(child) {
  21.         if (isMatch(child)) child.remove();
  22.       });
  23.     }
  24.   };
  25.  
  26.   // Metoda 1: MutationObserver — sterge <1ms de la injectare
  27.   const observer = new MutationObserver(function(mutations) {
  28.     mutations.forEach(function(m) {
  29.       Array.from(m.addedNodes || []).forEach(handleNode);
  30.     });
  31.   });
  32.   observer.observe(document.body, { childList: true, subtree: true, attributes: true });
  33.  
  34.   // Metoda 2: sweep la fiecare 2 secunde
  35.   setInterval(function() {
  36.     document.querySelectorAll(buildAllSelectors()).forEach(function(n) { n.remove(); });
  37.   }, 2000);
  38.  
  39.   // Metoda 3: CSS injection
  40.   const style = document.createElement('style');
  41.   style.textContent = buildAllSelectors() + ' { display: none !important; visibility: hidden !important; }';
  42.   document.head.appendChild(style);
  43. })();
Advertisement
Add Comment
Please, Sign In to add comment