Advertisement
y2kcarrds

dilfs drr ac other codes (disable right click, selection, hidden scrollbar)

Dec 30th, 2022
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. <style>
  2. html {
  3. overflow: scroll;
  4. overflow-x: hidden;
  5. }
  6. ::-webkit-scrollbar {
  7. width: 0;
  8. background: transparent;
  9. }
  10. ::-webkit-scrollbar-thumb {
  11. background: transparent;
  12. }
  13. </style>
  14. <!DOCTYPE html>
  15. <html>
  16. <head>
  17. <body oncopy="return false;" oncut="return false;" onpast="return false;" oncontextmenu="return false;">
  18. </body>
  19. </html>
  20. <script>
  21. document.addEventListener("keydown", (e) => {
  22. // USE THIS TO DISABLE CONTROL AND ALL FUNCTION KEYS
  23. // if (e.ctrlKey || (e.keyCode>=112 && e.keyCode<=123)) {
  24. // THIS WILL ONLY DISABLE CONTROL AND F12
  25. if (e.ctrlKey || e.keyCode==123) {
  26. e.stopPropagation();
  27. e.preventDefault();
  28. }
  29. });
  30. </script>
  31. <style>
  32. ::-moz-selection {
  33. color: #9F7661;
  34. background: #transparent;
  35. }
  36.  
  37. ::selection {
  38. color: #9F7661;
  39. background: #transparent;
  40. }
  41. </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement