DasNiko

Blokada PPM

Mar 23rd, 2020
251
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2. am = "Tekst wyświetlający się przy próbie kliknięcia PPM";
  3.  
  4. bV  = parseInt(navigator.appVersion)
  5. bNS = navigator.appName=="Netscape"
  6. bIE = navigator.appName=="Microsoft Internet Explorer"
  7.  
  8. function nrc(e) {
  9.    if (bNS && e.which > 1){
  10.      alert(am)
  11.      return false
  12.   } else if (bIE && (event.button >1)) {
  13.     alert(am)
  14.     return false;
  15.    }
  16. }
  17.  
  18. document.onmousedown = nrc;
  19. if (document.layers) window.captureEvents(Event.MOUSEDOWN);
  20. if (bNS && bV<5) window.onmousedown = nrc;
  21.  
  22. </script>
RAW Paste Data